PDA

View Full Version : CMPing what to what? (ASM question)



sean
04-08-2002, 05:18 PM
I had an inkling on the answer because of the direction that MOV, ADD and all thos others work, but when you use the following code:

CMP AX,BX
JNB PROC1

Would it jumo to proc1 if BX was not below AX, or if AX was not below BX. Thanks in advance if you can help.

Brian
04-08-2002, 05:40 PM
My book is all the way downstairs.

Why don't you try it and see what happens?

WayTooHigh
04-09-2002, 08:29 AM
it would jump if AX is not below BX.

i had AX and BX switched

sean
04-09-2002, 05:43 PM
Whoa.... now THAT's lazy!

*admires Brian*