HEXADECIMAL TO DECIMAL CONVERSION FOR BATTLE HP NUMERALS C2/FA00 A9 00 00 LDA #$0000 C2/FA03 85 D2 STA $D2 [$00:00D2] C2/FA05 85 D4 STA $D4 [$00:00D4] C2/FA07 85 D8 STA $D8 [$00:00D8] C2/FA09 A9 01 00 LDA #$0001 C2/FA0C 8D 50 22 STA $2250 [$00:2250] C2/FA0F A5 D0 LDA $D0 [$00:00D0] C2/FA11 C9 10 27 CMP #$2710 C2/FA14 30 18 BMI $18 [$FA2E] C2/FA16 8D 51 22 STA $2251 [$00:2251] C2/FA19 A9 10 27 LDA #$2710 C2/FA1C 8D 53 22 STA $2253 [$00:2253] C2/FA1F A9 05 00 LDA #$0005 C2/FA22 85 D8 STA $D8 [$00:00D8] C2/FA24 AD 06 23 LDA $2306 [$00:2306] C2/FA27 85 D3 STA $D3 [$00:00D3] C2/FA29 AD 08 23 LDA $2308 [$00:2308] C2/FA2C 85 D0 STA $D0 [$00:00D0] C2/FA2E C9 E8 03 CMP #$03E8 C2/FA31 30 1C BMI $1C [$FA4F] C2/FA33 8D 51 22 STA $2251 [$00:2251] C2/FA36 A9 E8 03 LDA #$03E8 C2/FA39 8D 53 22 STA $2253 [$00:2253] C2/FA3C A5 D8 LDA $D8 [$00:00D8] C2/FA3E D0 05 BNE $05 [$FA45] C2/FA40 A9 04 00 LDA #$0004 C2/FA43 85 D8 STA $D8 [$00:00D8] C2/FA45 AD 06 23 LDA $2306 [$00:2306] C2/FA48 85 D3 STA $D3 [$00:00D3] C2/FA4A AD 08 23 LDA $2308 [$00:2308] C2/FA4D 85 D0 STA $D0 [$00:00D0] C2/FA4F C9 64 00 CMP #$0064 C2/FA52 30 1C BMI $1C [$FA70] C2/FA54 8D 51 22 STA $2251 [$00:2251] C2/FA57 A9 64 00 LDA #$0064 C2/FA5A 8D 53 22 STA $2253 [$00:2253] C2/FA5D A5 D8 LDA $D8 [$00:00D8] C2/FA5F D0 05 BNE $05 [$FA66] C2/FA66 AD 06 23 LDA $2306 [$00:2306] C2/FA69 85 D4 STA $D4 [$00:00D4] C2/FA6B AD 08 23 LDA $2308 [$00:2308] C2/FA6E 85 D0 STA $D0 [$00:00D0] C2/FA70 C9 0A 00 CMP #$000A C2/FA73 30 1C BMI $1C [$FA91] C2/FA75 8D 51 22 STA $2251 [$00:2251] C2/FA78 A9 0A 00 LDA #$000A C2/FA7B 8D 53 22 STA $2253 [$00:2253] C2/FA7E A5 D8 LDA $D8 [$00:00D8] C2/FA80 D0 05 BNE $05 [$FA87] C2/FA87 AD 06 23 LDA $2306 [$00:2306] C2/FA8A 85 D5 STA $D5 [$00:00D5] C2/FA8C AD 08 23 LDA $2308 [$00:2308] C2/FA8F 85 D0 STA $D0 [$00:00D0] C2/FA91 85 D6 STA $D6 [$00:00D6] C2/FA93 A5 D8 LDA $D8 [$00:00D8] C2/FA95 D0 05 BNE $05 [$FA9C] C2/FA9C A9 05 00 LDA #$0005 C2/FA9F 38 SEC C2/FAA0 E5 D8 SBC $D8 [$00:00D8] C2/FAA2 F0 0B BEQ $0B [$FAAF] C2/FAA4 3A DEC A C2/FAA5 9B TXY C2/FAA6 AA TAX C2/FAA7 B5 D2 LDA $D2,x [$00:00D2] C2/FAA9 09 FF 00 ORA #$00FF C2/FAAC 95 D2 STA $D2,x [$00:00D2] C2/FAAE BB TYX C2/FAAF A9 01 00 LDA #$0001 C2/FAB2 8D 60 30 STA $3060 [$00:3060] C2/FAB5 60 RTS CALL DECIMALS FROM SA-1 MIRROR C2/FAD0 AD D2 30 LDA $30D2 [$00:30D2] C2/FAD3 95 00 STA $00,x [$00:00D2] C2/FAD5 AD D4 30 LDA $30D4 [$00:30D4] C2/FAD8 95 02 STA $02,x [$00:00D4] C2/FADA AD D6 30 LDA $30D6 [$00:30D6] C2/FADD 95 04 STA $04,x [$00:00D6] C2/FADF AD D8 30 LDA $30D8 [$00:30D8] C2/FAE2 95 06 STA $06,x [$00:00D8] C2/FAE4 60 RTS SET TILE INDEXES FROM DECIMALS C2/FB00 A5 66 LDA $66 [$00:0066] C2/FB02 9F 0C 00 40 STA $40000C,x[$40:320C] C2/FB06 AA TAX C2/FB07 A5 D2 LDA $D2 [$00:00D2] C2/FB09 9F 46 00 40 STA $400046,x[$40:2446] C2/FB0D A5 D4 LDA $D4 [$00:00D4] C2/FB0F 9F 48 00 40 STA $400048,x[$40:2448] C2/FB13 A5 D6 LDA $D6 [$00:00D6] C2/FB15 9F 4A 00 40 STA $40004A,x[$40:244A] C2/FB19 A5 D8 LDA $D8 [$00:00D8] C2/FB1B 9F 4C 00 40 STA $40004C,x[$40:244C] C2/FB1F BF 4F 00 40 LDA $40004F,x[$40:244F] C2/FB23 29 FE FF AND #$FFFE C2/FB26 9F 4F 00 40 STA $40004F,x[$40:244F] C2/FB2A E6 60 INC $60 [$00:0060] C2/FB2C 4C 4F 0C JMP $0C4F [$00:0C4F] DAMAGE x17 C2/FE10 C2 20 REP #$20 C2/FE12 A5 C2 LDA $C2 [$00:00C2] C2/FE14 F0 0C BEQ $0C [$FE22] C2/FE16 38 SEC C2/FE17 E5 C4 SBC $C4 [$00:00C4] C2/FE19 F0 02 BEQ $02 [$FE1D] C2/FE1B 10 03 BPL $03 [$FE20] C2/FE1D A9 01 00 LDA #$0001 C2/FE20 85 C2 STA $C2 [$00:00C2] C2/FE22 0A ASL A C2/FE23 0A ASL A C2/FE24 0A ASL A C2/FE25 0A ASL A C2/FE26 65 C2 ADC $C2 [$00:00C2] C2/FE28 85 C2 STA $C2 [$00:00C2] C2/FE2A E2 20 SEP #$20 C2/FE2C 4C 93 C2 JMP $C293 [$00:C293] CLEAR 5th 'MISS' TILE C2/FE50 A9 43 00 LDA #$0043 C2/FE53 85 D6 STA $D6 [$00:00D6] C2/FE55 A9 10 00 LDA #$0010 C2/FE58 4C A2 30 JMP $30A2 [$00:30A2] SET GREEN HEALING/BLUE PSYCHOPATH BIT FOR 5th TILE C2/FE70 A9 10 10 LDA #$1010 C2/FE73 04 D2 TSB $D2 [$00:00D2] C2/FE75 04 D4 TSB $D4 [$00:00D4] C2/FE77 04 D6 TSB $D6 [$00:00D6] C2/FE79 4C 6F 30 JMP $306F [$00:306F] STORE 9999 to HP C2/FE90 C2 20 REP #$20 C2/FE92 A9 0F 27 LDA #$270F C2/FE95 8F 01 F8 7F STA $7FF801[$7F:F801] C2/FE99 8F 03 F8 7F STA $7FF803[$7F:F803] C2/FE9D 8F 15 F8 7F STA $7FF815[$7F:F815] C2/FEA1 8F 17 F8 7F STA $7FF817[$7F:F817] C2/FEA5 8F 29 F8 7F STA $7FF829[$7F:F829] C2/FEA9 8F 2B F8 7F STA $7FF82B[$7F:F82B] C2/FEAD 8F 3D F8 7F STA $7FF83D[$7F:F83D] C2/FEB1 8F 3F F8 7F STA $7FF83F[$7F:F83F] C2/FEB5 8F 51 F8 7F STA $7FF851[$7F:F851] C2/FEB9 8F 53 F8 7F STA $7FF853[$7F:F853] C2/FEBD 6B RTL --------------------------------------------------------------------- HEXADECIMAL TO DECIMAL CONVERSION FOR OVERWORLD MENU HP NUMERALS C3/E300 A9 64 LDA #$64 C3/E302 20 50 E3 JSR $E350 [$C3:E350] C3/E305 8A TXA C3/E306 5A PHY C3/E307 A4 62 LDY $62 [$00:0062] C3/E309 20 6A 79 JSR $796A [$C3:796A] C3/E30C FA PLX C3/E30D A9 64 LDA #$64 C3/E30F 20 F7 04 JSR $04F7 [$C3:04F7] C3/E312 8A TXA C3/E313 5A PHY C3/E314 A4 62 LDY $62 [$00:0062] C3/E316 20 6A 79 JSR $796A [$C3:796A] C3/E319 FA PLX C3/E31A A9 0A LDA #$0A C3/E31C 20 F7 04 JSR $04F7 [$C3:04F7] C3/E31F 8A TXA C3/E320 5A PHY C3/E321 A4 62 LDY $62 [$00:0062] C3/E323 20 6A 79 JSR $796A [$C3:796A] C3/E326 7B TDC C3/E327 FA PLX C3/E328 8A TXA C3/E329 E6 7A INC $7A [$00:007A] C3/E32B 20 6A 79 JSR $796A [$C3:796A] C3/E32E 28 PLP C3/E32F 60 RTS C3/E350 08 PHP C3/E351 C2 20 REP #$20 C3/E353 48 PHA C3/E354 8A TXA C3/E355 8F 04 42 00 STA $004204[$00:4204] C3/E359 68 PLA C3/E35A E2 20 SEP #$20 C3/E35C 8F 06 42 00 STA $004206[$00:4206] C3/E360 EA NOP C3/E361 EA NOP C3/E362 EA NOP C3/E363 EA NOP C3/E364 EA NOP C3/E365 EA NOP C3/E366 EA NOP C3/E367 C2 20 REP #$20 C3/E369 AF 14 42 00 LDA $004214[$00:4214] C3/E36D 8F 04 42 00 STA $004204[$00:4204] C3/E371 A9 0A 00 LDA #$000A C3/E374 8F 06 42 00 STA $004206[$00:4206] C3/E378 EA NOP C3/E379 EA NOP C3/E37A EA NOP C3/E37B EA NOP C3/E37C EA NOP C3/E37D EA NOP C3/E37E EA NOP C3/E37F AF 14 42 00 LDA $004214[$00:4214] C3/E383 AA TAX C3/E384 20 90 E3 JSR $E390 [$C3:E390] C3/E387 A8 TAY C3/E388 28 PLP C3/E389 60 RTS C3/E390 A5 70 LDA $70 [$00:0070] C3/E392 C9 E8 03 CMP #$03E8 C3/E395 30 2F BMI $2F [$E3C6] C3/E3C6 60 RTS --------------------------------------------------------------------- TALK TO LAMP, MEET HARLEQUIN 60 60 AF C0 66 FF FF 92 2F 68 30 80 1C 46 E0 0C 84 ;shift screen 10 45 57 02 14 05 ;surprised Harlequin 10 80 08 18 07 00 85 ;surprised Mario 10 80 08 1A 08 F0 20 60 61 AF C0 ;"Oh snap..." 66 34 FE 14 05 10 80 08 10 03 FD F7 60 62 AF C0 00 85 10 80 08 1E 00 F0 10 4A 9A 00 0C 00 F3 8B 01 71 DC 00 45 FE 60 63 AF C0 FE 00 F3 8B 01 14 F3 8B 01 14 F2 76 00 60 64 AF C0 FE 60 67 AF C0 9C 1B 60 68 AF 02 50 AB 60 69 AF C0 A2 F0 FE TALK TO HARLEQUIN DA F0 93 FE 60 65 AF C0 66 FF FF FD F7 60 66 AF C0 4A 9A 00 0C 00 F3 8B 01 71 DC 00 45 FE 60 63 AF C0 FE 60 6A AF C0 67 EB FE 9F FE D0 83 0F ;execute event: transferrence to Sea, Area 02 FF ENTER SEA, AREA 02 D8 18 FF FF A0 18 60 6B AF 52 00 95 F0 3C 08 40 06 F0 2D 08 42 09 F0 3C 09 10 C5 80 9C 45 77 10 C0 A4 18 F0 3C 60 6C AF C0 66 DF FE D0 83 0F 60 6D AF C0 67 EB FE FF FF D0 83 0F ;execute event: transferrence to Sea, Area 02 14 03 08 10 04 F0 30 68 BD 80 02 10 E0 ;send home EVT 0F83: HARLEQUIN SENDS MARIO TO SEA, AREA 02 14 03 08 10 04 F0 30 68 82 80 04 20 A0 9C 69 14 8A 08 08 80 F0 14 10 41 06 55 02 60 6E AF C0 14 08 09 10 40 51 02 F0 01 03 00 92 10 80 08 46 89 FD 9E 98 F0 0F FD 9E 98 F0 3C 08 46 8A F0 3C 60 6F AF C0 66 59 FF D0 84 0F 60 70 AF C0 67 65 FF F2 FE D0 84 0F 00 01 09 FF EVT 0F84: MARIO GIVES COINS, BEAST IS SUMMONED 00 83 08 16 81 F0 32 15 91 82 03 1F FD 9E 0D 08 40 81 F0 1D 08 10 82 FD 9E 37 F0 1D 15 F9 F0 1F 60 71 AF 52 14 85 9C 87 08 10 84 F0 EF 9C 5B 0C 09 D4 20 66 02 62 04 66 02 D7 F0 6F 00 15 08 40 00 09 10 42 80 04 21 F0 2F 7E 40 00 F0 2F 61 48 63 24 01 F0 4F 77 50 68 AE 80 0C 1D 66 ;enter area: Sea Shore F0 4F 00 A8 10 46 63 08 F0 2F 08 10 08 F0 2F 71 10 C5 61 38 73 F0 2F 08 46 0C F0 4F 09 08 40 06 F0 4F 08 42 09 F0 18 08 43 00 F0 0F D0 B0 00 ;execute event: Mario engages in battle w/beast FF EVT 00B0: ENGAGE IN BATTLE W/BEAST 4A F8 00 25 DC 00 FF FF 00 03 08 42 08 73 40 F0 CF 77 40 00 03 08 42 07 68 82 80 04 20 A0 CHANGE BANKS FOR DUMMIED ATTACK ANIMATION CODE $C2/4366 5C 90 F1 F6 JMP $F6F190[$F6:F190] A:001B X:2400 Y:2000 P:envmxdIzc $F6/F190 9F 60 00 40 STA $400060,x[$40:2460] A:001B X:2400 Y:2000 P:envmxdIzc $F6/F194 5C 6A 43 C2 JMP $C2436A[$C2:436A] A:001B X:2400 Y:2000 P:envmxdIzc $C2/436A E6 60 INC $60 [$00:0060] A:001B X:2400 Y:2000 P:envmxdIzc PILE DRIVER BATSCRIPT (PILE DRIVER) FC 12 01 01 E7 00 01 01 E5 0D F1 04 E3 90 FE FC 14 00 00 54 EA 00 00 1B FE FC 0D 09 04 FC 11 08 01 E7 01 08 01 F1 04 E3 90 F2 01 01 E8 09 FE FC 11 08 01 E6 00 09 FE E0 00 00 5E FD E0 5E 5E 00 FF FC 07 00 00 F1 03 EA 00 00 1B FE FC 03 6E 6E FC 10 00 27 E7 00 08 01 F1 04 E3 94 F2 00 00 FE FF (BODY) FC 0A 03 00 E7 00 04 02 E8 06 E3 91 E5 2F FD FC 12 0F 01 FC 11 04 02 E7 00 0F 01 E7 01 04 02 E3 92 EF 58 F1 07 EA 01 00 2A EA 01 00 2B E3 93 FE FC 11 04 02 E7 01 04 02 EF 58 FE FC 07 F8 2A FC 10 01 13 E2 1B EF 50 E2 25 EF 62 EF 5E FE FC 07 F8 2A E2 1B EF 50 E2 25 EF 62 FE FC 07 50 46 FC 12 04 04 E7 00 04 04 E2 1B 7B E2 25 FE FC 07 50 46 F0 4A 4B 5D FE FC 07 A8 61 FC 12 04 04 E7 00 04 04 E2 1B 61 E2 25 FE FC 07 A8 61 F0 55 56 57 FE F0 53 54 5C FF FC 07 00 00 FC 11 08 01 E7 01 08 01 F2 01 01 E8 09 EF 67 EA 00 00 1B FE FC 07 00 00 EF 67 EA 00 00 1B FE FF (WATER SPIKE) E0 03 28 29 FD E0 2A 30 31 FF FC 10 01 27 FC 10 00 14 E6 00 00 FC 0D 00 02 E7 01 0F 01 E8 00 FE FF