From a61858c96ad21f849e3a5c37ea1b6bf410ca1e0f Mon Sep 17 00:00:00 2001 From: scawful Date: Tue, 25 Jun 2024 17:22:57 -0400 Subject: [PATCH] Add expanded message IDs with help from Zarby89 --- Core/message.asm | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Core/message.asm diff --git a/Core/message.asm b/Core/message.asm new file mode 100644 index 0000000..76ea3bb --- /dev/null +++ b/Core/message.asm @@ -0,0 +1,50 @@ +; Expanded Message Bank +; Special thanks to Zarby89 + +!addr = $0EF3FF +!looprun = $00 +while !looprun == $00 + if read1(!addr) == $7F + !addr #= !addr+1 + print hex(!addr) ; DEBUG LINE + !looprun = $01 + + endif + !addr #= !addr-1 +endwhile + +org !addr+1 +db #$80 + + +org $05DE66 +LDA.b #$8D +LDY.b #$01 + +org $0ED436 + JML MessageExpand + NOP #$06 + + +org $3C8000 + MessageExpand: + LDA.b $02 : AND.w #$00FF : CMP.w #$000E : BNE + ; are we already in expanded bank? + LDA.w #MessageExpandedData : STA.b $00 + LDA.w #MessageExpandedData>>16 : STA.b $02 + JML $0ED3FC ; go back to original read message code pointers + + + ; Restore vanilla code + LDA.w #$DF40 : STA.b $00 + LDA.w #$000E : STA.b $02 + JML $0ED3FC ; go back to original read message code pointers + +MessageExpandedData: + Message_18D: + db $13, $B0, $2C, $59, $B5, $59, $BE, $2C, $2C, $1A + db $20, $1E, $59, $35, $3C, $03, $59, $A9, $26, $59 + db $1B, $93, $24, $75, $37, $3A, $59, $3C, $34, $36 + db $3A, $7F + db $FF ; end of message pointers checks + + +warnpc $3CA62A