11 March 2016 - Forum Rules
Started by Gyroballer, January 21, 2020, 05:12:14 PM
QuoteI legitimately believe there's no free space in the bank where I can put the ASM.
Quote from: Cyneprepou4uk on January 21, 2020, 06:14:26 PMYou were saying?Also, your F0 + D8 bytes are most likely what is causing troubles. Do you know what code you are actually writting with them?
QuoteIt's the original text routine stuff that I overwrote. Following the guide, it says to write 20, then the memory address, then EA as a NOP. Then you go to where it pointed and you write the first four bytes of the text routine that you overwrote with 20xxxxEA and then 60 to return
Quote from: Cyneprepou4uk on January 23, 2020, 08:16:37 AMLet's get started then. Show me a screenshot of the code that you're trying to edit.
Quote from: Cyneprepou4uk on January 23, 2020, 09:02:54 AMDespite I can read code by looking at bytes, anyone would prefer reading it by looking at instructions in debugger. So I'll explain it afterwards when you post it.You're gonna need a screenshot of the original unmodified code, and a screenshot of the subroutine to where you transfer instructions and add 60 (RTS) in the end.
Quote from: Cyneprepou4uk on January 24, 2020, 12:33:54 AMCheck out where BEQ instruction branches in original and in your code. Look at the address next to it. Disable ROM offsets checkmark.You can add an execute breakpoint with condition Z==#01 for the address at the left from BEQ to see how does it screws up your plans in "creating a subroutine while leaving everything intact". I took a quick look at the manual you've mentioned earlier. That dude made a JSR on top of the LDY + LDA instructions. Don't know why you didn't follow his example.
Quote from: Cyneprepou4uk on January 24, 2020, 03:16:56 PM"the address at the left from BEQ" means the address at the left from BEQI never said you forgot JSR.
0F:FF31: A4 55 LDY $55 = #$4A0F:FF33: B1 5A LDA ($5A),Y @ $B2D8 = #$000F:FF35: C9 2C CMP #$2C0F:FF37: D0 02 BNE $FF3B0F:FF39: A9 2D LDA #$2D0F:FF3B: 60 RTS -----------------------------------------
Quote from: Gyroballer on January 24, 2020, 03:32:17 PM I'm working with like six 00 bytes and I still am not sure where to find more, but I'll mess with RAM and message back. Thanks!
Quote from: PhOeNiX on February 13, 2020, 04:17:08 PMOne option is to extract some text from the game, compress it with your DTEs before even writing down your DTE routine, and putting it back into the ROM. The remaining space after/before the new compressed text should be enough to implement your routine in the ROM.
Page created in 0.074 seconds with 20 queries.