Options:
- jz
- jnz
- jc
- jnc
I have the answer to this question but am struggling to understand exactly what it is asking. What does it mean and what would be a good way to brush up on this topic? Thanks.
Options:
I have the answer to this question but am struggling to understand exactly what it is asking. What does it mean and what would be a good way to brush up on this topic? Thanks.
Copyright © 2021 Jogjafile Inc.
I used mainly the x86 instruction set, but it seems the 8080 one is close enough, so the jump instructions are the same.
In x86 (or 8080), if your C code looks like this
the compiler will usually produce assembly code like this:
In pseudo-code
aandbcode1)code1code2An optimizing compiler can change your code layout (sometimes radically, so you will see neither
cmpnorjz), but you cannot predict that, so the best you can do is assume there were no optimizations and rearrangements.