Qbasicnews.com

Full Version: ASM Q
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What does the test instruction do, and how does it work?
test is just like and, except it doesn't modify its operands - it just sets the flags as if you did an and. cmp works the same way, except with subtraction.
So this code:

Code:
test al,al
jne 0044AF0C

What would this do?
It takes the jump iff AL = 0.