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.
[04:39 pm]
NudeRaider -- sure, make a post in ums assistance
[06:44 am]
CoCo( -- anyone willing to help fix a few triggers on a new "impossible" map? Please
[06:52 pm]
lil-Inferno -- UndeadStar
UndeadStar shouted: https://www.youtube.com/watch?v=rbChzMFX0mE <= I wonder if that will attract new players to SC1&2 ?
:doubt:
[2026-10-28. : 3:18 pm]
UndeadStar -- Spoiler: there are no medics in that video
[2026-10-28. : 3:18 pm]
UndeadStar -- this made me remember a line in the Broodwar manual static about medics "lengthening the expected battlefield life expectancy to over nine seconds"
[2026-10-28. : 6:50 am]
UndeadStar -- https://www.youtube.com/watch?v=rbChzMFX0mE <= I wonder if that will attract new players to SC1&2 ?
[2026-10-28. : 2:28 am]
Symmetry -- ball cleavage
[2026-10-28. : 12:38 am]
Wing Zero -- Ya cleavage
[2026-10-28. : 12:02 am]
NudeRaider -- and you can guess what the small thing in the middle is :awesome:
[2026-10-28. : 12:01 am]
NudeRaider -- Fartys balls
Please log in to shout.


Members Online: ihjel, lil-Inferno, NudeRaider