Re: Question about jumps



rhyde@xxxxxxxxxx écrivait news:1156693275.457877.12410
@p79g2000cwp.googlegroups.com:


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.

Clown, you should notice that if he had fallen into your traps,
he wouldn't even ask any such question, and would not even try
to understand how the Conditional Jumps effectively work.

There is a price to pay for learning anything, and it is no use
to pay twice:

* One for your absurd HLL Pre-Parser.

* One for Assembly.

Then, as long as you do not have any prerequisite knowledge about
what Assembly is, you are not in a good position for teaching
others how to do what you do not do. You'd better teach them how
to write an HLL Pre-Parser in Flex, Bison, and C.


Betov.

< http://rosasm.org >





.