Re: Question about jumps




Markus Pitha wrote:
Hello,

I tried to program a simple if...else, but when the expression is TRUE,
the program executes both the if branch and the else branch, so it jumps
back to the jz call and executes the else branch too? Why is this so and
how can I solve this?


[Carrying over from a different thread]

Now I think you're beginning to see why AoA/32 teaches assembly
language the way it does. One new concept at a time, taught when you
have the background (prerequisite) material to fully understand what's
going on.
Cheers,
Randy Hyde

.