Advertisement
SerityW

Untitled

Nov 3rd, 2020 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. C3/82F1 unknow
  2.  
  3.  
  4. C3/82F1: 200883 JSR $8308
  5. C3/82F4: 7B TDC (Clear A)
  6. C3/82F5: A54B LDA $4B (Load index from $4B)
  7. C3/82F7: A8 TAY (Transfer index to Y)
  8. C3/82F8: B96918 LDA $1869,Y (Load inventory item Y)
  9. C3/82FB: 203857 JSR $5738
  10. C3/82FE: 205683 JSR $8356
  11. C3/8301: A920 LDA #$20 (Load A with 32)
  12. C3/8303: 8529 STA $29 (set text color to white)
  13. C3/8305: 4C7A83 JMP $837A (BRA fool!)
  14.  
  15. ^^^^^^^ replace the above with something along the lines of
  16. TDC
  17. LDA $4B
  18. TAY
  19. LDA $1869,Y
  20. CMP #$C9
  21. PHA
  22. BCS label200
  23. JSR $8308
  24. PLA
  25. labelback:
  26. JSR $5738
  27. JSR $8356
  28. LDA #$20
  29. STA $29
  30. JMP $837A
  31.  
  32. label200:
  33. JSR laterDescriptions ; basically a duplicate of the below 8308+ shit except with different addresses
  34. PLA
  35. SBC #$C9 ; ??? i'm just guessing here but you'd want to reduce the itemID by 200 so you don't have to go to the 200th pointer in the block
  36. BRA labelback
  37.  
  38. C3/8308: A2A07A LDX #$7AA0 (Pointers to item descriptions)
  39. C3/830B: 86E7 STX $E7
  40. C3/830D: A20064 LDX #$6400 (Start of item descriptions)
  41. C3/8310: 86EB STX $EB
  42. C3/8312: A9ED LDA #$ED (Bank address of pointers to item descriptions)
  43. C3/8314: 85E9 STA $E9
  44. C3/8316: A9ED LDA #$ED (Bank address of item descriptions)
  45. C3/8318: 85ED STA $ED
  46. C3/831A: A2C99E LDX #$9EC9
  47. C3/831D: 8E8121 STX $2181
  48. C3/8320: 60 RTS
  49.  
  50.  
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement