Advertisement
SerityW

Untitled

Nov 27th, 2020 (edited)
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. 3/5BF1 LDA #$D8
  2. 3/5BF3 STA $ED
  3.  
  4. ->
  5.  
  6. JSL <some fuckoffspace>
  7. 22 ZZ YY XX
  8.  
  9. ->
  10.  
  11. <some fuckoffspace>
  12. SEP #$10 ;; set 8-bit x
  13. LDX $4B ;; load menu cursor position
  14. LDA $9D89,X ;; load which spell it is
  15. REP #$10 ;; clear 8-bit x
  16. CMP #$20 ;; if spell is >= 32 then
  17. BCS <more> ;; goto <more>
  18. LDA #$D8 ;; initial location
  19. STA $ED
  20. RTL
  21. <more>
  22. LDX #$NEW_LOC_MID_LOW
  23. STX $EB ;; overwrite old pointer
  24. LDA #$NEW_HIGH
  25. STA $ED
  26. RTL
  27.  
  28. E2 10 A6 4B BD 89 9D C2 10 C9 20 B0 05 A9 D8 85 ED 6B A2 ZZ YY 8E EB A9 XX 85 ED 6B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement