11 March 2016 - Forum Rules
Started by the_E_y_Es, January 18, 2021, 10:54:00 AM
0x80fe57 jsl 81aec0
0x80fe57 jml 9fff3d
Normal Jumps Opcode Flags Clks Native Nocash Effect 80 dd ------ 3xx BRA disp8 JMP disp PC=PC+/-disp8 82 dd dd ------ 4 BRL disp16 JMP disp PC=PC+/-disp16 4C nn nn ------ 3 JMP nnnn JMP nnnn PC=nnnn 5C nn nn nn ------ 4 JMP nnnnnn JMP nnnnnn PB:PC=nnnnnn 6C nn nn ------ 5 JMP (nnnn) JMP [nnnn] PC=WORD[00:nnnn] 7C nn nn ------ 6 JMP (nnnn,X) JMP [nnnn+X] PC=WORD[PB:nnnn+X] DC nn nn ------ 6 JML ... JMP FAR[nnnn] PB:PC=[00:nnnn] 20 nn nn ------ 6 JSR nnnn CALL nnnn [S]=PC+2,PC=nnnn 22 nn nn nn ------ 4 JSL nnnnnn CALL nnnnnn PB:PC=nnnnnn [S]=PB:PC+3 FC nn nn ------ 6 JSR (nnnn,X) CALL [nnnn+X] PC=WORD[PB:nnnn+X] [S]=PC 40 nzcidv 6 RTI RETI P=[S+1],PB:PC=[S+2],S=S+4 6B ------ ? RTL RETF PB:PC=[S+1]+1, S=S+3 60 ------ 6 RTS RET PC=[S+1]+1, S=S+2
Quote from: Cyneprepou4uk on June 26, 2021, 06:51:43 AMDC is for indirect addressing mode. Use 5C for absolute.
QuoteI don't know what a jml looks like in machine code so I use this as a reference:
Quote from: DougRPG on June 27, 2021, 01:04:22 PMAbout the expansion, the game is Lorom with 1MB using the region 80-9f:8000-ffff, so just expand the rom to 2MB (filling with 0) and use the new megabyte at a0-bf:8000:ffff.
org $80FEA2 JSL tag_uncompressed_text NOP ;padding for 5 bytesorg $A08xxx ;expanded ROM spacetag_uncompressed_text: LDA $D980,x ;original code STA $02 ;original code SEC ;set carry to indicate uncompressed RTL
org $80FE34 JSL filter_text_types NOP ;padding for 5 byteorg $A08xxx ;expanded ROM spacefilter_text_types: BCC compresseduncompressed: CLC PLA ;pull the JSL off stack, any more and game freezes ~~~~~~ ~copy the uncompressed script to WRAM~compressed: LDA #$9DFF ;original code STA $D0 ;original codecontinue_to_text_draw: RTL
Quote from: Noctropolitan on September 14, 2021, 08:09:00 AMHi, the_E_y_Es, I've sent you a private message about this topic, in case you are still working on this.
Quote from: the_E_y_Es on September 14, 2021, 07:49:02 PMHey there. I don't think I've received your message. You might want to re-send it.Edit: oh, it's an email. Nevermind, I got it.
Page created in 0.062 seconds with 20 queries.