britedream
November 15th, 2004, 05:04
Hi psyCk0
I was testing some code and found that you used unsigned jumps , which produced logical errors:
var test
mov test,5
sub test,6
cmp test,5
ja notgood
ret
notgood:
msg "not good"
ret
it jumps , which is wrong. it compared 255 (-1) with 5
if jg [ signed jumps]is used insteadof ja [unsigned jumps] would produced the correct action.
Regards.
Britedreams
I was testing some code and found that you used unsigned jumps , which produced logical errors:
var test
mov test,5
sub test,6
cmp test,5
ja notgood
ret
notgood:
msg "not good"
ret
it jumps , which is wrong. it compared 255 (-1) with 5
if jg [ signed jumps]is used insteadof ja [unsigned jumps] would produced the correct action.
Regards.
Britedreams