Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ld a, 2 ; loop initial value
  2. ld hl, $DE06 ; address one before pc pkmn 1 name,
  3. ld b, (hl) ; $d327
  4. inc hl
  5. ld c, (hl)
  6. inc c
  7. inc hl
  8. dec c
  9. push bc
  10. dec a
  11. jp nz, $d327 ; loop until a=0
  12. inc d ;; throwaway
  13. inc hl
  14. dec e ;; throwaway
  15. ld a, (hl)
  16. inc b ;; throwaway
  17. pop bc
  18. pop de
  19. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement