Assembly Jump conditionals -- jae vs. jbe
- by Raven Dreamer
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]