comparing words

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello:

I need to compare a word (in r22 &r20) to 2 constants say 2000 & 3159 & check if it is within this range, taking a branch to do_err if it is not.

Any thoughts on how to code this effciently in assem?
what I've come up with seems quite convoluted

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!