Advertisement
beckadam

Chained comparison?

Aug 5th, 2020
2,731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cp a,2
  2. jr c,success
  3. cp a,3
  4. jr c,success
  5. cp a,5
  6. jr c,success
  7. cp a,9
  8. jr c,success
  9. ;fail
  10. jr loop
  11. success:
  12. ;success case
  13. ;Note that the carry flag will always be set here
  14. loop:
  15. ;continue the loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement