Advertisement
AnthonyCagliano

Untitled

Dec 5th, 2022
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. ; point_iszero(struct Point *pt)
  2. _point_iszero:
  3. pop hl
  4. push hl
  5. ld b, 60
  6. or a
  7. .loop:
  8. or (hl)
  9. inc hl
  10. djnz .loop
  11. or a
  12. ret z
  13. ld a, 1
  14. ret
  15.  
  16. ; bigint_iszero(uint8_t *op);
  17. _bigint_iszero:
  18. pop hl
  19. push hl
  20. ld b, 30
  21. or a
  22. .loop:
  23. or (hl)
  24. inc hl
  25. djnz .loop
  26. or a
  27. ret z
  28. ld a, 1
  29. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement