Staredit Network > Forums > Technology & Computers > Topic: Logic defiance (ASM)
Logic defiance (ASM)
This topic is locked. You can no longer write replies here.
Jul 19 2009, 8:57 pm
By: Heinermann  

Jul 19 2009, 8:57 pm Heinermann Post #1

memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes

The code:
Code
 xor ecx, ecx
rnamLoop:
 call getSeed
 cmp al, 25
 jg rnamLoop

 add al, 0x61
 mov [esi + ecx], al
 inc cx
 cmp cx, 3
 jl rnamLoop  


The description:
Code
esi is a string pointer
ecx is a counter
getSeed stores a random number in eax


The problem:
Code
The string is not modified and the jump condition is always true with jl and jnz, and always false with jg and jz. (the last line)


The request:
Code
Help? lulz


Extra notes:
Code
The input is the same as the output ASM.
Have debugged the program.
Annoying.


EDIT: fixed the loop problem. One of the kernel functions (GetTickCount) was modifying the ECX register. Problem remaining: the new value is not being written to the destination. (mov [esi + ecx], al).
EDIT2: Found the problem to the above. It is now fixd. Lock plz.

Post has been edited 2 time(s), last time on Jul 19 2009, 9:36 pm by Heinermann.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:14 am]
l)ark_ssj9kevin -- Rectal!!!
[12:13 am]
IskatuMesk -- u guys ever look at the "Backend performance improvements" line and kinda you know 👀
[2026-7-03. : 4:25 pm]
l)ark_ssj9kevin -- oh wow it's kind of like archipeligo but solo
[2026-7-03. : 9:43 am]
Oh_Man -- makes me wonder tho, a brood war achievement project culd be quite something, following the design methodology of SC2 achieves
[2026-7-03. : 9:43 am]
Oh_Man -- intresting concept, i see starcraft N64 is on there, most of the achieves seen bare bones though
[2026-7-03. : 9:43 am]
Oh_Man -- https://retroachievements.org/ i stumbled across this website
[2026-7-02. : 9:57 pm]
IskatuMesk -- :wob:
[2026-7-02. : 10:46 am]
UndeadStar -- :wob:
[2026-7-01. : 3:34 pm]
Symmetry -- :wob:
[2026-7-01. : 4:42 am]
Zycorax -- :wob:
Please log in to shout.


Members Online: RIVE