Advertisement
AnthonyCagliano

Untitled

Jan 5th, 2022
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. _cleanstack:
  2. ld hl, (sp)
  3. ld bc, sp
  4. or a
  5. sbc hl, bc
  6. ld (_stacklen), hl
  7. ld bc, (_stacklen)
  8. ld de, sp
  9. ld hl, sp
  10. ld (de), 0
  11. inc de
  12. dec bc
  13. ldir
  14. ex de, hl
  15. ld sp, hl
  16. ret
  17. _stacklen: rb 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement