09-23-2012, 12:42 PM
One final thing I want to do for my personal project involves moving text pointers, in order to give every item in the game a full description, or as much as window size will allow. I imagine that the bulk (if not all) of the work I'll have to do, has to do with this data from C3 (quoted from the disassembly):
I don't know quite what to do with all of it, but I imagine that if this idea is possible for me to pull off, it will involve moving much or all of this into another bank. I have my eyes on the LDX 6400, in particular...in my ROM, item descriptions begin at 2D6600 and end at 2D7990, and if I am to be able to create full descriptions for all items, it would require a *lot* more space than that. There's a lot at the end of my ROM, but its just a matter of being able to point to it, and I'm not sure if I'd be able to do so with this data located here. Actually doing the descriptions should be easy; its the rest of it I'd need help with. Does anyone have any suggestions on where to start?
Code:
C3/82DD: 7B TDC
C3/82DE: A52A LDA $2A
C3/82E0: 0A ASL A
C3/82E1: AA TAX
C3/82E2: 7CE582 JMP ($82E5,X)
C3/82E5: A17F (put item names and quantities in VRAM buffer?)
C3/82E7: 9E4F (put spell names in VRAM buffer?)
C3/82E9: 5652 (put lore names in VRAM buffer?)
C3/82EB: EE53 (put rage names in VRAM buffer?)
C3/82EC: E354 (put esper names in VRAM buffer?)
C3/82EE: E29C (looks like the equip screen VRAM buffer?)
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!)
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
I don't know quite what to do with all of it, but I imagine that if this idea is possible for me to pull off, it will involve moving much or all of this into another bank. I have my eyes on the LDX 6400, in particular...in my ROM, item descriptions begin at 2D6600 and end at 2D7990, and if I am to be able to create full descriptions for all items, it would require a *lot* more space than that. There's a lot at the end of my ROM, but its just a matter of being able to point to it, and I'm not sure if I'd be able to do so with this data located here. Actually doing the descriptions should be easy; its the rest of it I'd need help with. Does anyone have any suggestions on where to start?