Assembly Jump conditionals -- jae vs. jbe
Posted
by Raven Dreamer
on Stack Overflow
See other posts from Stack Overflow
or by Raven Dreamer
Published on 2010-06-17T02:25:49Z
Indexed on
2010/06/17
2:32 UTC
Read the original article
Hit count: 333
Hi, all!
I'm working on an assembly program (intel 8086). I'm trying to determine whether an input character (stored in dl) is within a certain range of hex values.
cmp dl, 2Eh ;checks for periods
je print ;jumps to print a "." input
cmp dl, 7Ah ;checks for outside of wanted range
jae input ; returns to top
Please confirm that this is a correct interpretation of my code:
step 1: if dl = 2E, goto print Step 2: if dl >= 7A is false, goto input [if dl < 7A, goto input]
© Stack Overflow or respective owner