Advertisement
ISSOtm

bits % 512 == 64

Sep 6th, 2017
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. ; bits is stored in hl
  2.  
  3. bit 0, h ; Don't care about the other bits to do the "mod 512"
  4. jr nz, .not64
  5. ld a, l ; (bits % 512) < 256, check if it's exactly 64
  6. cp 64
  7. jr nz, .not64
  8. ; (bit % 512) == 64 :ok_hand:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement