Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C3/82F1 unknow
- C3/82F1: 200883 JSR $8308
- C3/82F4: 7B TDC (Clear A)
- C3/82F5: A54B LDA $4B (Load index from $4B)
- C3/82F7: A8 TAY (Transfer index to Y)
- C3/82F8: B96918 LDA $1869,Y (Load inventory item Y)
- C3/82FB: 203857 JSR $5738
- C3/82FE: 205683 JSR $8356
- C3/8301: A920 LDA #$20 (Load A with 32)
- C3/8303: 8529 STA $29 (set text color to white)
- C3/8305: 4C7A83 JMP $837A (BRA fool!)
- ^^^^^^^ replace the above with something along the lines of
- TDC
- LDA $4B
- TAY
- LDA $1869,Y
- CMP #$C9
- PHA
- BCS label200
- JSR $8308
- PLA
- labelback:
- JSR $5738
- JSR $8356
- LDA #$20
- STA $29
- JMP $837A
- label200:
- JSR laterDescriptions ; basically a duplicate of the below 8308+ shit except with different addresses
- PLA
- 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
- BRA labelback
- C3/8308: A2A07A LDX #$7AA0 (Pointers to item descriptions)
- C3/830B: 86E7 STX $E7
- C3/830D: A20064 LDX #$6400 (Start of item descriptions)
- C3/8310: 86EB STX $EB
- C3/8312: A9ED LDA #$ED (Bank address of pointers to item descriptions)
- C3/8314: 85E9 STA $E9
- C3/8316: A9ED LDA #$ED (Bank address of item descriptions)
- C3/8318: 85ED STA $ED
- C3/831A: A2C99E LDX #$9EC9
- C3/831D: 8E8121 STX $2181
- C3/8320: 60 RTS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement