Files
disasm/NROM/Tag Team Wrestling (U)/prg.s
T
tmerritt 6740550ac0 CDL re-trace: 1942 (JU) 46.6%, Galaga (U) 32.3% (Pass 2/3 complete)
Pass 3 _wip: semantic ZP aliases for Sqoon (U) (FrameCounter, PpuCtrlShadow, NmiFrameFlag) and Elevator Action (U) (PpuCtrlShadow, NmiSaveA/X/Y)
Pass 3 Slalom (U): semantic ZP aliases (PpuCtrlShadow, PpuMaskShadow)
Pass 3 Kung Fu (U): semantic ZP alias (PpuCtrlShadow)
Pass 3 Othello (U): semantic ZP alias (PpuCtrlShadow)
Pass 3 1942 (JU): semantic ZP alias (PpuCtrlShadow)
Pass 3 Galaga (U): semantic ZP aliases (PpuCtrlShadow, PpuMaskShadow)
Docs: add power-on flow + data-table inventory to READMEs of 13 promoted NROM projects
Pass 3 Elevator Action (U): add NmiFrameFlag alias
Pass 3 Elevator Action (U): full ZP naming (23 aliases) + 25 named data tables, 59.4% coverage
Pass 1/2/3 re-trace: recover unreached code in 7 NROM projects (Sqoon 56.4%, Elevator Action 59.3%, Kung Fu 52.1%, 1942 52.1%)
Pass 3 Sqoon (U): full ZP naming (22 aliases) + 17 named data tables
Pass 3 Kung Fu (U): full ZP naming (21 aliases) + 13 named data tables
Pass 3 Othello (U): full ZP naming (18 aliases) + 27 named data tables
Pass 3 1942 (JU): full ZP naming (14 aliases) + 19 named data tables
Pass 3 Galaga (U): full ZP naming (15 aliases) + 14 named data tables
Pass 3 Slalom (U): full ZP naming (16 aliases) + 16 named data tables
Pass 2/3: re-apply naming to Slalom (U), Othello (U), Galaga (U) after re-seed
Pass 1/2/3 re-trace: recover unreached code in 6 more promoted NROM projects
Pass 3 Stack-Up (JU): full ZP naming (15 aliases) + 12 named data tables
Pass 3 Tag Team Wrestling (U): full ZP naming (20 aliases) + 11 named data tables
Pass 3 Kung Fu (U) (a1): full ZP naming (20 aliases) + 12 named data tables
Pass 3 Magmax (U): full ZP naming (18 aliases) + 6 named data tables
Pass 3 Soccer (JU): full ZP naming (18 aliases) + 9 named data tables
Pass 3 Ms Pac-Man (Namco) (U): full ZP naming (18 aliases) + 8 named data tables
Docs: refresh coverage numbers and data-table inventories for 13 promoted NROM projects
2026-10-21 16:43:54 -04:00

21272 lines
1.3 MiB
Plaintext

; Tag Team Wrestling (U) NES disassembly - Pass 1
; Byte-oriented ca65 source generated from the supplied PRG image.
; Recursively reachable instructions are emitted explicitly with address/byte comments.
; Unreached bytes remain explicit .byte blocks; no ROM byte is deleted or reformatted.
; Pass 2 replaces address-derived labels, RAM aliases, and table names while
; preserving byte identity.
;
; Vectors: NMI=$FFCD RESET=$FD43 IRQ=$FD43
; PRG mapped at $8000-$FFFF (NROM, mirrored to the upper half)
;
; Pass 1 trace provenance (the audit trail behind every classification below):
; 34 further routine entries recovered from table references elsewhere in the image:
; $8787, $A199, $A303, $AA7D, $AAB1, $AC7F, $AD0C, $AD9D, $ADB1, $ADCF, $AFA0, $AFA4, $AFB8, $B0C1, $B0C8, $B2C2, $B2C6, $B3C0, $B698, $B7C7, $B9C0, $BDC3, $BF3F, $C02C, $C040, $C060, $C0D4, $C2BE, $C5E9, $C69A, $C83F, $DA02, $DAB8, $F028
; entries seeded by hand after inspecting code-shaped but unreferenced blocks:
; $9E3A, $A131, $A152, $A165, $A17E, $A1A7, $A1B4, $A1BE, $A1CF, $A1D6, $A1DD, $A1E9, $A1FE, $A214, $A22A, $A239, $A241, $A249, $A253, $A25D, $A268, $A273, $AD15, $B0D5, $B1B2, $B1BB, $B3CA, $B3D2, $B414, $B6A5, $B6B1, $B73C, $B821, $B83D, $B88B, $B8B3, $B8B6, $BD98, $BF61, $BF68, $BF8A, $BFAB, $BFC0, $BFE8, $C2E0, $C2E7, $C309, $C341, $C356, $C3CA, $C3CD, $C4DA, $C60B, $C612, $C634, $C636, $C655, $C66A, $C692, $C70A, $C7FA, $C8DD, $C8E0, $C99C, $C9EE, $CA35, $CA78, $CA7B, $CAC3, $CAF1, $CAF4, $CB7A, $CC08, $CD0E, $CD39, $CD7F, $CDE2, $CE3C, $CF71, $CFEF, $D01B, $D031, $D08F, $D12D, $D304, $D755, $D7B3, $D7F3, $D8E3, $D8E4, $DA29, $DA2E, $DA33, $DA47, $DA48, $DA49, $DA4A, $DA57, $DADF, $DAE4, $DAE9, $DAFD, $DAFE, $DAFF, $DB00, $DB0D, $DC9C, $DC9F, $DCDA, $DDE0, $DDE3, $DDE6, $DDE9, $DDFB, $DE07, $DE35, $DFDD, $DFE4, $E014, $E017, $E5C1, $E8EF, $E901, $E93D, $ED0D, $ED0E, $ED0F, $ED14, $ED15, $ED16, $ED1B, $ED22, $ED23, $EDC4, $EDC7, $EDCD, $EDD6, $EDDC, $EDE5, $EDEB, $EDF4, $EDFA, $EFCD, $EFCF, $F010, $F255, $F272, $F27F, $F28C, $F299, $F2AC, $F2BB, $F2C1, $FD16, $FD25, $FD3D
; indirect dispatch through zero page (not followed statically):
; jmp ($0004) at $FD99
; jmp ($4721) at $B8B3
; jmp ($0022) at $BDC0
; jmp ($0022) at $C83C
; jmp ($A07D) at $878F
; jmp ($0022) at $D9FF
; jmp ($0022) at $DAB5
; jmp ($0022) at $C029
; jmp ($0022) at $DC99
; jmp ($0022) at $F252
; jmp ($0022) at $C3C7
; jmp ($00D7) at $A36C
; jmp ($0024) at $EDC1
;
.setcpu "6502"
.include "symbols.inc"
.include "locals.inc"
.segment "PRG"
; -----------------------------------------------------------------------------
; Routine: Sub_8000
; Global: Branch target inside Sub: taken when 8000.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_8000:
asl a ; CPU:$8000 PRG:0000 0A
tay ; CPU:$8001 PRG:0001 A8
beq Sub_OnNonnegative ; CPU:$8002 PRG:0002 F0 39
lda $8047,y ; CPU:$8004 PRG:0004 B9 47 80
sta RingEntrancePtrLo ; CPU:$8007 PRG:0007 85 F0
lda $8048,y ; CPU:$8009 PRG:0009 B9 48 80
sta RingEntrancePtrHi ; CPU:$800C PRG:000C 85 F1
lda $8055,y ; CPU:$800E PRG:000E B9 55 80
sta RingEntrancePtr2Lo ; CPU:$8011 PRG:0011 85 F2
lda $8056,y ; CPU:$8013 PRG:0013 B9 56 80
sta RingEntrancePtr2Hi ; CPU:$8016 PRG:0016 85 F3
ldy #$00 ; CPU:$8018 PRG:0018 A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero
; Global: Branch target inside Sub: taken when the tested value is not zero.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero:
lda (RingEntrancePtrLo),y ; CPU:$801A PRG:001A B1 F0
eor #$FF ; CPU:$801C PRG:001C 49 FF
lsr a ; CPU:$801E PRG:001E 4A
sta APUDMCDIRECT ; CPU:$801F PRG:001F 8D 11 40
sta ZpF4 ; CPU:$8022 PRG:0022 85 F4
ldx #$60 ; CPU:$8024 PRG:0024 A2 60
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero2
; Global: Branch target inside Sub: taken when OnNonzero2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero2:
dex ; CPU:$8026 PRG:0026 CA
bne Sub_OnNonzero2 ; CPU:$8027 PRG:0027 D0 FD
inc RingEntrancePtrLo ; CPU:$8029 PRG:0029 E6 F0
bne Sub_Loop ; CPU:$802B PRG:002B D0 02
inc RingEntrancePtrHi ; CPU:$802D PRG:002D E6 F1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop
; Global: Branch target inside Sub: taken when the loop repeats.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop:
lda RingEntrancePtrLo ; CPU:$802F PRG:002F A5 F0
cmp RingEntrancePtr2Lo ; CPU:$8031 PRG:0031 C5 F2
bne Sub_OnNonzero ; CPU:$8033 PRG:0033 D0 E5
lda RingEntrancePtrHi ; CPU:$8035 PRG:0035 A5 F1
cmp RingEntrancePtr2Hi ; CPU:$8037 PRG:0037 C5 F3
bne Sub_OnNonzero ; CPU:$8039 PRG:0039 D0 DF
ldy ZpF4 ; CPU:$803B PRG:003B A4 F4
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonnegative
; Global: Branch target inside Sub: taken when the tested value is not negative.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonnegative:
ldx #$80 ; CPU:$803D PRG:003D A2 80
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero3
; Global: Branch target inside Sub: taken when OnNonzero3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero3:
dex ; CPU:$803F PRG:003F CA
bne Sub_OnNonzero3 ; CPU:$8040 PRG:0040 D0 FD
sty APUDMCDIRECT ; CPU:$8042 PRG:0042 8C 11 40
dey ; CPU:$8045 PRG:0045 88
bpl Sub_OnNonnegative ; CPU:$8046 PRG:0046 10 F5
rts ; CPU:$8048 PRG:0048 60
; ---- data $8049-$8786 (1854 bytes) ----
; referenced by `lda $8055,y` at $800E (operand $8055 falls inside this region)
; referenced by `lda $8056,y` at $8013 (operand $8056 falls inside this region)
RingEntrancePointerTable:
.byte $65, $80, $25, $84, $05, $88, $DA, $8C, $3B, $91, $2B, $94, $EB, $97, $25, $84 ; CPU:$8049 PRG:-3FB7 65 80 25 84 05 88 DA 8C 3B 91 2B 94 EB 97 25 84
.byte $05, $88, $DA, $8C, $3B, $91, $2B, $94, $EB, $97, $EA, $9B, $63, $47, $7A, $7A ; CPU:$8059 PRG:0059 05 88 DA 8C 3B 91 2B 94 EB 97 EA 9B 63 47 7A 7A
.byte $26, $58, $FF, $FF, $90, $44, $8E, $73, $51, $EC, $FF, $CE, $29, $52, $87, $2C ; CPU:$8069 PRG:0069 26 58 FF FF 90 44 8E 73 51 EC FF CE 29 52 87 2C
.byte $00, $FF, $FF, $D3, $20, $75, $85, $3A, $D3, $FF, $BB, $00, $BA, $96, $53, $FF ; CPU:$8079 PRG:0079 00 FF FF D3 20 75 85 3A D3 FF BB 00 BA 96 53 FF
.byte $FF, $07, $00, $AE, $46, $00, $FF, $F1, $4F, $00, $9B, $CF, $79, $FF, $FF, $33 ; CPU:$8089 PRG:0089 FF 07 00 AE 46 00 FF F1 4F 00 9B CF 79 FF FF 33
.byte $00, $B6, $36, $3F, $FF, $FF, $3D, $0A, $BD, $C7, $B7, $FF, $B9, $00, $70, $7B ; CPU:$8099 PRG:0099 00 B6 36 3F FF FF 3D 0A BD C7 B7 FF B9 00 70 7B
.byte $78, $FF, $FF, $83, $0A, $9A, $F8, $D5, $FB, $B7, $22, $4A, $47, $CC, $FF, $F5 ; CPU:$80A9 PRG:00A9 78 FF FF 83 0A 9A F8 D5 FB B7 22 4A 47 CC FF F5
.byte $41, $50, $AA, $D5, $FF, $FF, $3A, $1E, $69, $79, $FF, $FF, $6B, $00, $94, $FF ; CPU:$80B9 PRG:00B9 41 50 AA D5 FF FF 3A 1E 69 79 FF FF 6B 00 94 FF
.byte $FF, $F4, $68, $1A, $3A, $9C, $FF, $FF, $73, $12, $80, $EC, $FF, $F0, $4B, $1F ; CPU:$80C9 PRG:00C9 FF F4 68 1A 3A 9C FF FF 73 12 80 EC FF F0 4B 1F
.byte $1A, $BF, $FF, $FF, $45, $4B, $A9, $FF, $FF, $AC, $2F, $29, $9B, $FF, $FF, $85 ; CPU:$80D9 PRG:00D9 1A BF FF FF 45 4B A9 FF FF AC 2F 29 9B FF FF 85
.byte $45, $8A, $F4, $FF, $B2, $65, $13, $8F, $FF, $FD, $7F, $76, $A7, $C5, $CF, $AD ; CPU:$80E9 PRG:00E9 45 8A F4 FF B2 65 13 8F FF FD 7F 76 A7 C5 CF AD
.byte $7F, $72, $F3, $FD, $9E, $8D, $C2, $E2, $B8, $75, $71, $88, $F9, $FA, $92, $72 ; CPU:$80F9 PRG:00F9 7F 72 F3 FD 9E 8D C2 E2 B8 75 71 88 F9 FA 92 72
.byte $AD, $F6, $CF, $7F, $54, $76, $F6, $F3, $A6, $85, $BF, $D8, $9F, $7B, $92, $DA ; CPU:$8109 PRG:0109 AD F6 CF 7F 54 76 F6 F3 A6 85 BF D8 9F 7B 92 DA
.byte $D5, $AB, $A1, $BC, $CA, $B6, $81, $7A, $D4, $D6, $9E, $92, $B8, $CB, $B5, $80 ; CPU:$8119 PRG:0119 D5 AB A1 BC CA B6 81 7A D4 D6 9E 92 B8 CB B5 80
.byte $9A, $CD, $C0, $AA, $A6, $A9, $AF, $A3, $91, $C8, $D7, $9E, $99, $BB, $BA, $A6 ; CPU:$8129 PRG:0129 9A CD C0 AA A6 A9 AF A3 91 C8 D7 9E 99 BB BA A6
.byte $97, $A9, $CE, $A6, $9B, $B2, $C6, $B8, $A1, $88, $B4, $CA, $AF, $A7, $B1, $B8 ; CPU:$8139 PRG:0139 97 A9 CE A6 9B B2 C6 B8 A1 88 B4 CA AF A7 B1 B8
.byte $B2, $9D, $9F, $C5, $A4, $A0, $B9, $C3, $B3, $A2, $8B, $B9, $D1, $AF, $9C, $A3 ; CPU:$8149 PRG:0149 B2 9D 9F C5 A4 A0 B9 C3 B3 A2 8B B9 D1 AF 9C A3
.byte $B5, $C1, $A6, $9A, $BF, $B0, $A6, $BC, $BC, $AC, $A3, $96, $AE, $C3, $B4, $AA ; CPU:$8159 PRG:0159 B5 C1 A6 9A BF B0 A6 BC BC AC A3 96 AE C3 B4 AA
.byte $AF, $B3, $B9, $A9, $9A, $B2, $AF, $A5, $B6, $BB, $B1, $B2, $A3, $A1, $BE, $AE ; CPU:$8169 PRG:0169 AF B3 B9 A9 9A B2 AF A5 B6 BB B1 B2 A3 A1 BE AE
.byte $A7, $AF, $B1, $B3, $BA, $9F, $A6, $B8, $AB, $AB, $B2, $AD, $B6, $BA, $9F, $A5 ; CPU:$8179 PRG:0179 A7 AF B1 B3 BA 9F A6 B8 AB AB B2 AD B6 BA 9F A5
.byte $B5, $AE, $AE, $B2, $AD, $BA, $B6, $A1, $AC, $AE, $A7, $B0, $B4, $AA, $B8, $B9 ; CPU:$8189 PRG:0189 B5 AE AE B2 AD BA B6 A1 AC AE A7 B0 B4 AA B8 B9
.byte $A6, $A8, $AB, $A7, $B2, $B7, $AD, $B8, $B8, $A4, $A7, $AD, $A7, $AD, $B5, $AF ; CPU:$8199 PRG:0199 A6 A8 AB A7 B2 B7 AD B8 B8 A4 A7 AD A7 AD B5 AF
.byte $BD, $BD, $A2, $9E, $AC, $AA, $AD, $B1, $B0, $BD, $C3, $AA, $98, $A7, $AD, $B1 ; CPU:$81A9 PRG:01A9 BD BD A2 9E AC AA AD B1 B0 BD C3 AA 98 A7 AD B1
.byte $AE, $AC, $B0, $C3, $B8, $9D, $A7, $A8, $AD, $B2, $B2, $AD, $BA, $BC, $A5, $A1 ; CPU:$81B9 PRG:01B9 AE AC B0 C3 B8 9D A7 A8 AD B2 B2 AD BA BC A5 A1
.byte $AE, $A9, $A8, $AF, $B3, $B7, $C1, $B1, $9B, $AA, $AD, $AA, $AE, $B1, $B0, $BF ; CPU:$81C9 PRG:01C9 AE A9 A8 AF B3 B7 C1 B1 9B AA AD AA AE B1 B0 BF
.byte $BF, $A7, $9C, $AA, $A7, $AA, $AE, $B1, $B7, $C6, $B6, $99, $A6, $AA, $A9, $AF ; CPU:$81D9 PRG:01D9 BF A7 9C AA A7 AA AE B1 B7 C6 B6 99 A6 AA A9 AF
.byte $B1, $AE, $BF, $C0, $A9, $9D, $AA, $A7, $AC, $AC, $B1, $B5, $C5, $B7, $9A, $A3 ; CPU:$81E9 PRG:01E9 B1 AE BF C0 A9 9D AA A7 AC AC B1 B5 C5 B7 9A A3
.byte $A9, $A7, $AD, $B4, $B2, $BB, $BF, $AF, $9E, $AA, $A7, $AA, $AF, $B4, $B0, $C0 ; CPU:$81F9 PRG:01F9 A9 A7 AD B4 B2 BB BF AF 9E AA A7 AA AF B4 B0 C0
.byte $B9, $A0, $9E, $AA, $A8, $AD, $B3, $AF, $B9, $C1, $B3, $98, $A6, $A9, $AD, $B1 ; CPU:$8209 PRG:0209 B9 A0 9E AA A8 AD B3 AF B9 C1 B3 98 A6 A9 AD B1
.byte $B5, $B1, $BC, $BA, $A9, $9D, $A9, $A5, $AC, $B2, $B1, $B5, $C0, $B6, $9D, $A3 ; CPU:$8219 PRG:0219 B5 B1 BC BA A9 9D A9 A5 AC B2 B1 B5 C0 B6 9D A3
.byte $A8, $A7, $AF, $B5, $B0, $BC, $C1, $AD, $99, $A8, $A8, $AC, $B0, $B2, $B1, $BE ; CPU:$8229 PRG:0229 A8 A7 AF B5 B0 BC C1 AD 99 A8 A8 AC B0 B2 B1 BE
.byte $B9, $A4, $9F, $A9, $A5, $AC, $B1, $B3, $B7, $BF, $B2, $9B, $A5, $A7, $AA, $B0 ; CPU:$8239 PRG:0239 B9 A4 9F A9 A5 AC B1 B3 B7 BF B2 9B A5 A7 AA B0
.byte $B6, $B1, $BC, $BB, $AD, $9E, $A8, $A5, $AC, $B0, $B5, $B4, $BD, $B7, $A2, $9F ; CPU:$8249 PRG:0249 B6 B1 BC BB AD 9E A8 A5 AC B0 B5 B4 BD B7 A2 9F
.byte $A9, $A7, $AB, $B1, $B1, $B9, $BE, $B3, $9E, $A3, $A5, $AA, $B1, $B6, $B0, $BA ; CPU:$8259 PRG:0259 A9 A7 AB B1 B1 B9 BE B3 9E A3 A5 AA B1 B6 B0 BA
.byte $BB, $B0, $9F, $A8, $A6, $AA, $B2, $B5, $B1, $BC, $BB, $AC, $9F, $A9, $A5, $AB ; CPU:$8269 PRG:0269 BB B0 9F A8 A6 AA B2 B5 B1 BC BB AC 9F A9 A5 AB
.byte $B2, $B4, $B4, $BD, $B7, $A6, $9F, $A7, $A5, $AC, $B3, $B1, $B6, $BB, $B6, $A6 ; CPU:$8279 PRG:0279 B2 B4 B4 BD B7 A6 9F A7 A5 AC B3 B1 B6 BB B6 A6
.byte $A1, $A8, $A4, $AC, $B2, $AF, $B5, $BC, $B5, $A4, $A1, $A7, $A4, $AE, $B4, $B0 ; CPU:$8289 PRG:0289 A1 A8 A4 AC B2 AF B5 BC B5 A4 A1 A7 A4 AE B4 B0
.byte $B5, $BB, $B4, $A5, $A2, $A6, $A5, $AD, $B5, $B0, $B3, $B9, $B6, $A9, $A3, $A7 ; CPU:$8299 PRG:0299 B5 BB B4 A5 A2 A6 A5 AD B5 B0 B3 B9 B6 A9 A3 A7
.byte $A5, $AC, $B4, $B0, $B2, $BA, $B8, $AC, $A3, $A7, $A5, $AC, $B2, $B0, $B1, $BA ; CPU:$82A9 PRG:02A9 A5 AC B4 B0 B2 BA B8 AC A3 A7 A5 AC B2 B0 B1 BA
.byte $B9, $AF, $A5, $A7, $A3, $A8, $AF, $B1, $B1, $BA, $BC, $B3, $A7, $A4, $A2, $A6 ; CPU:$82B9 PRG:02B9 B9 AF A5 A7 A3 A8 AF B1 B1 BA BC B3 A7 A4 A2 A6
.byte $AD, $B2, $B0, $B6, $B9, $B5, $AC, $A5, $A4, $A3, $AC, $B1, $B0, $B3, $B8, $B9 ; CPU:$82C9 PRG:02C9 AD B2 B0 B6 B9 B5 AC A5 A4 A3 AC B1 B0 B3 B8 B9
.byte $B0, $A7, $A4, $A2, $A6, $AE, $B0, $B0, $B8, $BB, $B6, $AE, $A5, $A2, $A1, $AB ; CPU:$82D9 PRG:02D9 B0 A7 A4 A2 A6 AE B0 B0 B8 BB B6 AE A5 A2 A1 AB
.byte $AF, $B1, $B4, $BA, $B9, $B4, $A9, $A2, $9F, $A5, $AD, $B1, $B0, $B7, $BC, $B8 ; CPU:$82E9 PRG:02E9 AF B1 B4 BA B9 B4 A9 A2 9F A5 AD B1 B0 B7 BC B8
.byte $AF, $A4, $A1, $A1, $AA, $AF, $B1, $B2, $B9, $BB, $B5, $AA, $A2, $A0, $A3, $AB ; CPU:$82F9 PRG:02F9 AF A4 A1 A1 AA AF B1 B2 B9 BB B5 AA A2 A0 A3 AB
.byte $B0, $B0, $B5, $BA, $BA, $B3, $A7, $A2, $9F, $A5, $AC, $B1, $B1, $B8, $BC, $B8 ; CPU:$8309 PRG:0309 B0 B0 B5 BA BA B3 A7 A2 9F A5 AC B1 B1 B8 BC B8
.byte $AF, $A4, $A1, $9F, $A9, $AE, $B2, $B2, $BA, $BC, $B5, $AB, $A3, $A0, $A2, $AA ; CPU:$8319 PRG:0319 AF A4 A1 9F A9 AE B2 B2 BA BC B5 AB A3 A0 A2 AA
.byte $AF, $B1, $B6, $BC, $BA, $B3, $A8, $A2, $9D, $A3, $AB, $B1, $B3, $B9, $BC, $B9 ; CPU:$8329 PRG:0329 AF B1 B6 BC BA B3 A8 A2 9D A3 AB B1 B3 B9 BC B9
.byte $B0, $A5, $A1, $9E, $A8, $AD, $B2, $B5, $BA, $BB, $B7, $AD, $A3, $9F, $A0, $A8 ; CPU:$8339 PRG:0339 B0 A5 A1 9E A8 AD B2 B5 BA BB B7 AD A3 9F A0 A8
.byte $AE, $B2, $B7, $BB, $BA, $B5, $AA, $A1, $9D, $A2, $A9, $B0, $B3, $B9, $BC, $B9 ; CPU:$8349 PRG:0349 AE B2 B7 BB BA B5 AA A1 9D A2 A9 B0 B3 B9 BC B9
.byte $B1, $A6, $A1, $9E, $A6, $AC, $B2, $B5, $BB, $BB, $B7, $AF, $A3, $9F, $9F, $A8 ; CPU:$8359 PRG:0359 B1 A6 A1 9E A6 AC B2 B5 BB BB B7 AF A3 9F 9F A8
.byte $AE, $B3, $B7, $BB, $BA, $B5, $A9, $A1, $9E, $A2, $A9, $B0, $B3, $B8, $BB, $B8 ; CPU:$8369 PRG:0369 AE B3 B7 BB BA B5 A9 A1 9E A2 A9 B0 B3 B8 BB B8
.byte $B2, $A6, $A1, $9E, $A5, $AB, $B3, $B6, $BB, $BB, $B7, $AE, $A4, $A0, $9F, $A7 ; CPU:$8379 PRG:0379 B2 A6 A1 9E A5 AB B3 B6 BB BB B7 AE A4 A0 9F A7
.byte $AE, $B3, $B7, $BB, $BA, $B4, $AA, $A2, $9E, $A2, $A9, $B0, $B4, $B8, $BB, $B8 ; CPU:$8389 PRG:0389 AE B3 B7 BB BA B4 AA A2 9E A2 A9 B0 B4 B8 BB B8
.byte $B2, $A6, $A1, $9D, $A4, $AB, $B2, $B6, $BB, $BB, $B7, $AF, $A5, $9F, $A0, $A7 ; CPU:$8399 PRG:0399 B2 A6 A1 9D A4 AB B2 B6 BB BB B7 AF A5 9F A0 A7
.byte $AE, $B3, $B7, $BB, $B9, $B5, $AA, $A2, $9D, $A1, $A8, $AF, $B4, $B9, $BB, $B8 ; CPU:$83A9 PRG:03A9 AE B3 B7 BB B9 B5 AA A2 9D A1 A8 AF B4 B9 BB B8
.byte $B2, $A7, $A1, $9D, $A3, $AA, $B1, $B5, $B9, $BA, $B7, $B1, $A6, $A0, $9E, $A5 ; CPU:$83B9 PRG:03B9 B2 A7 A1 9D A3 AA B1 B5 B9 BA B7 B1 A6 A0 9E A5
.byte $AB, $B2, $B6, $BA, $BA, $B8, $B0, $A5, $9F, $9F, $A5, $AC, $B2, $B7, $BB, $BA ; CPU:$83C9 PRG:03C9 AB B2 B6 BA BA B8 B0 A5 9F 9F A5 AC B2 B7 BB BA
.byte $B7, $AF, $A4, $9F, $9F, $A5, $AD, $B2, $B7, $BA, $BA, $B6, $AE, $A3, $9F, $A1 ; CPU:$83D9 PRG:03D9 B7 AF A4 9F 9F A5 AD B2 B7 BA BA B6 AE A3 9F A1
.byte $A6, $AD, $B2, $B7, $BA, $BA, $B6, $AE, $A3, $9F, $A0, $A5, $AD, $B2, $B7, $BA ; CPU:$83E9 PRG:03E9 A6 AD B2 B7 BA BA B6 AE A3 9F A0 A5 AD B2 B7 BA
.byte $BB, $B6, $AE, $A4, $9F, $A0, $A6, $AD, $B2, $B7, $BA, $B9, $B6, $AF, $A4, $A0 ; CPU:$83F9 PRG:03F9 BB B6 AE A4 9F A0 A6 AD B2 B7 BA B9 B6 AF A4 A0
.byte $9F, $A5, $AB, $B1, $B6, $B9, $B9, $B6, $B0, $A6, $A1, $9F, $A4, $AB, $B0, $B5 ; CPU:$8409 PRG:0409 9F A5 AB B1 B6 B9 B9 B6 B0 A6 A1 9F A4 AB B0 B5
.byte $B9, $B8, $B7, $B2, $A9, $A1, $A0, $A3, $A8, $AF, $B4, $B7, $AB, $AB, $AB, $AB ; CPU:$8419 PRG:0419 B9 B8 B7 B2 A9 A1 A0 A3 A8 AF B4 B7 AB AB AB AB
.byte $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB ; CPU:$8429 PRG:0429 AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB
.byte $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB ; CPU:$8439 PRG:0439 AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB AB
.byte $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AF, $AE, $AD, $AB ; CPU:$8449 PRG:0449 AB AB AB AB AB AB AB AB AB AB AB AB AF AE AD AB
.byte $AB, $AA, $A9, $AB, $AB, $AF, $AB, $AC, $A9, $A9, $A7, $A7, $AE, $AB, $AF, $AE ; CPU:$8459 PRG:0459 AB AA A9 AB AB AF AB AC A9 A9 A7 A7 AE AB AF AE
.byte $B0, $AD, $AB, $A5, $A7, $A6, $AD, $AE, $AD, $A9, $AA, $A8, $AC, $AF, $AB, $B0 ; CPU:$8469 PRG:0469 B0 AD AB A5 A7 A6 AD AE AD A9 AA A8 AC AF AB B0
.byte $A6, $AC, $A6, $A8, $A9, $A8, $AD, $A9, $A8, $AC, $AC, $AC, $AE, $AA, $AA, $AC ; CPU:$8479 PRG:0479 A6 AC A6 A8 A9 A8 AD A9 A8 AC AC AC AE AA AA AC
.byte $A8, $AB, $A4, $A9, $AA, $A8, $AA, $A9, $AC, $AD, $B3, $AD, $A7, $AA, $AA, $AB ; CPU:$8489 PRG:0489 A8 AB A4 A9 AA A8 AA A9 AC AD B3 AD A7 AA AA AB
.byte $AB, $AC, $A9, $A7, $A5, $AC, $AC, $B0, $AD, $B0, $AF, $AD, $A9, $B1, $AA, $AA ; CPU:$8499 PRG:0499 AB AC A9 A7 A5 AC AC B0 AD B0 AF AD A9 B1 AA AA
.byte $B0, $AA, $AD, $A5, $9D, $99, $9F, $A3, $B1, $BA, $BE, $C6, $BF, $B4, $A8, $94 ; CPU:$84A9 PRG:04A9 B0 AA AD A5 9D 99 9F A3 B1 BA BE C6 BF B4 A8 94
.byte $90, $7C, $9A, $9B, $B3, $C8, $CF, $DD, $D5, $C1, $AB, $97, $82, $74, $6A, $91 ; CPU:$84B9 PRG:04B9 90 7C 9A 9B B3 C8 CF DD D5 C1 AB 97 82 74 6A 91
.byte $A1, $BF, $E6, $E6, $F0, $DB, $BE, $95, $79, $62, $50, $71, $94, $B8, $E8, $FF ; CPU:$84C9 PRG:04C9 A1 BF E6 E6 F0 DB BE 95 79 62 50 71 94 B8 E8 FF
.byte $FF, $F7, $CC, $8D, $6A, $4F, $32, $5E, $92, $B9, $F0, $FF, $FF, $FF, $D5, $97 ; CPU:$84D9 PRG:04D9 FF F7 CC 8D 6A 4F 32 5E 92 B9 F0 FF FF FF D5 97
.byte $68, $52, $2A, $3D, $8D, $B5, $EA, $FF, $FF, $FF, $E3, $87, $78, $53, $3B, $21 ; CPU:$84E9 PRG:04E9 68 52 2A 3D 8D B5 EA FF FF FF E3 87 78 53 3B 21
.byte $93, $AC, $EB, $FF, $FF, $F5, $E1, $8D, $75, $58, $36, $14, $98, $B6, $F4, $FF ; CPU:$84F9 PRG:04F9 93 AC EB FF FF F5 E1 8D 75 58 36 14 98 B6 F4 FF
.byte $FF, $EB, $D5, $7D, $65, $50, $24, $49, $A4, $CB, $FF, $FF, $FF, $DC, $C8, $75 ; CPU:$8509 PRG:0509 FF EB D5 7D 65 50 24 49 A4 CB FF FF FF DC C8 75
.byte $51, $3B, $06, $80, $D0, $F9, $FF, $FF, $DA, $B6, $80, $50, $44, $26, $71, $B3 ; CPU:$8519 PRG:0519 51 3B 06 80 D0 F9 FF FF DA B6 80 50 44 26 71 B3
.byte $F4, $FF, $FF, $ED, $BB, $91, $66, $3D, $22, $6C, $A2, $EC, $FF, $FF, $F0, $C6 ; CPU:$8529 PRG:0529 F4 FF FF ED BB 91 66 3D 22 6C A2 EC FF FF F0 C6
.byte $8E, $5D, $40, $1C, $75, $AB, $EC, $FF, $FF, $ED, $C1, $8D, $4B, $39, $16, $7D ; CPU:$8539 PRG:0539 8E 5D 40 1C 75 AB EC FF FF ED C1 8D 4B 39 16 7D
.byte $BB, $F5, $FF, $FF, $EB, $B9, $85, $45, $22, $2E, $8A, $C2, $FE, $FF, $FF, $E8 ; CPU:$8549 PRG:0549 BB F5 FF FF EB B9 85 45 22 2E 8A C2 FE FF FF E8
.byte $BA, $7D, $3E, $19, $45, $8F, $D0, $FF, $FF, $FF, $DD, $B0, $6D, $3A, $11, $59 ; CPU:$8559 PRG:0559 BA 7D 3E 19 45 8F D0 FF FF FF DD B0 6D 3A 11 59
.byte $9B, $DC, $FF, $FF, $FF, $CF, $A2, $5A, $22, $28, $72, $AD, $E8, $FF, $FF, $FA ; CPU:$8569 PRG:0569 9B DC FF FF FF CF A2 5A 22 28 72 AD E8 FF FF FA
.byte $CE, $8F, $4C, $1A, $46, $7E, $C0, $F9, $FF, $FF, $E7, $B8, $67, $2F, $24, $5D ; CPU:$8579 PRG:0579 CE 8F 4C 1A 46 7E C0 F9 FF FF E7 B8 67 2F 24 5D
.byte $9C, $D7, $FF, $FF, $FF, $DF, $97, $55, $1A, $36, $71, $BA, $F1, $FF, $FF, $FD ; CPU:$8589 PRG:0589 9C D7 FF FF FF DF 97 55 1A 36 71 BA F1 FF FF FD
.byte $C1, $6F, $2B, $1C, $46, $94, $D0, $FF, $FF, $FF, $E5, $99, $51, $19, $2C, $67 ; CPU:$8599 PRG:0599 C1 6F 2B 1C 46 94 D0 FF FF FF E5 99 51 19 2C 67
.byte $B0, $F0, $FF, $FF, $FF, $C1, $77, $2F, $1F, $41, $8E, $D0, $FF, $FF, $FF, $E2 ; CPU:$85A9 PRG:05A9 B0 F0 FF FF FF C1 77 2F 1F 41 8E D0 FF FF FF E2
.byte $8F, $4D, $2B, $37, $76, $B9, $F4, $FF, $FF, $F0, $9B, $5F, $39, $3C, $69, $AE ; CPU:$85B9 PRG:05B9 8F 4D 2B 37 76 B9 F4 FF FF F0 9B 5F 39 3C 69 AE
.byte $E5, $FF, $FF, $F3, $A2, $65, $49, $43, $69, $AA, $DF, $FC, $FF, $F6, $A2, $65 ; CPU:$85C9 PRG:05C9 E5 FF FF F3 A2 65 49 43 69 AA DF FC FF F6 A2 65
.byte $4C, $4A, $69, $A8, $DF, $FB, $FF, $F2, $A2, $66, $4B, $4E, $71, $AA, $DF, $FC ; CPU:$85D9 PRG:05D9 4C 4A 69 A8 DF FB FF F2 A2 66 4B 4E 71 AA DF FC
.byte $FF, $E9, $99, $60, $4F, $53, $7C, $B4, $E1, $FF, $FF, $D6, $8D, $5A, $58, $61 ; CPU:$85E9 PRG:05E9 FF E9 99 60 4F 53 7C B4 E1 FF FF D6 8D 5A 58 61
.byte $8D, $C4, $E8, $FF, $F9, $BB, $73, $52, $61, $75, $A9, $DD, $F0, $FF, $E2, $95 ; CPU:$85F9 PRG:05F9 8D C4 E8 FF F9 BB 73 52 61 75 A9 DD F0 FF E2 95
.byte $58, $4A, $65, $8C, $C6, $F3, $FF, $FF, $C6, $76, $41, $4B, $6E, $A6, $E1, $FF ; CPU:$8609 PRG:0609 58 4A 65 8C C6 F3 FF FF C6 76 41 4B 6E A6 E1 FF
.byte $FF, $ED, $9D, $56, $3D, $54, $84, $C7, $FB, $FF, $FF, $C6, $70, $38, $45, $66 ; CPU:$8619 PRG:0619 FF ED 9D 56 3D 54 84 C7 FB FF FF C6 70 38 45 66
.byte $A7, $EB, $FF, $FF, $E8, $93, $45, $2D, $4D, $8A, $CF, $FF, $FF, $FF, $B9, $65 ; CPU:$8629 PRG:0629 A7 EB FF FF E8 93 45 2D 4D 8A CF FF FF FF B9 65
.byte $31, $3F, $6C, $B6, $F4, $FF, $FF, $D8, $7F, $3B, $37, $5C, $A2, $E8, $FF, $FF ; CPU:$8639 PRG:0639 31 3F 6C B6 F4 FF FF D8 7F 3B 37 5C A2 E8 FF FF
.byte $ED, $95, $44, $2F, $4D, $88, $D3, $FF, $FF, $FE, $AD, $57, $33, $47, $7C, $C2 ; CPU:$8649 PRG:0649 ED 95 44 2F 4D 88 D3 FF FF FE AD 57 33 47 7C C2
.byte $F9, $FF, $FF, $BF, $69, $3D, $49, $77, $B8, $F0, $FF, $FF, $C4, $76, $43, $4D ; CPU:$8659 PRG:0659 F9 FF FF BF 69 3D 49 77 B8 F0 FF FF C4 76 43 4D
.byte $78, $B4, $EC, $FF, $FF, $C5, $78, $45, $4D, $76, $B3, $EB, $FF, $FF, $C8, $7C ; CPU:$8669 PRG:0669 78 B4 EC FF FF C5 78 45 4D 76 B3 EB FF FF C8 7C
.byte $41, $4C, $74, $AF, $E9, $FF, $FF, $CD, $85, $43, $4B, $6E, $A9, $E3, $FF, $FF ; CPU:$8679 PRG:0679 41 4C 74 AF E9 FF FF CD 85 43 4B 6E A9 E3 FF FF
.byte $D1, $8A, $49, $50, $71, $A6, $DE, $FE, $FF, $D4, $90, $50, $56, $77, $A9, $D8 ; CPU:$8689 PRG:0689 D1 8A 49 50 71 A6 DE FE FF D4 90 50 56 77 A9 D8
.byte $F9, $F9, $CB, $8E, $56, $5E, $7F, $AE, $DA, $F4, $F1, $C3, $85, $57, $64, $89 ; CPU:$8699 PRG:0699 F9 F9 CB 8E 56 5E 7F AE DA F4 F1 C3 85 57 64 89
.byte $B6, $E1, $F3, $E7, $B8, $7E, $58, $66, $90, $C0, $E6, $F2, $E3, $B1, $75, $58 ; CPU:$86A9 PRG:06A9 B6 E1 F3 E7 B8 7E 58 66 90 C0 E6 F2 E3 B1 75 58
.byte $6A, $95, $C4, $E8, $F2, $DC, $A6, $6C, $57, $6D, $9D, $CB, $EA, $F0, $D3, $9B ; CPU:$86B9 PRG:06B9 6A 95 C4 E8 F2 DC A6 6C 57 6D 9D CB EA F0 D3 9B
.byte $65, $54, $74, $A6, $D1, $ED, $F0, $CA, $8F, $5C, $57, $7D, $AE, $D6, $F0, $EB ; CPU:$86C9 PRG:06C9 65 54 74 A6 D1 ED F0 CA 8F 5C 57 7D AE D6 F0 EB
.byte $C0, $8A, $57, $60, $86, $B5, $DB, $F0, $E7, $B7, $84, $59, $6A, $91, $BB, $E1 ; CPU:$86D9 PRG:06D9 C0 8A 57 60 86 B5 DB F0 E7 B7 84 59 6A 91 BB E1
.byte $F0, $DF, $B0, $7E, $5D, $6F, $99, $C2, $E2, $EB, $D8, $A8, $74, $5D, $75, $A0 ; CPU:$86E9 PRG:06E9 F0 DF B0 7E 5D 6F 99 C2 E2 EB D8 A8 74 5D 75 A0
.byte $C6, $E1, $E8, $CE, $9C, $6E, $5D, $7A, $A7, $CB, $E3, $E6, $C6, $93, $67, $5D ; CPU:$86F9 PRG:06F9 C6 E1 E8 CE 9C 6E 5D 7A A7 CB E3 E6 C6 93 67 5D
.byte $80, $B0, $D0, $E5, $E3, $BF, $8C, $61, $5F, $85, $B4, $D4, $E8, $E2, $BB, $8B ; CPU:$8709 PRG:0709 80 B0 D0 E5 E3 BF 8C 61 5F 85 B4 D4 E8 E2 BB 8B
.byte $5F, $63, $8B, $B7, $D6, $E8, $DF, $B9, $8C, $5F, $6C, $93, $BB, $D8, $E6, $DA ; CPU:$8719 PRG:0719 5F 63 8B B7 D6 E8 DF B9 8C 5F 6C 93 BB D8 E6 DA
.byte $B4, $89, $61, $73, $9A, $BE, $DA, $E5, $D6, $AF, $83, $61, $74, $9E, $C1, $DC ; CPU:$8729 PRG:0729 B4 89 61 73 9A BE DA E5 D6 AF 83 61 74 9E C1 DC
.byte $E4, $D4, $AB, $82, $63, $76, $9E, $C2, $DC, $E2, $D2, $AB, $7F, $63, $77, $9F ; CPU:$8739 PRG:0739 E4 D4 AB 82 63 76 9E C2 DC E2 D2 AB 7F 63 77 9F
.byte $C1, $DB, $E2, $CF, $A8, $7F, $64, $77, $9F, $C0, $DA, $E0, $CF, $A9, $80, $66 ; CPU:$8749 PRG:0749 C1 DB E2 CF A8 7F 64 77 9F C0 DA E0 CF A9 80 66
.byte $78, $9E, $BF, $D9, $DF, $CF, $AB, $84, $67, $79, $9E, $BE, $D8, $E0, $D1, $AE ; CPU:$8759 PRG:0759 78 9E BF D9 DF CF AB 84 67 79 9E BE D8 E0 D1 AE
.byte $87, $68, $78, $9A, $BB, $D5, $E0, $D0, $B2, $8D, $6B, $72, $95, $B6, $CF, $DF ; CPU:$8769 PRG:0769 87 68 78 9A BB D5 E0 D0 B2 8D 6B 72 95 B6 CF DF
.byte $D4, $B8, $94, $72, $6B, $8C, $AF, $C7, $DA, $D6, $BD, $9B, $7B, $6A ; CPU:$8779 PRG:0779 D4 B8 94 72 6B 8C AF C7 DA D6 BD 9B 7B 6A
; -----------------------------------------------------------------------------
; Routine: Label_8787
; Global: Branch target inside Label: taken when 8787.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_8787:
.byte $83, $A8 ; CPU:$8787 PRG:0787 83 A8 -- sax (ZpA8,x) (undocumented; ca65 cannot encode)
.byte $C2, $D5 ; CPU:$8789 PRG:0789 C2 D5 -- nop #$D5 (undocumented; ca65 cannot encode)
dec ZpC4,x ; CPU:$878B PRG:078B D6 C4
ldx #$86 ; CPU:$878D PRG:078D A2 86
jmp ($A07D) ; CPU:$878F PRG:078F 6C 7D A0
; ---- data $8792-$9BEF (5214 bytes) ----
UnreachedRomData:
.byte $BC, $D2, $D9, $CC, $AF, $90, $6D, $74, $95, $B4, $CC, $D9, $D3, $BD, $9E, $7B ; CPU:$8792 PRG:-386E BC D2 D9 CC AF 90 6D 74 95 B4 CC D9 D3 BD 9E 7B
.byte $69, $83, $A7, $C0, $D2, $D6, $C6, $AB, $8D, $6D, $78, $9A, $B6, $CD, $D7, $D1 ; CPU:$87A2 PRG:07A2 69 83 A7 C0 D2 D6 C6 AB 8D 6D 78 9A B6 CD D7 D1
.byte $BC, $9D, $79, $69, $84, $A7, $BE, $D1, $D9, $C8, $AD, $91, $6E, $76, $97, $B3 ; CPU:$87B2 PRG:07B2 BC 9D 79 69 84 A7 BE D1 D9 C8 AD 91 6E 76 97 B3
.byte $C9, $D9, $D4, $C0, $A5, $83, $6A, $7B, $A0, $B9, $CD, $DA, $CF, $B5, $99, $77 ; CPU:$87C2 PRG:07C2 C9 D9 D4 C0 A5 83 6A 7B A0 B9 CD DA CF B5 99 77
.byte $67, $85, $A9, $C2, $D4, $DA, $C6, $AD, $91, $6C, $70, $92, $B4, $CA, $D7, $D5 ; CPU:$87D2 PRG:07D2 67 85 A9 C2 D4 DA C6 AD 91 6C 70 92 B4 CA D7 D5
.byte $BF, $A6, $8B, $6C, $77, $9D, $BA, $CC, $D6, $CF, $BA, $A1, $89, $71, $7F, $A2 ; CPU:$87E2 PRG:07E2 BF A6 8B 6C 77 9D BA CC D6 CF BA A1 89 71 7F A2
.byte $BC, $CA, $D2, $C9, $B6, $9F, $8B, $77, $85, $A2, $BB, $C6, $CD, $C5, $C7, $C9 ; CPU:$87F2 PRG:07F2 BC CA D2 C9 B6 9F 8B 77 85 A2 BB C6 CD C5 C7 C9
.byte $CB, $CD, $CF, $A6, $A6, $D2, $FF, $DE, $E2, $CD, $94, $93, $77, $7F, $86, $60 ; CPU:$8802 PRG:0802 CB CD CF A6 A6 D2 FF DE E2 CD 94 93 77 7F 86 60
.byte $7F, $99, $AE, $E2, $FF, $E2, $D6, $CF, $86, $8A, $7A, $75, $7C, $51, $A8, $A8 ; CPU:$8812 PRG:0812 7F 99 AE E2 FF E2 D6 CF 86 8A 7A 75 7C 51 A8 A8
.byte $C4, $F1, $E7, $D2, $D6, $AB, $91, $84, $75, $6C, $4E, $9C, $AA, $BA, $F2, $EC ; CPU:$8822 PRG:0822 C4 F1 E7 D2 D6 AB 91 84 75 6C 4E 9C AA BA F2 EC
.byte $D1, $DD, $B6, $95, $85, $6F, $64, $4D, $9D, $A7, $B8, $EA, $F2, $D1, $DF, $BA ; CPU:$8832 PRG:0832 D1 DD B6 95 85 6F 64 4D 9D A7 B8 EA F2 D1 DF BA
.byte $8A, $86, $6E, $63, $43, $AD, $9D, $C4, $F1, $EB, $CE, $DB, $B7, $8B, $8B, $6A ; CPU:$8842 PRG:0842 8A 86 6E 63 43 AD 9D C4 F1 EB CE DB B7 8B 8B 6A
.byte $58, $4E, $AC, $91, $E1, $F8, $E5, $C7, $DE, $9C, $95, $82, $68, $48, $84, $A1 ; CPU:$8852 PRG:0852 58 4E AC 91 E1 F8 E5 C7 DE 9C 95 82 68 48 84 A1
.byte $9C, $EA, $E9, $D6, $D6, $D1, $91, $98, $70, $65, $46, $AF, $86, $C9, $E1, $E3 ; CPU:$8862 PRG:0862 9C EA E9 D6 D6 D1 91 98 70 65 46 AF 86 C9 E1 E3
.byte $C4, $E3, $B3, $A2, $88, $74, $5B, $7D, $A6, $88, $D9, $C8, $D2, $CC, $D9, $A6 ; CPU:$8872 PRG:0872 C4 E3 B3 A2 88 74 5B 7D A6 88 D9 C8 D2 CC D9 A6
.byte $A2, $7C, $77, $5E, $B0, $81, $BC, $CF, $C3, $C8, $D3, $B9, $A3, $8E, $83, $67 ; CPU:$8882 PRG:0882 A2 7C 77 5E B0 81 BC CF C3 C8 D3 B9 A3 8E 83 67
.byte $9B, $A0, $97, $D4, $B8, $C5, $C8, $CC, $A0, $99, $85, $6D, $8E, $A3, $91, $CC ; CPU:$8892 PRG:0892 9B A0 97 D4 B8 C5 C8 CC A0 99 85 6D 8E A3 91 CC
.byte $BF, $C3, $CB, $CE, $A7, $94, $86, $65, $8B, $A3, $91, $CF, $BE, $C4, $D1, $CE ; CPU:$88A2 PRG:08A2 BF C3 CB CE A7 94 86 65 8B A3 91 CF BE C4 D1 CE
.byte $A6, $9D, $77, $5F, $94, $94, $9C, $D8, $B8, $D0, $D2, $C7, $A2, $99, $68, $71 ; CPU:$88B2 PRG:08B2 A6 9D 77 5F 94 94 9C D8 B8 D0 D2 C7 A2 99 68 71
.byte $9C, $81, $BF, $C6, $BE, $D3, $CC, $B6, $A3, $7F, $5E, $99, $82, $AA, $D5, $B6 ; CPU:$88C2 PRG:08C2 9C 81 BF C6 BE D3 CC B6 A3 7F 5E 99 82 AA D5 B6
.byte $D6, $D1, $BA, $AC, $89, $55, $90, $87, $95, $E1, $BC, $D5, $D7, $B5, $A0, $87 ; CPU:$88D2 PRG:08D2 D6 D1 BA AC 89 55 90 87 95 E1 BC D5 D7 B5 A0 87
.byte $41, $94, $7F, $A6, $EC, $C8, $DC, $E1, $9B, $9F, $67, $3B, $AB, $74, $D5, $F1 ; CPU:$88E2 PRG:08E2 41 94 7F A6 EC C8 DC E1 9B 9F 67 3B AB 74 D5 F1
.byte $D2, $E1, $CC, $79, $8A, $21, $83, $91, $AE, $FF, $E7, $DF, $F0, $79, $8A, $35 ; CPU:$88F2 PRG:08F2 D2 E1 CC 79 8A 21 83 91 AE FF E7 DF F0 79 8A 35
.byte $3F, $A3, $92, $FF, $FF, $DF, $F5, $98, $7B, $50, $1F, $A5, $81, $FF, $FF, $E7 ; CPU:$8902 PRG:0902 3F A3 92 FF FF DF F5 98 7B 50 1F A5 81 FF FF E7
.byte $EB, $9E, $76, $57, $18, $A8, $7E, $FF, $FA, $E9, $E2, $97, $6B, $47, $39, $A7 ; CPU:$8912 PRG:0912 EB 9E 76 57 18 A8 7E FF FA E9 E2 97 6B 47 39 A7
.byte $9E, $FF, $F8, $F1, $DB, $80, $72, $13, $76, $90, $D8, $FF, $F9, $E1, $BA, $61 ; CPU:$8922 PRG:0922 9E FF F8 F1 DB 80 72 13 76 90 D8 FF F9 E1 BA 61
.byte $62, $09, $A8, $73, $FF, $EF, $FC, $C9, $8A, $5F, $22, $6D, $AF, $CD, $FF, $DD ; CPU:$8932 PRG:0932 62 09 A8 73 FF EF FC C9 8A 5F 22 6D AF CD FF DD
.byte $EB, $8F, $62, $45, $28, $B1, $A1, $FF, $F6, $F8, $B0, $65, $4C, $03, $9E, $9C ; CPU:$8942 PRG:0942 EB 8F 62 45 28 B1 A1 FF F6 F8 B0 65 4C 03 9E 9C
.byte $FF, $FF, $F2, $D4, $53, $46, $00, $93, $A3, $FF, $FF, $FF, $F4, $67, $56, $00 ; CPU:$8952 PRG:0952 FF FF F2 D4 53 46 00 93 A3 FF FF FF F4 67 56 00
.byte $96, $9F, $FF, $FF, $FF, $F1, $76, $59, $00, $9E, $9C, $FF, $FF, $FF, $E9, $6A ; CPU:$8962 PRG:0962 96 9F FF FF FF F1 76 59 00 9E 9C FF FF FF E9 6A
.byte $4A, $17, $90, $B9, $FF, $FF, $FF, $D8, $5F, $2F, $3C, $7E, $F0, $FF, $FF, $FF ; CPU:$8972 PRG:0972 4A 17 90 B9 FF FF FF D8 5F 2F 3C 7E F0 FF FF FF
.byte $A7, $58, $04, $7E, $96, $FF, $FF, $FF, $CE, $67, $2D, $46, $7D, $FF, $FF, $FF ; CPU:$8982 PRG:0982 A7 58 04 7E 96 FF FF FF CE 67 2D 46 7D FF FF FF
.byte $F7, $90, $35, $05, $69, $AF, $FF, $FF, $FF, $B3, $53, $00, $6B, $87, $FF, $FF ; CPU:$8992 PRG:0992 F7 90 35 05 69 AF FF FF FF B3 53 00 6B 87 FF FF
.byte $FF, $BE, $69, $00, $5A, $71, $FF, $FF, $FF, $CB, $7F, $00, $5D, $69, $FF, $FF ; CPU:$89A2 PRG:09A2 FF BE 69 00 5A 71 FF FF FF CB 7F 00 5D 69 FF FF
.byte $FF, $D0, $92, $00, $6A, $66, $FF, $FF, $FF, $C7, $9C, $00, $74, $73, $FF, $FF ; CPU:$89B2 PRG:09B2 FF D0 92 00 6A 66 FF FF FF C7 9C 00 74 73 FF FF
.byte $FF, $B6, $8E, $00, $63, $9D, $FF, $FF, $FF, $91, $4E, $26, $5B, $FF, $FF, $FF ; CPU:$89C2 PRG:09C2 FF B6 8E 00 63 9D FF FF FF 91 4E 26 5B FF FF FF
.byte $EF, $77, $00, $60, $79, $FF, $FF, $FF, $AC, $4F, $0C, $53, $DE, $FF, $FF, $FA ; CPU:$89D2 PRG:09D2 EF 77 00 60 79 FF FF FF AC 4F 0C 53 DE FF FF FA
.byte $76, $00, $47, $7C, $FF, $FF, $FF, $9B, $34, $10, $43, $FC, $FF, $FF, $DA, $5A ; CPU:$89E2 PRG:09E2 76 00 47 7C FF FF FF 9B 34 10 43 FC FF FF DA 5A
.byte $00, $3E, $A0, $FF, $FF, $FF, $7F, $00, $2B, $62, $FF, $FF, $FF, $A8, $2A, $0C ; CPU:$89F2 PRG:09F2 00 3E A0 FF FF FF 7F 00 2B 62 FF FF FF A8 2A 0C
.byte $2D, $FF, $FF, $FF, $D1, $59, $05, $23, $BA, $FF, $FF, $FF, $7F, $08, $30, $8A ; CPU:$8A02 PRG:0A02 2D FF FF FF D1 59 05 23 BA FF FF FF 7F 08 30 8A
.byte $FF, $FF, $FF, $8F, $13, $41, $72, $FF, $FF, $FF, $91, $1F, $50, $70, $FF, $FF ; CPU:$8A12 PRG:0A12 FF FF FF 8F 13 41 72 FF FF FF 91 1F 50 70 FF FF
.byte $FF, $8E, $23, $5B, $74, $FF, $FF, $FF, $87, $2A, $58, $7E, $FF, $FF, $FF, $83 ; CPU:$8A22 PRG:0A22 FF 8E 23 5B 74 FF FF FF 87 2A 58 7E FF FF FF 83
.byte $36, $5C, $8F, $FF, $FF, $FF, $78, $4D, $59, $AA, $FF, $FF, $EB, $69, $5E, $5A ; CPU:$8A32 PRG:0A32 36 5C 8F FF FF FF 78 4D 59 AA FF FF EB 69 5E 5A
.byte $CD, $FF, $FF, $CB, $4A, $5E, $5C, $F6, $FE, $FF, $AB, $2F, $6F, $72, $FF, $FF ; CPU:$8A42 PRG:0A42 CD FF FF CB 4A 5E 5C F6 FE FF AB 2F 6F 72 FF FF
.byte $FF, $8F, $1B, $8A, $8F, $FF, $F8, $E6, $73, $40, $81, $B6, $FF, $F2, $C3, $55 ; CPU:$8A52 PRG:0A52 FF 8F 1B 8A 8F FF F8 E6 73 40 81 B6 FF F2 C3 55
.byte $5F, $71, $F0, $FE, $FF, $A1, $32, $86, $83, $FF, $EE, $E0, $85, $35, $A3, $AE ; CPU:$8A62 PRG:0A62 5F 71 F0 FE FF A1 32 86 83 FF EE E0 85 35 A3 AE
.byte $FE, $D9, $B7, $62, $7A, $90, $F1, $EF, $DE, $88, $33, $9D, $A7, $FF, $E8, $C6 ; CPU:$8A72 PRG:0A72 FE D9 B7 62 7A 90 F1 EF DE 88 33 9D A7 FF E8 C6
.byte $67, $33, $AB, $CC, $FF, $E2, $A0, $4C, $76, $91, $FF, $EC, $E0, $81, $2D, $AA ; CPU:$8A82 PRG:0A82 67 33 AB CC FF E2 A0 4C 76 91 FF EC E0 81 2D AA
.byte $B3, $FF, $DB, $B7, $65, $58, $AE, $E1, $F6, $D1, $90, $3B, $89, $A0, $FF, $E6 ; CPU:$8A92 PRG:0A92 B3 FF DB B7 65 58 AE E1 F6 D1 90 3B 89 A0 FF E6
.byte $C6, $74, $1B, $C3, $C4, $FF, $D9, $A3, $56, $72, $A8, $FD, $F3, $D1, $8D, $2D ; CPU:$8AA2 PRG:0AA2 C6 74 1B C3 C4 FF D9 A3 56 72 A8 FD F3 D1 8D 2D
.byte $9C, $A1, $FF, $DD, $BF, $79, $28, $C6, $C0, $FE, $CA, $AB, $59, $8C, $A2, $F9 ; CPU:$8AB2 PRG:0AB2 9C A1 FF DD BF 79 28 C6 C0 FE CA AB 59 8C A2 F9
.byte $E1, $BF, $93, $32, $BC, $A8, $FF, $CC, $AE, $75, $3D, $D0, $C4, $F9, $BA, $A5 ; CPU:$8AC2 PRG:0AC2 E1 BF 93 32 BC A8 FF CC AE 75 3D D0 C4 F9 BA A5
.byte $53, $96, $A8, $F6, $E2, $B9, $9A, $30, $C6, $A0, $FF, $C6, $AF, $7D, $3F, $DC ; CPU:$8AD2 PRG:0AD2 53 96 A8 F6 E2 B9 9A 30 C6 A0 FF C6 AF 7D 3F DC
.byte $BC, $FC, $AC, $B1, $55, $99, $B0, $E9, $E5, $AF, $A3, $33, $BF, $9B, $FF, $CB ; CPU:$8AE2 PRG:0AE2 BC FC AC B1 55 99 B0 E9 E5 AF A3 33 BF 9B FF CB
.byte $B5, $7F, $36, $D9, $B5, $FF, $B1, $BB, $58, $89, $B0, $E0, $EF, $AE, $AE, $39 ; CPU:$8AF2 PRG:0AF2 B5 7F 36 D9 B5 FF B1 BB 58 89 B0 E0 EF AE AE 39
.byte $B5, $92, $FF, $CD, $BE, $88, $36, $D1, $A9, $FF, $B1, $C3, $5F, $7E, $B4, $D1 ; CPU:$8B02 PRG:0B02 B5 92 FF CD BE 88 36 D1 A9 FF B1 C3 5F 7E B4 D1
.byte $EE, $AE, $B7, $45, $AF, $8B, $FF, $CA, $C3, $8D, $3F, $C8, $9E, $FF, $B3, $C7 ; CPU:$8B12 PRG:0B12 EE AE B7 45 AF 8B FF CA C3 8D 3F C8 9E FF B3 C7
.byte $68, $66, $BB, $C1, $F6, $AD, $C0, $51, $A1, $90, $F2, $D5, $C8, $9E, $4C, $B0 ; CPU:$8B22 PRG:0B22 68 66 BB C1 F6 AD C0 51 A1 90 F2 D5 C8 9E 4C B0
.byte $8C, $FF, $BD, $D6, $7A, $54, $B5, $AC, $FF, $B7, $CD, $68, $77, $A7, $CC, $E7 ; CPU:$8B32 PRG:0B32 8C FF BD D6 7A 54 B5 AC FF B7 CD 68 77 A7 CC E7
.byte $C1, $BA, $61, $96, $8D, $E6, $D2, $D4, $A3, $62, $9B, $86, $F7, $C8, $DE, $8C ; CPU:$8B42 PRG:0B42 C1 BA 61 96 8D E6 D2 D4 A3 62 9B 86 F7 C8 DE 8C
.byte $5E, $9F, $97, $FE, $C6, $D7, $81, $5F, $A1, $A8, $F9, $C8, $CF, $82, $60, $9F ; CPU:$8B52 PRG:0B52 5E 9F 97 FE C6 D7 81 5F A1 A8 F9 C8 CF 82 60 9F
.byte $B3, $EA, $CE, $C4, $81, $6B, $9C, $BD, $E3, $D1, $BD, $7D, $75, $91, $C7, $DD ; CPU:$8B62 PRG:0B62 B3 EA CE C4 81 6B 9C BD E3 D1 BD 7D 75 91 C7 DD
.byte $D9, $BA, $79, $77, $8B, $CD, $DC, $DD, $BA, $77, $76, $86, $CF, $DC, $E2, $B8 ; CPU:$8B72 PRG:0B72 D9 BA 79 77 8B CD DC DD BA 77 76 86 CF DC E2 B8
.byte $78, $72, $87, $CD, $DC, $E4, $BA, $7B, $6D, $8A, $C7, $E1, $E2, $BC, $7E, $65 ; CPU:$8B82 PRG:0B82 78 72 87 CD DC E4 BA 7B 6D 8A C7 E1 E2 BC 7E 65
.byte $8F, $C2, $E6, $E0, $BF, $84, $5A, $93, $B9, $EC, $DF, $C5, $88, $54, $93, $B1 ; CPU:$8B92 PRG:0B92 8F C2 E6 E0 BF 84 5A 93 B9 EC DF C5 88 54 93 B1
.byte $F0, $DD, $CB, $8C, $54, $8E, $A6, $F4, $DB, $D5, $8F, $5D, $87, $99, $F3, $D9 ; CPU:$8BA2 PRG:0BA2 F0 DD CB 8C 54 8E A6 F4 DB D5 8F 5D 87 99 F3 D9
.byte $DF, $97, $65, $7F, $8E, $E8, $DA, $E4, $A3, $6E, $76, $8D, $D6, $E0, $E2, $B3 ; CPU:$8BB2 PRG:0BB2 DF 97 65 7F 8E E8 DA E4 A3 6E 76 8D D6 E0 E2 B3
.byte $7D, $62, $97, $C1, $E4, $DD, $C1, $8A, $56, $96, $AB, $EF, $DD, $CD, $91, $5E ; CPU:$8BC2 PRG:0BC2 7D 62 97 C1 E4 DD C1 8A 56 96 AB EF DD CD 91 5E
.byte $8A, $93, $F2, $DC, $E0, $9B, $69, $78, $8D, $DE, $E1, $E5, $AD, $7E, $59, $98 ; CPU:$8BD2 PRG:0BD2 8A 93 F2 DC E0 9B 69 78 8D DE E1 E5 AD 7E 59 98
.byte $C4, $EB, $E4, $BA, $8E, $54, $93, $A4, $F7, $E0, $CF, $99, $63, $7E, $97, $E3 ; CPU:$8BE2 PRG:0BE2 C4 EB E4 BA 8E 54 93 A4 F7 E0 CF 99 63 7E 97 E3
.byte $E3, $DA, $AB, $7B, $5B, $9F, $BE, $F1, $DD, $BA, $8D, $5C, $93, $9C, $F4, $DC ; CPU:$8BF2 PRG:0BF2 E3 DA AB 7B 5B 9F BE F1 DD BA 8D 5C 93 9C F4 DC
.byte $CC, $9F, $6B, $73, $A0, $D6, $E4, $D6, $B1, $85, $61, $99, $AC, $F2, $D9, $C1 ; CPU:$8C02 PRG:0C02 CC 9F 6B 73 A0 D6 E4 D6 B1 85 61 99 AC F2 D9 C1
.byte $99, $68, $83, $9E, $E0, $DC, $D0, $AB, $83, $61, $A0, $B7, $EC, $D7, $BA, $98 ; CPU:$8C12 PRG:0C12 99 68 83 9E E0 DC D0 AB 83 61 A0 B7 EC D7 BA 98
.byte $68, $8A, $9F, $E3, $DA, $CB, $AD, $7F, $67, $A1, $BB, $E9, $D6, $BA, $96, $6C ; CPU:$8C22 PRG:0C22 68 8A 9F E3 DA CB AD 7F 67 A1 BB E9 D6 BA 96 6C
.byte $8A, $A2, $E0, $DB, $CB, $AD, $82, $67, $A1, $B7, $EA, $D6, $BD, $97, $6F, $85 ; CPU:$8C32 PRG:0C32 8A A2 E0 DB CB AD 82 67 A1 B7 EA D6 BD 97 6F 85
.byte $A2, $DA, $DE, $CB, $AF, $87, $66, $9F, $AF, $EA, $D7, $BF, $9B, $72, $7C, $A5 ; CPU:$8C42 PRG:0C42 A2 DA DE CB AF 87 66 9F AF EA D7 BF 9B 72 7C A5
.byte $D4, $E2, $CE, $B1, $87, $67, $99, $AD, $E7, $DA, $C2, $9E, $77, $70, $A6, $CA ; CPU:$8C52 PRG:0C52 D4 E2 CE B1 87 67 99 AD E7 DA C2 9E 77 70 A6 CA
.byte $E8, $D0, $B3, $8B, $69, $93, $AA, $E6, $DC, $C2, $A2, $7B, $6C, $A6, $C4, $EB ; CPU:$8C62 PRG:0C62 E8 D0 B3 8B 69 93 AA E6 DC C2 A2 7B 6C A6 C4 EB
.byte $D0, $B6, $8D, $6E, $8C, $AB, $E0, $DE, $C4, $A6, $82, $6A, $A6, $BA, $EA, $D1 ; CPU:$8C72 PRG:0C72 D0 B6 8D 6E 8C AB E0 DE C4 A6 82 6A A6 BA EA D1
.byte $B9, $94, $75, $80, $AD, $D2, $E3, $C5, $AC, $87, $6C, $9E, $B1, $E7, $D3, $BD ; CPU:$8C82 PRG:0C82 B9 94 75 80 AD D2 E3 C5 AC 87 6C 9E B1 E7 D3 BD
.byte $9B, $7E, $73, $AD, $C4, $E7, $C9, $B2, $8D, $75, $8C, $AF, $DA, $DC, $BF, $A6 ; CPU:$8C92 PRG:0C92 9B 7E 73 AD C4 E7 C9 B2 8D 75 8C AF DA DC BF A6
.byte $86, $6F, $A6, $B4, $E7, $CE, $B8, $9A, $84, $75, $B2, $C1, $E4, $C5, $B2, $90 ; CPU:$8CA2 PRG:0CA2 86 6F A6 B4 E7 CE B8 9A 84 75 B2 C1 E4 C5 B2 90
.byte $80, $87, $B4, $CF, $DB, $BE, $AC, $8B, $7F, $98, $B2, $D7, $D2, $B8, $A7, $8D ; CPU:$8CB2 PRG:0CB2 80 87 B4 CF DB BE AC 8B 7F 98 B2 D7 D2 B8 A7 8D
.byte $7F, $A5, $B2, $D8, $CD, $B4, $A3, $8D, $7E, $A9, $B4, $D8, $C9, $B3, $9E, $91 ; CPU:$8CC2 PRG:0CC2 7F A5 B2 D8 CD B4 A3 8D 7E A9 B4 D8 C9 B3 9E 91
.byte $7D, $B0, $B2, $D9, $D9, $DA, $DB, $DC, $B0, $AE, $B0, $AF, $AE, $B0, $B1, $B2 ; CPU:$8CD2 PRG:0CD2 7D B0 B2 D9 D9 DA DB DC B0 AE B0 AF AE B0 B1 B2
.byte $B5, $B8, $B2, $AC, $A5, $A2, $A1, $AC, $B4, $BB, $BE, $BE, $BD, $AA, $AA, $9B ; CPU:$8CE2 PRG:0CE2 B5 B8 B2 AC A5 A2 A1 AC B4 BB BE BE BD AA AA 9B
.byte $9B, $9E, $A8, $B8, $BC, $CB, $C3, $BE, $AB, $9B, $99, $91, $A5, $AC, $BF, $C7 ; CPU:$8CF2 PRG:0CF2 9B 9E A8 B8 BC CB C3 BE AB 9B 99 91 A5 AC BF C7
.byte $CA, $CC, $B2, $AA, $94, $93, $92, $A3, $BA, $C2, $D4, $CA, $C7, $AF, $9D, $93 ; CPU:$8D02 PRG:0D02 CA CC B2 AA 94 93 92 A3 BA C2 D4 CA C7 AF 9D 93
.byte $85, $99, $AD, $C5, $D2, $D0, $CE, $B4, $A1, $92, $8A, $92, $A4, $BE, $C6, $D2 ; CPU:$8D12 PRG:0D12 85 99 AD C5 D2 D0 CE B4 A1 92 8A 92 A4 BE C6 D2
.byte $CF, $BF, $AE, $97, $91, $8C, $98, $B1, $C2, $D1, $CC, $C6, $B2, $9A, $98, $91 ; CPU:$8D22 PRG:0D22 CF BF AE 97 91 8C 98 B1 C2 D1 CC C6 B2 9A 98 91
.byte $99, $A5, $BD, $C5, $C5, $C3, $B3, $A7, $A1, $A1, $9C, $9E, $B3, $BC, $BF, $BE ; CPU:$8D32 PRG:0D32 99 A5 BD C5 C5 C3 B3 A7 A1 A1 9C 9E B3 BC BF BE
.byte $B5, $A9, $AA, $B1, $A3, $9F, $A5, $B4, $BB, $BA, $B5, $AE, $B1, $B5, $B0, $A3 ; CPU:$8D42 PRG:0D42 B5 A9 AA B1 A3 9F A5 B4 BB BA B5 AE B1 B5 B0 A3
.byte $9F, $A9, $B5, $B9, $B5, $B1, $B1, $B5, $B5, $AB, $9F, $A0, $AC, $B7, $B8, $B4 ; CPU:$8D52 PRG:0D52 9F A9 B5 B9 B5 B1 B1 B5 B5 AB 9F A0 AC B7 B8 B4
.byte $B2, $B3, $B5, $B2, $A7, $9E, $A3, $B1, $B9, $B8, $B4, $B1, $B3, $B4, $B0, $A4 ; CPU:$8D62 PRG:0D62 B2 B3 B5 B2 A7 9E A3 B1 B9 B8 B4 B1 B3 B4 B0 A4
.byte $9F, $A7, $B4, $B9, $B7, $B3, $B0, $B1, $B3, $B0, $A6, $A1, $A9, $B4, $B9, $B7 ; CPU:$8D72 PRG:0D72 9F A7 B4 B9 B7 B3 B0 B1 B3 B0 A6 A1 A9 B4 B9 B7
.byte $B1, $AE, $B0, $B3, $B1, $A8, $A3, $A9, $B3, $B8, $B6, $B1, $AE, $B0, $B4, $B5 ; CPU:$8D82 PRG:0D82 B1 AE B0 B3 B1 A8 A3 A9 B3 B8 B6 B1 AE B0 B4 B5
.byte $AB, $A5, $A7, $B0, $B6, $B6, $B1, $AF, $B1, $B5, $B6, $AE, $A7, $A6, $AE, $B4 ; CPU:$8D92 PRG:0D92 AB A5 A7 B0 B6 B6 B1 AF B1 B5 B6 AE A7 A6 AE B4
.byte $B6, $B1, $AF, $B1, $B4, $B6, $B1, $A9, $A6, $AB, $B2, $B5, $B3, $B1, $B2, $B4 ; CPU:$8DA2 PRG:0DA2 B6 B1 AF B1 B4 B6 B1 A9 A6 AB B2 B5 B3 B1 B2 B4
.byte $B5, $B3, $AB, $A5, $A5, $AD, $B2, $B2, $B0, $B2, $B3, $B5, $B8, $B4, $AE, $AC ; CPU:$8DB2 PRG:0DB2 B5 B3 AB A5 A5 AD B2 B2 B0 B2 B3 B5 B8 B4 AE AC
.byte $B1, $B7, $B9, $B7, $B5, $B4, $B4, $B5, $B4, $AE, $A8, $A8, $AE, $B4, $B5, $B2 ; CPU:$8DC2 PRG:0DC2 B1 B7 B9 B7 B5 B4 B4 B5 B4 AE A8 A8 AE B4 B5 B2
.byte $B1, $B1, $B1, $B3, $B1, $AA, $A6, $AA, $B2, $B6, $B4, $B1, $B0, $B1, $B1, $B1 ; CPU:$8DD2 PRG:0DD2 B1 B1 B1 B3 B1 AA A6 AA B2 B6 B4 B1 B0 B1 B1 B1
.byte $AC, $A8, $A7, $AF, $B5, $B7, $B5, $B5, $B6, $B9, $BA, $B8, $B2, $AE, $B0, $B5 ; CPU:$8DE2 PRG:0DE2 AC A8 A7 AF B5 B7 B5 B5 B6 B9 BA B8 B2 AE B0 B5
.byte $B7, $B4, $B2, $B2, $B3, $B4, $B5, $B0, $AB, $AA, $AE, $B2, $B4, $B2, $B1, $B2 ; CPU:$8DF2 PRG:0DF2 B7 B4 B2 B2 B3 B4 B5 B0 AB AA AE B2 B4 B2 B1 B2
.byte $B3, $B3, $B2, $AC, $A9, $AB, $B1, $B3, $B3, $B3, $B3, $B4, $B4, $B4, $B0, $AC ; CPU:$8E02 PRG:0E02 B3 B3 B2 AC A9 AB B1 B3 B3 B3 B3 B4 B4 B4 B0 AC
.byte $AB, $AF, $B3, $B4, $B3, $B3, $B3, $B4, $B4, $B4, $AE, $AC, $AD, $B2, $B4, $B4 ; CPU:$8E12 PRG:0E12 AB AF B3 B4 B3 B3 B3 B4 B4 B4 AE AC AD B2 B4 B4
.byte $B3, $B3, $B3, $B4, $B4, $AF, $AB, $AA, $AE, $B2, $B5, $B2, $B2, $B2, $B3, $B4 ; CPU:$8E22 PRG:0E22 B3 B3 B3 B4 B4 AF AB AA AE B2 B5 B2 B2 B2 B3 B4
.byte $B1, $AC, $A7, $B3, $B4, $B1, $B0, $B4, $B1, $B0, $B6, $B1, $AB, $A8, $AF, $B4 ; CPU:$8E32 PRG:0E32 B1 AC A7 B3 B4 B1 B0 B4 B1 B0 B6 B1 AB A8 AF B4
.byte $B6, $B3, $B6, $B1, $B3, $B4, $AD, $A6, $AD, $B0, $B4, $B4, $B9, $B0, $AE, $B4 ; CPU:$8E42 PRG:0E42 B6 B3 B6 B1 B3 B4 AD A6 AD B0 B4 B4 B9 B0 AE B4
.byte $AE, $A4, $A9, $B2, $B8, $BA, $B8, $AB, $B2, $B3, $AD, $A3, $AD, $B3, $BC, $BD ; CPU:$8E52 PRG:0E52 AE A4 A9 B2 B8 BA B8 AB B2 B3 AD A3 AD B3 BC BD
.byte $B4, $A5, $B1, $AB, $A1, $A4, $B4, $C0, $C7, $B4, $9F, $B0, $A7, $9F, $A1, $B5 ; CPU:$8E62 PRG:0E62 B4 A5 B1 AB A1 A4 B4 C0 C7 B4 9F B0 A7 9F A1 B5
.byte $C7, $CD, $AB, $A3, $AB, $A2, $9E, $AB, $CF, $DB, $B6, $95, $A7, $A1, $A1, $AF ; CPU:$8E72 PRG:0E72 C7 CD AB A3 AB A2 9E AB CF DB B6 95 A7 A1 A1 AF
.byte $D8, $DA, $A4, $98, $97, $9E, $9F, $DF, $DA, $B1, $8A, $99, $95, $B1, $E9, $BE ; CPU:$8E82 PRG:0E82 D8 DA A4 98 97 9E 9F DF DA B1 8A 99 95 B1 E9 BE
.byte $AA, $88, $92, $8C, $DB, $F8, $CF, $92, $75, $82, $8E, $E7, $F7, $E7, $72, $76 ; CPU:$8E92 PRG:0E92 AA 88 92 8C DB F8 CF 92 75 82 8E E7 F7 E7 72 76
.byte $7A, $A5, $E9, $F6, $C7, $82, $79, $78, $A5, $FF, $FF, $A1, $7A, $76, $88, $D4 ; CPU:$8EA2 PRG:0EA2 7A A5 E9 F6 C7 82 79 78 A5 FF FF A1 7A 76 88 D4
.byte $FF, $EC, $89, $6C, $6F, $89, $FE, $FF, $D8, $6F, $4A, $6B, $A7, $FF, $FF, $A0 ; CPU:$8EB2 PRG:0EB2 FF EC 89 6C 6F 89 FE FF D8 6F 4A 6B A7 FF FF A0
.byte $4E, $3C, $83, $CE, $FF, $FF, $6D, $41, $3C, $9B, $F9, $FF, $FF, $4A, $22, $2D ; CPU:$8EC2 PRG:0EC2 4E 3C 83 CE FF FF 6D 41 3C 9B F9 FF FF 4A 22 2D
.byte $AE, $FF, $FF, $FF, $1B, $00, $2C, $B6, $FF, $FF, $D9, $00, $00, $4C, $DD, $FF ; CPU:$8ED2 PRG:0ED2 AE FF FF FF 1B 00 2C B6 FF FF D9 00 00 4C DD FF
.byte $FF, $73, $00, $00, $7C, $FF, $FF, $CC, $53, $00, $46, $FF, $FF, $EA, $55, $5D ; CPU:$8EE2 PRG:0EE2 FF 73 00 00 7C FF FF CC 53 00 46 FF FF EA 55 5D
.byte $36, $FF, $FF, $FF, $3C, $2A, $78, $B4, $FF, $FF, $C4, $2D, $21, $7D, $A2, $FF ; CPU:$8EF2 PRG:0EF2 36 FF FF FF 3C 2A 78 B4 FF FF C4 2D 21 7D A2 FF
.byte $FF, $FF, $6E, $00, $49, $BE, $FF, $FF, $FF, $29, $00, $54, $BC, $FF, $FF, $CE ; CPU:$8F02 PRG:0F02 FF FF 6E 00 49 BE FF FF FF 29 00 54 BC FF FF CE
.byte $00, $00, $2B, $CF, $FF, $FF, $FB, $26, $00, $00, $D2, $FF, $FF, $F9, $2D, $00 ; CPU:$8F12 PRG:0F12 00 00 2B CF FF FF FB 26 00 00 D2 FF FF F9 2D 00
.byte $09, $56, $FF, $FF, $FF, $98, $00, $64, $5B, $BE, $FF, $FF, $AD, $7A, $90, $A3 ; CPU:$8F22 PRG:0F22 09 56 FF FF FF 98 00 64 5B BE FF FF AD 7A 90 A3
.byte $4F, $97, $DB, $FF, $DA, $D2, $94, $6C, $02, $93, $FF, $FF, $FF, $95, $67, $07 ; CPU:$8F32 PRG:0F32 4F 97 DB FF DA D2 94 6C 02 93 FF FF FF 95 67 07
.byte $23, $F7, $FF, $FF, $DB, $37, $46, $58, $80, $FF, $FF, $F3, $8B, $38, $A1, $7D ; CPU:$8F42 PRG:0F42 23 F7 FF FF DB 37 46 58 80 FF FF F3 8B 38 A1 7D
.byte $98, $DC, $FF, $C1, $D2, $6C, $9A, $94, $2D, $E4, $FF, $FF, $AF, $71, $99, $AA ; CPU:$8F52 PRG:0F52 98 DC FF C1 D2 6C 9A 94 2D E4 FF FF AF 71 99 AA
.byte $60, $AF, $F6, $FF, $AE, $93, $93, $C7, $BA, $1C, $CA, $EB, $F1, $D0, $A5, $DA ; CPU:$8F62 PRG:0F62 60 AF F6 FF AE 93 93 C7 BA 1C CA EB F1 D0 A5 DA
.byte $97, $4F, $70, $BF, $FF, $C7, $E3, $56, $98, $B3, $42, $F0, $E2, $FF, $8B, $A4 ; CPU:$8F72 PRG:0F72 97 4F 70 BF FF C7 E3 56 98 B3 42 F0 E2 FF 8B A4
.byte $AC, $B5, $DC, $12, $C9, $C5, $FF, $DE, $A6, $D4, $77, $A2, $1F, $D6, $FF, $EC ; CPU:$8F82 PRG:0F82 AC B5 DC 12 C9 C5 FF DE A6 D4 77 A2 1F D6 FF EC
.byte $FD, $4D, $B8, $8F, $F3, $2F, $C0, $D8, $E8, $EA, $8A, $D8, $8F, $CD, $1C, $C8 ; CPU:$8F92 PRG:0F92 FD 4D B8 8F F3 2F C0 D8 E8 EA 8A D8 8F CD 1C C8
.byte $DE, $FF, $EB, $85, $B6, $69, $E2, $7D, $A0, $9D, $FF, $C9, $C5, $A4, $A2, $C8 ; CPU:$8FA2 PRG:0FA2 DE FF EB 85 B6 69 E2 7D A0 9D FF C9 C5 A4 A2 C8
.byte $A0, $39, $A0, $FF, $FF, $E2, $92, $89, $A3, $DB, $AD, $35, $A5, $FF, $FC, $F0 ; CPU:$8FB2 PRG:0FB2 A0 39 A0 FF FF E2 92 89 A3 DB AD 35 A5 FF FC F0
.byte $73, $7B, $A7, $FE, $D1, $32, $88, $DD, $FF, $F9, $8D, $6E, $8F, $FF, $EE, $67 ; CPU:$8FC2 PRG:0FC2 73 7B A7 FE D1 32 88 DD FF F9 8D 6E 8F FF EE 67
.byte $48, $98, $FF, $FF, $EE, $3E, $65, $C5, $FF, $DE, $23, $73, $C0, $FF, $F2, $B4 ; CPU:$8FD2 PRG:0FD2 48 98 FF FF EE 3E 65 C5 FF DE 23 73 C0 FF F2 B4
.byte $1B, $58, $F9, $FF, $FE, $1D, $3D, $94, $FF, $FF, $C3, $11, $57, $F1, $FF, $FF ; CPU:$8FE2 PRG:0FE2 1B 58 F9 FF FE 1D 3D 94 FF FF C3 11 57 F1 FF FF
.byte $28, $00, $A3, $FF, $FF, $CB, $0E, $37, $BD, $FF, $FF, $77, $00, $48, $FB, $FF ; CPU:$8FF2 PRG:0FF2 28 00 A3 FF FF CB 0E 37 BD FF FF 77 00 48 FB FF
.byte $FF, $59, $00, $8D, $FF, $FF, $D0, $25, $00, $C5, $FF, $FF, $97, $0A, $27, $DC ; CPU:$9002 PRG:1002 FF 59 00 8D FF FF D0 25 00 C5 FF FF 97 0A 27 DC
.byte $FF, $FF, $86, $05, $00, $FF, $FF, $FF, $52, $00, $8B, $FF, $FF, $C4, $4F, $21 ; CPU:$9012 PRG:1012 FF FF 86 05 00 FF FF FF 52 00 8B FF FF C4 4F 21
.byte $61, $FF, $FF, $AF, $36, $1B, $D3, $FF, $FF, $9C, $36, $28, $B8, $FF, $FF, $6C ; CPU:$9022 PRG:1022 61 FF FF AF 36 1B D3 FF FF 9C 36 28 B8 FF FF 6C
.byte $39, $64, $FF, $FF, $E6, $86, $43, $4B, $F4, $FF, $FF, $52, $4B, $9B, $FE, $FF ; CPU:$9032 PRG:1032 39 64 FF FF E6 86 43 4B F4 FF FF 52 4B 9B FE FF
.byte $B1, $87, $6E, $7F, $EE, $FF, $E8, $56, $77, $AC, $F8, $DF, $A9, $A1, $9E, $97 ; CPU:$9042 PRG:1042 B1 87 6E 7F EE FF E8 56 77 AC F8 DF A9 A1 9E 97
.byte $A4, $D1, $EB, $8A, $B3, $95, $CF, $B4, $C0, $AA, $B5, $AF, $3E, $CA, $F2, $E7 ; CPU:$9052 PRG:1052 A4 D1 EB 8A B3 95 CF B4 C0 AA B5 AF 3E CA F2 E7
.byte $AB, $7B, $9B, $A2, $EA, $C3, $D4, $A7, $6B, $7E, $CA, $FF, $B7, $A7, $61, $A6 ; CPU:$9062 PRG:1062 AB 7B 9B A2 EA C3 D4 A7 6B 7E CA FF B7 A7 61 A6
.byte $CD, $ED, $D6, $A9, $88, $4E, $BF, $F5, $FF, $8B, $74, $7E, $C0, $F8, $CE, $B2 ; CPU:$9072 PRG:1072 CD ED D6 A9 88 4E BF F5 FF 8B 74 7E C0 F8 CE B2
.byte $8D, $A0, $82, $CE, $DE, $E8, $8F, $8E, $98, $B9, $E5, $C7, $B0, $9D, $AF, $9A ; CPU:$9082 PRG:1082 8D A0 82 CE DE E8 8F 8E 98 B9 E5 C7 B0 9D AF 9A
.byte $9D, $C8, $E5, $AE, $A1, $8B, $AF, $CA, $D8, $B8, $99, $BB, $A4, $68, $CA, $E0 ; CPU:$9092 PRG:1092 9D C8 E5 AE A1 8B AF CA D8 B8 99 BB A4 68 CA E0
.byte $D2, $A4, $90, $A0, $B3, $DE, $C1, $AD, $A5, $B2, $A1, $8E, $C3, $E2, $BE, $AF ; CPU:$90A2 PRG:10A2 D2 A4 90 A0 B3 DE C1 AD A5 B2 A1 8E C3 E2 BE AF
.byte $89, $A5, $B7, $DB, $C5, $A5, $AC, $AE, $9D, $95, $C8, $E4, $B7, $AD, $86, $AA ; CPU:$90B2 PRG:10B2 89 A5 B7 DB C5 A5 AC AE 9D 95 C8 E4 B7 AD 86 AA
.byte $C2, $D5, $BC, $99, $A7, $C4, $BC, $7B, $B5, $CD, $C2, $BF, $9E, $A3, $9E, $C8 ; CPU:$90C2 PRG:10C2 C2 D5 BC 99 A7 C4 BC 7B B5 CD C2 BF 9E A3 9E C8
.byte $CE, $BB, $A4, $A4, $C3, $9D, $A4, $AF, $DA, $BE, $B4, $94, $97, $BC, $D3, $CC ; CPU:$90D2 PRG:10D2 CE BB A4 A4 C3 9D A4 AF DA BE B4 94 97 BC D3 CC
.byte $A0, $97, $AE, $D7, $B8, $96, $9D, $C8, $C5, $C5, $A0, $9A, $B0, $C4, $C7, $B2 ; CPU:$90E2 PRG:10E2 A0 97 AE D7 B8 96 9D C8 C5 C5 A0 9A B0 C4 C7 B2
.byte $AA, $A7, $BF, $C3, $8D, $AB, $B3, $C9, $C6, $B7, $A5, $97, $B6, $C1, $CA, $B7 ; CPU:$90F2 PRG:10F2 AA A7 BF C3 8D AB B3 C9 C6 B7 A5 97 B6 C1 CA B7
.byte $A2, $A1, $B8, $D2, $B4, $97, $9B, $C8, $C9, $C8, $A7, $9C, $A4, $B8, $CC, $BF ; CPU:$9102 PRG:1102 A2 A1 B8 D2 B4 97 9B C8 C9 C8 A7 9C A4 B8 CC BF
.byte $B1, $9D, $A3, $B9, $D0, $CB, $A6, $88, $99, $CB, $D3, $D0, $A5, $95, $9C, $BA ; CPU:$9112 PRG:1112 B1 9D A3 B9 D0 CB A6 88 99 CB D3 D0 A5 95 9C BA
.byte $D1, $C4, $B2, $97, $A3, $BB, $C9, $C0, $AA, $A6, $AF, $B8, $AF, $BA, $B4, $BB ; CPU:$9122 PRG:1122 D1 C4 B2 97 A3 BB C9 C0 AA A6 AF B8 AF BA B4 BB
.byte $B2, $B5, $AE, $AB, $B5, $B7, $BB, $B2, $B5, $7E, $FF, $73, $DC, $49, $7F, $AC ; CPU:$9132 PRG:1132 B2 B5 AE AB B5 B7 BB B2 B5 7E FF 73 DC 49 7F AC
.byte $93, $FF, $52, $E1, $41, $A1, $A6, $C5, $FF, $3E, $E4, $38, $BB, $95, $D4, $FF ; CPU:$9142 PRG:1142 93 FF 52 E1 41 A1 A6 C5 FF 3E E4 38 BB 95 D4 FF
.byte $45, $EC, $28, $F5, $65, $D0, $FF, $42, $FF, $23, $FF, $49, $8D, $FF, $3F, $FF ; CPU:$9152 PRG:1152 45 EC 28 F5 65 D0 FF 42 FF 23 FF 49 8D FF 3F FF
.byte $25, $FF, $4D, $58, $FF, $41, $FF, $45, $CB, $9A, $70, $FF, $76, $EB, $88, $75 ; CPU:$9162 PRG:1162 25 FF 4D 58 FF 41 FF 45 CB 9A 70 FF 76 EB 88 75
.byte $FF, $57, $9B, $FF, $75, $B6, $7B, $EA, $5E, $87, $FF, $65, $E3, $8A, $A2, $C0 ; CPU:$9172 PRG:1172 FF 57 9B FF 75 B6 7B EA 5E 87 FF 65 E3 8A A2 C0
.byte $75, $E5, $C3, $A1, $B0, $72, $FF, $51, $5D, $FF, $56, $DA, $5A, $FF, $44, $C8 ; CPU:$9182 PRG:1182 75 E5 C3 A1 B0 72 FF 51 5D FF 56 DA 5A FF 44 C8
.byte $C4, $AF, $CF, $8C, $8D, $FA, $4C, $58, $FF, $65, $D9, $62, $E3, $7F, $9C, $9A ; CPU:$9192 PRG:1192 C4 AF CF 8C 8D FA 4C 58 FF 65 D9 62 E3 7F 9C 9A
.byte $DB, $C7, $97, $64, $FF, $45, $96, $FF, $A5, $B3, $9C, $70, $FF, $57, $5F, $FF ; CPU:$91A2 PRG:11A2 DB C7 97 64 FF 45 96 FF A5 B3 9C 70 FF 57 5F FF
.byte $7F, $D4, $72, $9D, $CB, $80, $29, $FF, $77, $B2, $77, $BC, $BB, $8B, $3B, $FF ; CPU:$91B2 PRG:11B2 7F D4 72 9D CB 80 29 FF 77 B2 77 BC BB 8B 3B FF
.byte $77, $ED, $46, $B5, $D5, $91, $4D, $FF, $75, $F0, $5C, $A4, $DC, $82, $C6, $1D ; CPU:$91C2 PRG:11C2 77 ED 46 B5 D5 91 4D FF 75 F0 5C A4 DC 82 C6 1D
.byte $FF, $99, $CB, $3A, $FF, $54, $FF, $03, $FF, $26, $FF, $09, $FA, $7A, $B9, $C6 ; CPU:$91D2 PRG:11D2 FF 99 CB 3A FF 54 FF 03 FF 26 FF 09 FA 7A B9 C6
.byte $00, $FF, $59, $FF, $14, $FF, $D6, $96, $A5, $31, $A7, $FF, $AF, $85, $A2, $FF ; CPU:$91E2 PRG:11E2 00 FF 59 FF 14 FF D6 96 A5 31 A7 FF AF 85 A2 FF
.byte $F1, $47, $CA, $27, $FF, $17, $F7, $68, $FF, $FC, $46, $FF, $03, $FF, $00, $FF ; CPU:$91F2 PRG:11F2 F1 47 CA 27 FF 17 F7 68 FF FC 46 FF 03 FF 00 FF
.byte $13, $F6, $FF, $15, $FF, $00, $FF, $00, $FF, $6B, $C2, $FF, $3C, $FF, $00, $FF ; CPU:$9202 PRG:1202 13 F6 FF 15 FF 00 FF 00 FF 6B C2 FF 3C FF 00 FF
.byte $00, $F1, $58, $BC, $FF, $13, $80, $2E, $FF, $00, $EB, $4D, $FF, $FF, $1B, $32 ; CPU:$9212 PRG:1212 00 F1 58 BC FF 13 80 2E FF 00 EB 4D FF FF 1B 32
.byte $FF, $FF, $79, $AB, $73, $FF, $00, $C8, $25, $FF, $3B, $FF, $47, $70, $DC, $6F ; CPU:$9222 PRG:1222 FF FF 79 AB 73 FF 00 C8 25 FF 3B FF 47 70 DC 6F
.byte $FF, $06, $08, $D7, $FF, $34, $9E, $79, $FF, $11, $54, $69, $FF, $44, $F5, $1C ; CPU:$9232 PRG:1232 FF 06 08 D7 FF 34 9E 79 FF 11 54 69 FF 44 F5 1C
.byte $72, $C2, $FD, $FF, $02, $04, $FF, $FF, $5E, $6F, $81, $FF, $10, $57, $5A, $FF ; CPU:$9242 PRG:1242 72 C2 FD FF 02 04 FF FF 5E 6F 81 FF 10 57 5A FF
.byte $00, $FD, $00, $70, $C7, $FF, $FF, $00, $0A, $FF, $FF, $00, $7A, $98, $FF, $15 ; CPU:$9252 PRG:1252 00 FD 00 70 C7 FF FF 00 0A FF FF 00 7A 98 FF 15
.byte $00, $8A, $FF, $65, $FF, $00, $6D, $FF, $FF, $FF, $00, $00, $8E, $FF, $36, $69 ; CPU:$9262 PRG:1262 00 8A FF 65 FF 00 6D FF FF FF 00 00 8E FF 36 69
.byte $C8, $FF, $00, $BD, $82, $94, $04, $FF, $00, $9B, $B6, $FF, $E8, $00, $32, $B0 ; CPU:$9272 PRG:1272 C8 FF 00 BD 82 94 04 FF 00 9B B6 FF E8 00 32 B0
.byte $F5, $00, $4A, $E0, $FF, $00, $46, $BA, $B8, $00, $C9, $00, $AD, $D5, $4E, $FF ; CPU:$9282 PRG:1282 F5 00 4A E0 FF 00 46 BA B8 00 C9 00 AD D5 4E FF
.byte $00, $00, $7D, $FF, $00, $B2, $FC, $FF, $00, $00, $E6, $FF, $00, $42, $00, $E8 ; CPU:$9292 PRG:1292 00 00 7D FF 00 B2 FC FF 00 00 E6 FF 00 42 00 E8
.byte $FF, $00, $B4, $B0, $00, $74, $99, $00, $FF, $C0, $00, $FF, $00, $5A, $88, $81 ; CPU:$92A2 PRG:12A2 FF 00 B4 B0 00 74 99 00 FF C0 00 FF 00 5A 88 81
.byte $2A, $FC, $FF, $AB, $BE, $18, $6D, $AE, $00, $6A, $83, $FF, $CA, $00, $B9, $D2 ; CPU:$92B2 PRG:12B2 2A FC FF AB BE 18 6D AE 00 6A 83 FF CA 00 B9 D2
.byte $FF, $00, $AC, $14, $FF, $16, $00, $F5, $96, $5F, $00, $FF, $00, $FF, $00, $92 ; CPU:$92C2 PRG:12C2 FF 00 AC 14 FF 16 00 F5 96 5F 00 FF 00 FF 00 92
.byte $CB, $74, $00, $FF, $F1, $00, $FF, $7C, $A0, $8F, $60, $A4, $FF, $00, $9D, $9B ; CPU:$92D2 PRG:12D2 CB 74 00 FF F1 00 FF 7C A0 8F 60 A4 FF 00 9D 9B
.byte $D9, $D5, $00, $FF, $99, $3D, $00, $FF, $00, $FF, $43, $4E, $E8, $87, $57, $B7 ; CPU:$92E2 PRG:12E2 D9 D5 00 FF 99 3D 00 FF 00 FF 43 4E E8 87 57 B7
.byte $00, $C8, $AD, $C2, $FF, $00, $FF, $66, $00, $FF, $E8, $3F, $FF, $7E, $FF, $00 ; CPU:$92F2 PRG:12F2 00 C8 AD C2 FF 00 FF 66 00 FF E8 3F FF 7E FF 00
.byte $FF, $5C, $1D, $57, $FF, $00, $FF, $52, $EB, $3E, $FF, $21, $3C, $54, $FF, $00 ; CPU:$9302 PRG:1302 FF 5C 1D 57 FF 00 FF 52 EB 3E FF 21 3C 54 FF 00
.byte $FF, $5C, $CF, $31, $FF, $58, $00, $FF, $D4, $00, $FF, $AB, $94, $75, $FF, $00 ; CPU:$9312 PRG:1312 FF 5C CF 31 FF 58 00 FF D4 00 FF AB 94 75 FF 00
.byte $69, $FF, $00, $82, $A0, $FF, $54, $5B, $9A, $FF, $00, $54, $EB, $C4, $00, $FF ; CPU:$9322 PRG:1322 69 FF 00 82 A0 FF 54 5B 9A FF 00 54 EB C4 00 FF
.byte $5E, $4C, $CB, $FA, $00, $56, $B0, $00, $57, $FF, $C0, $2F, $78, $D9, $DA, $00 ; CPU:$9332 PRG:1332 5E 4C CB FA 00 56 B0 00 57 FF C0 2F 78 D9 DA 00
.byte $9E, $FF, $00, $85, $FF, $5C, $2B, $FF, $54, $FF, $32, $B3, $EA, $00, $FF, $FF ; CPU:$9342 PRG:1342 9E FF 00 85 FF 5C 2B FF 54 FF 32 B3 EA 00 FF FF
.byte $43, $7B, $DE, $67, $FF, $18, $78, $97, $00, $D0, $FF, $2B, $B5, $C0, $6A, $81 ; CPU:$9352 PRG:1352 43 7B DE 67 FF 18 78 97 00 D0 FF 2B B5 C0 6A 81
.byte $64, $0B, $FF, $45, $96, $FF, $0F, $E9, $B5, $B8, $7B, $B1, $B4, $C8, $32, $FF ; CPU:$9362 PRG:1362 64 0B FF 45 96 FF 0F E9 B5 B8 7B B1 B4 C8 32 FF
.byte $8A, $75, $CA, $C4, $6A, $7A, $FF, $31, $B8, $CB, $00, $AF, $BB, $FF, $09, $E4 ; CPU:$9372 PRG:1372 8A 75 CA C4 6A 7A FF 31 B8 CB 00 AF BB FF 09 E4
.byte $FF, $00, $FF, $B7, $F5, $00, $FC, $6E, $AA, $79, $E8, $A4, $7E, $DC, $BD, $82 ; CPU:$9382 PRG:1382 FF 00 FF B7 F5 00 FC 6E AA 79 E8 A4 7E DC BD 82
.byte $E2, $B3, $9B, $E0, $8D, $C1, $B9, $97, $9A, $FF, $12, $D2, $B2, $0B, $F0, $E0 ; CPU:$9392 PRG:1392 E2 B3 9B E0 8D C1 B9 97 9A FF 12 D2 B2 0B F0 E0
.byte $CF, $4A, $FF, $CF, $41, $FF, $9F, $44, $41, $E0, $53, $FF, $6C, $F8, $B3, $9F ; CPU:$93A2 PRG:13A2 CF 4A FF CF 41 FF 9F 44 41 E0 53 FF 6C F8 B3 9F
.byte $D2, $83, $D0, $8A, $F5, $96, $B3, $D5, $85, $D6, $B8, $A3, $C9, $D9, $7D, $E6 ; CPU:$93B2 PRG:13B2 D2 83 D0 8A F5 96 B3 D5 85 D6 B8 A3 C9 D9 7D E6
.byte $98, $FF, $00, $FF, $AE, $6E, $FB, $BF, $94, $91, $FF, $1B, $FF, $9E, $94, $C4 ; CPU:$93C2 PRG:13C2 98 FF 00 FF AE 6E FB BF 94 91 FF 1B FF 9E 94 C4
.byte $FF, $8A, $B5, $FF, $83, $AB, $F4, $93, $CA, $D1, $FF, $12, $FF, $A5, $BA, $B3 ; CPU:$93D2 PRG:13D2 FF 8A B5 FF 83 AB F4 93 CA D1 FF 12 FF A5 BA B3
.byte $DE, $98, $C2, $D9, $9E, $A6, $F0, $91, $FF, $00, $FF, $A7, $A9, $D3, $C7, $A9 ; CPU:$93E2 PRG:13E2 DE 98 C2 D9 9E A6 F0 91 FF 00 FF A7 A9 D3 C7 A9
.byte $D3, $C8, $E4, $BC, $D9, $E4, $4A, $F2, $BF, $80, $E1, $E2, $8D, $E0, $CA, $A5 ; CPU:$93F2 PRG:13F2 D3 C8 E4 BC D9 E4 4A F2 BF 80 E1 E2 8D E0 CA A5
.byte $AA, $FC, $9B, $B9, $FF, $85, $DD, $C5, $A1, $DC, $B0, $BB, $D1, $AD, $CA, $CD ; CPU:$9402 PRG:1402 AA FC 9B B9 FF 85 DD C5 A1 DC B0 BB D1 AD CA CD
.byte $96, $E2, $A1, $FF, $54, $FC, $AD, $9F, $E7, $B2, $BD, $D4, $B2, $BA, $E3, $8E ; CPU:$9412 PRG:1412 96 E2 A1 FF 54 FC AD 9F E7 B2 BD D4 B2 BA E3 8E
.byte $DE, $BE, $C9, $77, $EE, $AA, $B6, $CA, $D0, $82, $FF, $6E, $FF, $F7, $8D, $FF ; CPU:$9422 PRG:1422 DE BE C9 77 EE AA B6 CA D0 82 FF 6E FF F7 8D FF
.byte $19, $FF, $FF, $1B, $FF, $5E, $FF, $66, $C3, $FF, $28, $FF, $00, $CC, $FF, $AA ; CPU:$9432 PRG:1432 19 FF FF 1B FF 5E FF 66 C3 FF 28 FF 00 CC FF AA
.byte $FF, $00, $FF, $0F, $FF, $FF, $00, $FF, $4E, $EF, $53, $65, $E5, $1E, $FF, $00 ; CPU:$9442 PRG:1442 FF 00 FF 0F FF FF 00 FF 4E EF 53 65 E5 1E FF 00
.byte $B9, $F1, $2A, $9F, $21, $DD, $6D, $E4, $1A, $20, $FF, $27, $75, $74, $E2, $D9 ; CPU:$9452 PRG:1452 B9 F1 2A 9F 21 DD 6D E4 1A 20 FF 27 75 74 E2 D9
.byte $7D, $E1, $05, $FF, $DF, $12, $FF, $96, $FF, $99, $C9, $97, $F8, $FF, $00, $F4 ; CPU:$9462 PRG:1462 7D E1 05 FF DF 12 FF 96 FF 99 C9 97 F8 FF 00 F4
.byte $FF, $CA, $FF, $5D, $FF, $B2, $FF, $9A, $2F, $FF, $A2, $F2, $AE, $BE, $FF, $E1 ; CPU:$9472 PRG:1472 FF CA FF 5D FF B2 FF 9A 2F FF A2 F2 AE BE FF E1
.byte $FF, $07, $FF, $FF, $61, $FF, $6F, $FF, $C7, $E4, $4F, $94, $FF, $3F, $B9, $97 ; CPU:$9482 PRG:1482 FF 07 FF FF 61 FF 6F FF C7 E4 4F 94 FF 3F B9 97
.byte $93, $FF, $92, $92, $39, $FF, $67, $37, $E8, $6C, $F6, $61, $7F, $4E, $FC, $ED ; CPU:$9492 PRG:1492 93 FF 92 92 39 FF 67 37 E8 6C F6 61 7F 4E FC ED
.byte $00, $ED, $6C, $BE, $B7, $48, $89, $8A, $FF, $0F, $70, $FF, $56, $DC, $61, $79 ; CPU:$94A2 PRG:14A2 00 ED 6C BE B7 48 89 8A FF 0F 70 FF 56 DC 61 79
.byte $99, $FF, $A1, $0F, $FF, $BB, $BA, $A1, $7E, $F7, $F2, $BA, $3A, $FF, $FF, $9A ; CPU:$94B2 PRG:14B2 99 FF A1 0F FF BB BA A1 7E F7 F2 BA 3A FF FF 9A
.byte $D3, $90, $F9, $FF, $F3, $77, $CF, $FF, $9A, $EF, $C1, $C9, $FF, $D2, $C5, $A2 ; CPU:$94C2 PRG:14C2 D3 90 F9 FF F3 77 CF FF 9A EF C1 C9 FF D2 C5 A2
.byte $FF, $F4, $87, $FF, $B2, $FF, $EE, $9E, $D6, $FF, $FF, $5F, $E4, $FF, $D3, $FF ; CPU:$94D2 PRG:14D2 FF F4 87 FF B2 FF EE 9E D6 FF FF 5F E4 FF D3 FF
.byte $6B, $D3, $FF, $FF, $8F, $61, $FF, $AA, $DF, $99, $7F, $F8, $CD, $AD, $5B, $F0 ; CPU:$94E2 PRG:14E2 6B D3 FF FF 8F 61 FF AA DF 99 7F F8 CD AD 5B F0
.byte $CC, $87, $BB, $58, $E7, $D1, $9B, $57, $A7, $FF, $5E, $BF, $7E, $A5, $F9, $74 ; CPU:$94F2 PRG:14F2 CC 87 BB 58 E7 D1 9B 57 A7 FF 5E BF 7E A5 F9 74
.byte $89, $89, $FF, $85, $6E, $DA, $6D, $FF, $9D, $77, $A8, $CC, $EC, $4D, $E1, $97 ; CPU:$9502 PRG:1502 89 89 FF 85 6E DA 6D FF 9D 77 A8 CC EC 4D E1 97
.byte $BE, $FF, $4B, $CE, $D2, $E9, $82, $8C, $FF, $97, $FF, $76, $94, $FF, $C6, $C0 ; CPU:$9512 PRG:1512 BE FF 4B CE D2 E9 82 8C FF 97 FF 76 94 FF C6 C0
.byte $69, $FF, $C6, $C2, $D2, $5A, $FF, $D2, $B9, $95, $C0, $FF, $90, $ED, $7C, $D4 ; CPU:$9522 PRG:1522 69 FF C6 C2 D2 5A FF D2 B9 95 C0 FF 90 ED 7C D4
.byte $FF, $86, $BE, $A0, $FF, $B4, $AC, $D6, $83, $FF, $94, $97, $E2, $CE, $F9, $6F ; CPU:$9532 PRG:1532 FF 86 BE A0 FF B4 AC D6 83 FF 94 97 E2 CE F9 6F
.byte $DE, $9D, $F9, $FC, $41, $EB, $BD, $EC, $B3, $94, $E2, $9C, $FF, $63, $AC, $FF ; CPU:$9542 PRG:1542 DE 9D F9 FC 41 EB BD EC B3 94 E2 9C FF 63 AC FF
.byte $9E, $CF, $64, $ED, $C1, $C8, $B6, $47, $FF, $A3, $AF, $A1, $99, $FC, $80, $CE ; CPU:$9552 PRG:1552 9E CF 64 ED C1 C8 B6 47 FF A3 AF A1 99 FC 80 CE
.byte $6A, $DA, $FF, $59, $C5, $78, $F2, $BB, $99, $B8, $6E, $FF, $79, $A9, $CF, $96 ; CPU:$9562 PRG:1562 6A DA FF 59 C5 78 F2 BB 99 B8 6E FF 79 A9 CF 96
.byte $F0, $68, $CD, $A0, $E7, $D9, $45, $F9, $A1, $E8, $B1, $88, $ED, $9B, $FF, $63 ; CPU:$9572 PRG:1572 F0 68 CD A0 E7 D9 45 F9 A1 E8 B1 88 ED 9B FF 63
.byte $C5, $FF, $95, $E6, $65, $F0, $D6, $CB, $C1, $67, $FF, $A5, $D2, $C2, $98, $FF ; CPU:$9582 PRG:1582 C5 FF 95 E6 65 F0 D6 CB C1 67 FF A5 D2 C2 98 FF
.byte $98, $DD, $8A, $E1, $F4, $79, $E4, $86, $F5, $CC, $98, $C4, $92, $FF, $83, $B3 ; CPU:$9592 PRG:1592 98 DD 8A E1 F4 79 E4 86 F5 CC 98 C4 92 FF 83 B3
.byte $C8, $A5, $F7, $6D, $CB, $AE, $D8, $C8, $63, $EA, $97, $E5, $AD, $82, $DA, $9D ; CPU:$95A2 PRG:15A2 C8 A5 F7 6D CB AE D8 C8 63 EA 97 E5 AD 82 DA 9D
.byte $ED, $78, $BB, $D3, $97, $DF, $72, $D9, $BD, $B4, $B5, $81, $FE, $9E, $C1, $A5 ; CPU:$95B2 PRG:15B2 ED 78 BB D3 97 DF 72 D9 BD B4 B5 81 FE 9E C1 A5
.byte $9D, $F1, $9B, $C6, $91, $D7, $D2, $91, $CF, $96, $EC, $BB, $9F, $B8, $AC, $F9 ; CPU:$95C2 PRG:15C2 9D F1 9B C6 91 D7 D2 91 CF 96 EC BB 9F B8 AC F9
.byte $99, $B8, $B0, $BA, $E4, $96, $C6, $AC, $D6, $B9, $94, $D9, $B0, $DB, $A1, $A3 ; CPU:$95D2 PRG:15D2 99 B8 B0 BA E4 96 C6 AC D6 B9 94 D9 B0 DB A1 A3
.byte $CF, $BF, $D5, $8A, $C2, $C2, $B8, $C3, $94, $D4, $BB, $BE, $9F, $A7, $E0, $B1 ; CPU:$95E2 PRG:15E2 CF BF D5 8A C2 C2 B8 C3 94 D4 BB BE 9F A7 E0 B1
.byte $BF, $95, $B4, $D0, $B6, $B9, $97, $CD, $B5, $AE, $B8, $AA, $D2, $A9, $AF, $A5 ; CPU:$95F2 PRG:15F2 BF 95 B4 D0 B6 B9 97 CD B5 AE B8 AA D2 A9 AF A5
.byte $C5, $D4, $9E, $B9, $A5, $CC, $C2, $AB, $BB, $B0, $D7, $A0, $B0, $C3, $C0, $D2 ; CPU:$9602 PRG:1602 C5 D4 9E B9 A5 CC C2 AB BB B0 D7 A0 B0 C3 C0 D2
.byte $99, $B6, $B6, $D5, $C4, $9C, $C8, $B0, $D2, $B4, $B3, $CB, $B6, $CC, $9A, $C9 ; CPU:$9612 PRG:1612 99 B6 B6 D5 C4 9C C8 B0 D2 B4 B3 CB B6 CC 9A C9
.byte $CD, $BB, $C3, $99, $CF, $BC, $C8, $B2, $A5, $DA, $A8, $C5, $A8, $BF, $D1, $A7 ; CPU:$9622 PRG:1622 CD BB C3 99 CF BC C8 B2 A5 DA A8 C5 A8 BF D1 A7
.byte $BE, $97, $D7, $C2, $A8, $BA, $99, $D8, $AA, $B8, $AD, $AA, $D3, $91, $C3, $A9 ; CPU:$9632 PRG:1632 BE 97 D7 C2 A8 BA 99 D8 AA B8 AD AA D3 91 C3 A9
.byte $BD, $BF, $91, $C3, $9F, $D5, $A9, $9C, $C6, $9E, $D2, $99, $B8, $BA, $AD, $CA ; CPU:$9642 PRG:1642 BD BF 91 C3 9F D5 A9 9C C6 9E D2 99 B8 BA AD CA
.byte $88, $CF, $B4, $BB, $BC, $91, $D5, $AA, $D0, $A7, $AA, $D5, $A1, $D4, $A0, $C5 ; CPU:$9652 PRG:1652 88 CF B4 BB BC 91 D5 AA D0 A7 AA D5 A1 D4 A0 C5
.byte $C8, $AC, $CD, $9A, $E1, $B7, $B6, $C6, $A4, $E5, $AA, $CB, $B4, $B8, $DF, $9C ; CPU:$9662 PRG:1662 C8 AC CD 9A E1 B7 B6 C6 A4 E5 AA CB B4 B8 DF 9C
.byte $D7, $AE, $CD, $CB, $A2, $D3, $A9, $E3, $AF, $AF, $CF, $A9, $E1, $A1, $C3, $BD ; CPU:$9672 PRG:1672 D7 AE CD CB A2 D3 A9 E3 AF AF CF A9 E1 A1 C3 BD
.byte $B5, $D2, $95, $D6, $B0, $BF, $BF, $9B, $D5, $A5, $CD, $A5, $AA, $CD, $9D, $CE ; CPU:$9682 PRG:1682 B5 D2 95 D6 B0 BF BF 9B D5 A5 CD A5 AA CD 9D CE
.byte $9A, $BC, $BA, $A4, $C3, $93, $D3, $A9, $AC, $B7, $9B, $D3, $9F, $BB, $A3, $AE ; CPU:$9692 PRG:1692 9A BC BA A4 C3 93 D3 A9 AC B7 9B D3 9F BB A3 AE
.byte $CB, $95, $C6, $A0, $BE, $BA, $9D, $C4, $A0, $D1, $A7, $AC, $C1, $A6, $D3, $A0 ; CPU:$96A2 PRG:16A2 CB 95 C6 A0 BE BA 9D C4 A0 D1 A7 AC C1 A6 D3 A0
.byte $BE, $B6, $B6, $CA, $9D, $D1, $B1, $C0, $BD, $A7, $D2, $B1, $D0, $AC, $B7, $D1 ; CPU:$96B2 PRG:16B2 BE B6 B6 CA 9D D1 B1 C0 BD A7 D2 B1 D0 AC B7 D1
.byte $B0, $D2, $AA, $C5, $C5, $BA, $C9, $A8, $D7, $B7, $BD, $C1, $AF, $D5, $B2, $C4 ; CPU:$96C2 PRG:16C2 B0 D2 AA C5 C5 BA C9 A8 D7 B7 BD C1 AF D5 B2 C4
.byte $B2, $BE, $CD, $AA, $CA, $AF, $C4, $BE, $AF, $C3, $AE, $CE, $AC, $B4, $BD, $B0 ; CPU:$96D2 PRG:16D2 B2 BE CD AA CA AF C4 BE AF C3 AE CE AC B4 BD B0
.byte $CB, $A8, $B9, $B1, $BA, $BF, $A3, $C3, $AC, $BB, $B4, $A8, $BF, $AE, $C0, $A4 ; CPU:$96E2 PRG:16E2 CB A8 B9 B1 BA BF A3 C3 AC BB B4 A8 BF AE C0 A4
.byte $B3, $BC, $AC, $C0, $A4, $B8, $B5, $B3, $B5, $A8, $C4, $AD, $B7, $B2, $AE, $C4 ; CPU:$96F2 PRG:16F2 B3 BC AC C0 A4 B8 B5 B3 B5 A8 C4 AD B7 B2 AE C4
.byte $B1, $B9, $AA, $BC, $BE, $AF, $BF, $AC, $C0, $BA, $B4, $BA, $B4, $C7, $AF, $BC ; CPU:$9702 PRG:1702 B1 B9 AA BC BE AF BF AC C0 BA B4 BA B4 C7 AF BC
.byte $B9, $BA, $C8, $B1, $BD, $B6, $C5, $BD, $B4, $C5, $B4, $C6, $B8, $B6, $C1, $BC ; CPU:$9712 PRG:1712 B9 BA C8 B1 BD B6 C5 BD B4 C5 B4 C6 B8 B6 C1 BC
.byte $C4, $AE, $C1, $BD, $BC, $C3, $AE, $C0, $BA, $C0, $B7, $B5, $C4, $B1, $C2, $B1 ; CPU:$9722 PRG:1722 C4 AE C1 BD BC C3 AE C0 BA C0 B7 B5 C4 B1 C2 B1
.byte $B8, $C2, $B6, $BC, $AB, $C1, $B8, $B7, $BB, $AA, $C2, $B3, $B7, $B3, $B5, $C0 ; CPU:$9732 PRG:1732 B8 C2 B6 BC AB C1 B8 B7 BB AA C2 B3 B7 B3 B5 C0
.byte $AA, $BC, $AE, $BA, $BE, $AB, $B8, $AE, $C0, $B2, $B2, $BA, $AB, $C3, $AD, $B6 ; CPU:$9742 PRG:1742 AA BC AE BA BE AB B8 AE C0 B2 B2 BA AB C3 AD B6
.byte $B8, $B6, $BD, $A9, $BF, $B2, $BC, $BC, $AA, $BF, $B2, $C0, $B3, $B5, $C0, $AF ; CPU:$9752 PRG:1752 B8 B6 BD A9 BF B2 BC BC AA BF B2 C0 B3 B5 C0 AF
.byte $C4, $AE, $BD, $BF, $B5, $BF, $AC, $C6, $B7, $BD, $BD, $AD, $C8, $B4, $BF, $B7 ; CPU:$9762 PRG:1762 C4 AE BD BF B5 BF AC C6 B7 BD BD AD C8 B4 BF B7
.byte $B8, $C3, $B0, $C4, $B0, $C1, $C1, $B0, $C0, $B1, $C6, $B7, $B9, $BD, $AF, $C9 ; CPU:$9772 PRG:1772 B8 C3 B0 C4 B0 C1 C1 B0 C0 B1 C6 B7 B9 BD AF C9
.byte $AF, $BC, $BA, $B6, $C0, $AB, $C2, $B3, $BF, $BC, $AA, $C2, $B1, $C1, $B3, $B4 ; CPU:$9782 PRG:1782 AF BC BA B6 C0 AB C2 B3 BF BC AA C2 B1 C1 B3 B4
.byte $BE, $AF, $C3, $AB, $BB, $BB, $B1, $BE, $A9, $C0, $B3, $B9, $B8, $AA, $C4, $AF ; CPU:$9792 PRG:1792 BE AF C3 AB BB BB B1 BE A9 C0 B3 B9 B8 AA C4 AF
.byte $BC, $B4, $B4, $BF, $AD, $C0, $AD, $BD, $BC, $AD, $BE, $AE, $C2, $B6, $B5, $BA ; CPU:$97A2 PRG:17A2 BC B4 B4 BF AD C0 AD BD BC AD BE AE C2 B6 B5 BA
.byte $AF, $C5, $AE, $BB, $B8, $B5, $C1, $AD, $C0, $B3, $BE, $BC, $AE, $C2, $B2, $C1 ; CPU:$97B2 PRG:17B2 AF C5 AE BB B8 B5 C1 AD C0 B3 BE BC AE C2 B2 C1
.byte $B6, $B5, $BF, $B3, $C3, $AF, $BD, $BD, $B4, $C0, $AF, $C1, $B8, $BB, $BA, $B1 ; CPU:$97C2 PRG:17C2 B6 B5 BF B3 C3 AF BD BD B4 C0 AF C1 B8 BB BA B1
.byte $C4, $B3, $BE, $B7, $B5, $C0, $B2, $BF, $B1, $BE, $BC, $B2, $BE, $B1, $C0, $B7 ; CPU:$97D2 PRG:17D2 C4 B3 BE B7 B5 C0 B2 BF B1 BE BC B2 BE B1 C0 B7
.byte $B6, $BA, $B3, $C2, $B1, $BB, $B7, $B6, $BE, $A1, $AA, $AD, $B7, $B6, $B7, $B3 ; CPU:$97E2 PRG:17E2 B6 BA B3 C2 B1 BB B7 B6 BE A1 AA AD B7 B6 B7 B3
.byte $B0, $C5, $B9, $B3, $AF, $AA, $A0, $AE, $B0, $B5, $B4, $AF, $B0, $B3, $B3, $A6 ; CPU:$97F2 PRG:17F2 B0 C5 B9 B3 AF AA A0 AE B0 B5 B4 AF B0 B3 B3 A6
.byte $AB, $A4, $9A, $A7, $A9, $B8, $BA, $B2, $B6, $B2, $AE, $A8, $A3, $B0, $9E, $B0 ; CPU:$9802 PRG:1802 AB A4 9A A7 A9 B8 BA B2 B6 B2 AE A8 A3 B0 9E B0
.byte $AF, $B9, $C0, $AB, $BB, $BE, $AB, $B4, $93, $B0, $A6, $AE, $CC, $AA, $CD, $BA ; CPU:$9812 PRG:1812 AF B9 C0 AB BB BE AB B4 93 B0 A6 AE CC AA CD BA
.byte $CD, $B7, $91, $B0, $BB, $8A, $C2, $A7, $C3, $CE, $A2, $D7, $9F, $7D, $CE, $8F ; CPU:$9822 PRG:1822 CD B7 91 B0 BB 8A C2 A7 C3 CE A2 D7 9F 7D CE 8F
.byte $98, $AC, $A5, $D4, $AE, $B8, $C9, $97, $9C, $B4, $8A, $9D, $AE, $AA, $D2, $B3 ; CPU:$9832 PRG:1832 98 AC A5 D4 AE B8 C9 97 9C B4 8A 9D AE AA D2 B3
.byte $BF, $C2, $A3, $9C, $C2, $89, $98, $CB, $AD, $D2, $BC, $BE, $C9, $86, $8D, $DB ; CPU:$9842 PRG:1842 BF C2 A3 9C C2 89 98 CB AD D2 BC BE C9 86 8D DB
.byte $8B, $8E, $D4, $B8, $DD, $BC, $BA, $D6, $6A, $6C, $B8, $B9, $75, $E4, $CE, $D4 ; CPU:$9852 PRG:1852 8B 8E D4 B8 DD BC BA D6 6A 6C B8 B9 75 E4 CE D4
.byte $D1, $98, $FB, $90, $6C, $66, $E0, $94, $B5, $E8, $9F, $D5, $99, $8C, $8B, $D1 ; CPU:$9862 PRG:1862 D1 98 FB 90 6C 66 E0 94 B5 E8 9F D5 99 8C 8B D1
.byte $92, $9E, $FF, $A3, $FF, $C0, $94, $F9, $72, $81, $51, $FD, $73, $CC, $EA, $81 ; CPU:$9872 PRG:1872 92 9E FF A3 FF C0 94 F9 72 81 51 FD 73 CC EA 81
.byte $EC, $8F, $73, $58, $B6, $B6, $6A, $FF, $81, $F7, $B0, $89, $C4, $58, $FC, $61 ; CPU:$9882 PRG:1882 EC 8F 73 58 B6 B6 6A FF 81 F7 B0 89 C4 58 FC 61
.byte $FF, $DD, $A6, $FF, $72, $C6, $A3, $9C, $D4, $73, $FF, $98, $E3, $DC, $8F, $A3 ; CPU:$9892 PRG:1892 FF DD A6 FF 72 C6 A3 9C D4 73 FF 98 E3 DC 8F A3
.byte $BE, $8B, $CF, $7B, $FF, $8B, $EB, $C8, $9F, $91, $CA, $76, $D0, $73, $FF, $85 ; CPU:$98A2 PRG:18A2 BE 8B CF 7B FF 8B EB C8 9F 91 CA 76 D0 73 FF 85
.byte $F5, $BB, $B2, $81, $D6, $5F, $CF, $6E, $FF, $8F, $EA, $C0, $A8, $94, $BE, $69 ; CPU:$98B2 PRG:18B2 F5 BB B2 81 D6 5F CF 6E FF 8F EA C0 A8 94 BE 69
.byte $D8, $8B, $E0, $CC, $C5, $DB, $8F, $B8, $A5, $66, $E3, $8C, $D7, $D8, $C0, $DA ; CPU:$98C2 PRG:18C2 D8 8B E0 CC C5 DB 8F B8 A5 66 E3 8C D7 D8 C0 DA
.byte $9B, $B8, $AC, $54, $C3, $A4, $C0, $EC, $B4, $C9, $B5, $A8, $B2, $56, $BA, $C6 ; CPU:$98D2 PRG:18D2 9B B8 AC 54 C3 A4 C0 EC B4 C9 B5 A8 B2 56 BA C6
.byte $9D, $DE, $CA, $A7, $C5, $B7, $9E, $6F, $BA, $C0, $A8, $C2, $D0, $AE, $B2, $B8 ; CPU:$98E2 PRG:18E2 9D DE CA A7 C5 B7 9E 6F BA C0 A8 C2 D0 AE B2 B8
.byte $AC, $7F, $B3, $C3, $B1, $B5, $BF, $B1, $B8, $AE, $AE, $AB, $B4, $AF, $BA, $B8 ; CPU:$98F2 PRG:18F2 AC 7F B3 C3 B1 B5 BF B1 B8 AE AE AB B4 AF BA B8
.byte $A8, $B4, $BA, $B1, $AF, $B6, $B4, $AB, $B6, $B3, $AB, $B4, $B4, $B5, $B1, $B2 ; CPU:$9902 PRG:1902 A8 B4 BA B1 AF B6 B4 AB B6 B3 AB B4 B4 B5 B1 B2
.byte $B3, $AF, $B4, $B1, $AD, $B1, $B5, $B5, $B1, $B3, $B3, $B0, $B0, $B2, $AA, $B3 ; CPU:$9912 PRG:1912 B3 AF B4 B1 AD B1 B5 B5 B1 B3 B3 B0 B0 B2 AA B3
.byte $B4, $B3, $B1, $B4, $B4, $B1, $B0, $AF, $AB, $B2, $B0, $B6, $B0, $B5, $B8, $B2 ; CPU:$9922 PRG:1922 B4 B3 B1 B4 B4 B1 B0 AF AB B2 B0 B6 B0 B5 B8 B2
.byte $AF, $B1, $AD, $AF, $B0, $B5, $B1, $B5, $B6, $B1, $B1, $B1, $AE, $AF, $B0, $B3 ; CPU:$9932 PRG:1932 AF B1 AD AF B0 B5 B1 B5 B6 B1 B1 B1 AE AF B0 B3
.byte $B3, $B5, $B4, $B2, $B2, $AF, $B1, $B1, $AE, $B2, $B4, $B2, $B1, $B4, $B3, $AE ; CPU:$9942 PRG:1942 B3 B5 B4 B2 B2 AF B1 B1 AE B2 B4 B2 B1 B4 B3 AE
.byte $B1, $B2, $AC, $B1, $B3, $B3, $B2, $B1, $B4, $B0, $B2, $B3, $AF, $B0, $B0, $B5 ; CPU:$9952 PRG:1952 B1 B2 AC B1 B3 B3 B2 B1 B4 B0 B2 B3 AF B0 B0 B5
.byte $B2, $AF, $B6, $B1, $B2, $B3, $B0, $AE, $B1, $B2, $B2, $B1, $B1, $B3, $B4, $AF ; CPU:$9962 PRG:1962 B2 AF B6 B1 B2 B3 B0 AE B1 B2 B2 B1 B1 B3 B4 AF
.byte $B1, $B1, $AD, $B1, $B3, $B1, $B1, $B2, $B4, $B3, $B1, $B1, $B0, $AF, $AF, $B4 ; CPU:$9972 PRG:1972 B1 B1 AD B1 B3 B1 B1 B2 B4 B3 B1 B1 B0 AF AF B4
.byte $B2, $AF, $B5, $B2, $AF, $B4, $AF, $AD, $AF, $B0, $B5, $B1, $B0, $B4, $B0, $AD ; CPU:$9982 PRG:1982 B2 AF B5 B2 AF B4 AF AD AF B0 B5 B1 B0 B4 B0 AD
.byte $B3, $B0, $AC, $B1, $B1, $B3, $B3, $B0, $B3, $AF, $AB, $B4, $B0, $AE, $B0, $AE ; CPU:$9992 PRG:1992 B3 B0 AC B1 B1 B3 B3 B0 B3 AF AB B4 B0 AE B0 AE
.byte $B6, $B2, $B0, $B3, $AE, $B0, $B1, $B4, $B2, $AA, $AF, $B8, $B4, $B1, $B4, $B1 ; CPU:$99A2 PRG:19A2 B6 B2 B0 B3 AE B0 B1 B4 B2 AA AF B8 B4 B1 B4 B1
.byte $B4, $A8, $BC, $BB, $9C, $AD, $C4, $B4, $B0, $BB, $A6, $AD, $B0, $C7, $C0, $9E ; CPU:$99B2 PRG:19B2 B4 A8 BC BB 9C AD C4 B4 B0 BB A6 AD B0 C7 C0 9E
.byte $A9, $C5, $AB, $A6, $C4, $AB, $A4, $B4, $D3, $C1, $96, $A8, $CA, $A4, $9E, $CD ; CPU:$99C2 PRG:19C2 A9 C5 AB A6 C4 AB A4 B4 D3 C1 96 A8 CA A4 9E CD
.byte $AE, $9E, $B6, $E2, $C1, $89, $A7, $D1, $9F, $96, $D3, $C4, $85, $98, $E4, $CA ; CPU:$99D2 PRG:19D2 AE 9E B6 E2 C1 89 A7 D1 9F 96 D3 C4 85 98 E4 CA
.byte $7A, $A2, $DE, $A6, $91, $C8, $D5, $59, $6B, $FF, $EC, $74, $9F, $E7, $AB, $81 ; CPU:$99E2 PRG:19E2 7A A2 DE A6 91 C8 D5 59 6B FF EC 74 9F E7 AB 81
.byte $C2, $F7, $5E, $4B, $F9, $FF, $79, $7E, $EF, $CB, $56, $A8, $FF, $A6, $12, $C5 ; CPU:$99F2 PRG:19F2 C2 F7 5E 4B F9 FF 79 7E EF CB 56 A8 FF A6 12 C5
.byte $FF, $87, $3B, $FA, $F7, $46, $88, $FF, $E9, $08, $8F, $FF, $D9, $2D, $C4, $FF ; CPU:$9A02 PRG:1A02 FF 87 3B FA F7 46 88 FF E9 08 8F FF D9 2D C4 FF
.byte $5A, $36, $FF, $FF, $5A, $38, $FE, $F9, $71, $A6, $FF, $9A, $39, $C2, $FF, $99 ; CPU:$9A12 PRG:1A12 5A 36 FF FF 5A 38 FE F9 71 A6 FF 9A 39 C2 FF 99
.byte $99, $B9, $76, $9A, $FF, $C0, $7A, $B4, $A5, $8A, $CC, $F0, $C2, $8F, $2C, $A7 ; CPU:$9A22 PRG:1A22 99 B9 76 9A FF C0 7A B4 A5 8A CC F0 C2 8F 2C A7
.byte $FF, $C7, $A2, $B1, $9F, $76, $BE, $FF, $A8, $94, $A5, $3D, $DE, $FF, $8A, $64 ; CPU:$9A32 PRG:1A32 FF C7 A2 B1 9F 76 BE FF A8 94 A5 3D DE FF 8A 64
.byte $C6, $83, $8C, $FF, $FF, $53, $85, $DD, $3B, $F0, $FF, $39, $21, $FC, $B0, $93 ; CPU:$9A42 PRG:1A42 C6 83 8C FF FF 53 85 DD 3B F0 FF 39 21 FC B0 93
.byte $FF, $D6, $1B, $AD, $FF, $27, $FF, $FF, $00, $65, $FF, $86, $86, $FF, $8A, $0D ; CPU:$9A52 PRG:1A52 FF D6 1B AD FF 27 FF FF 00 65 FF 86 86 FF 8A 0D
.byte $FF, $FF, $00, $FF, $FF, $00, $C5, $FF, $4F, $8C, $FF, $6E, $2F, $FF, $D1, $04 ; CPU:$9A62 PRG:1A62 FF FF 00 FF FF 00 C5 FF 4F 8C FF 6E 2F FF D1 04
.byte $E7, $FF, $6F, $4B, $FF, $7D, $9D, $FF, $7E, $5D, $FF, $C8, $C1, $84, $8B, $FF ; CPU:$9A72 PRG:1A72 E7 FF 6F 4B FF 7D 9D FF 7E 5D FF C8 C1 84 8B FF
.byte $F5, $23, $D7, $D7, $76, $FF, $BD, $52, $F1, $F3, $AF, $76, $76, $FF, $E3, $0D ; CPU:$9A82 PRG:1A82 F5 23 D7 D7 76 FF BD 52 F1 F3 AF 76 76 FF E3 0D
.byte $CC, $E8, $A1, $F9, $B5, $53, $D7, $FF, $9C, $A4, $2D, $FF, $FF, $26, $29, $FF ; CPU:$9A92 PRG:1A92 CC E8 A1 F9 B5 53 D7 FF 9C A4 2D FF FF 26 29 FF
.byte $AD, $B1, $F5, $1C, $D3, $FF, $63, $A2, $BA, $0D, $FF, $F3, $00, $E8, $FF, $7C ; CPU:$9AA2 PRG:1AA2 AD B1 F5 1C D3 FF 63 A2 BA 0D FF F3 00 E8 FF 7C
.byte $A3, $B4, $65, $FF, $D9, $1B, $FF, $C7, $01, $FF, $79, $00, $FF, $FF, $29, $C8 ; CPU:$9AB2 PRG:1AB2 A3 B4 65 FF D9 1B FF C7 01 FF 79 00 FF FF 29 C8
.byte $D1, $8B, $FF, $6B, $61, $FF, $79, $00, $FF, $A5, $00, $FF, $FF, $4C, $CC, $B7 ; CPU:$9AC2 PRG:1AC2 D1 8B FF 6B 61 FF 79 00 FF A5 00 FF FF 4C CC B7
.byte $7B, $FF, $81, $8A, $FF, $86, $65, $DC, $FF, $0A, $36, $FF, $85, $88, $C2, $BC ; CPU:$9AD2 PRG:1AD2 7B FF 81 8A FF 86 65 DC FF 0A 36 FF 85 88 C2 BC
.byte $DF, $B7, $80, $AC, $FF, $67, $5B, $FF, $FF, $0F, $6C, $FF, $67, $7F, $CB, $AA ; CPU:$9AE2 PRG:1AE2 DF B7 80 AC FF 67 5B FF FF 0F 6C FF 67 7F CB AA
.byte $FF, $92, $73, $EC, $FB, $47, $87, $FF, $FF, $01, $43, $FF, $9A, $33, $D3, $F3 ; CPU:$9AF2 PRG:1AF2 FF 92 73 EC FB 47 87 FF FF 01 43 FF 9A 33 D3 F3
.byte $CC, $89, $7F, $EC, $FF, $28, $9A, $B7, $FF, $14, $00, $FF, $FE, $00, $D0, $FF ; CPU:$9B02 PRG:1B02 CC 89 7F EC FF 28 9A B7 FF 14 00 FF FE 00 D0 FF
.byte $87, $88, $8B, $EC, $FF, $27, $8A, $F9, $FF, $B7, $11, $FF, $FF, $00, $51, $FF ; CPU:$9B12 PRG:1B12 87 88 8B EC FF 27 8A F9 FF B7 11 FF FF 00 51 FF
.byte $B3, $59, $A8, $E4, $EC, $95, $4D, $FF, $4E, $FF, $67, $00, $FF, $F1, $00, $FF ; CPU:$9B22 PRG:1B22 B3 59 A8 E4 EC 95 4D FF 4E FF 67 00 FF F1 00 FF
.byte $FF, $30, $B7, $DF, $D8, $ED, $5B, $AF, $FF, $63, $FF, $4B, $1E, $FF, $79, $00 ; CPU:$9B32 PRG:1B32 FF 30 B7 DF D8 ED 5B AF FF 63 FF 4B 1E FF 79 00
.byte $FF, $FF, $36, $EA, $DE, $C7, $E1, $52, $ED, $E4, $5C, $FF, $2D, $38, $FF, $47 ; CPU:$9B42 PRG:1B42 FF FF 36 EA DE C7 E1 52 ED E4 5C FF 2D 38 FF 47
.byte $05, $FF, $C2, $3F, $F9, $D0, $DA, $D0, $41, $FF, $D4, $0B, $FF, $36, $00, $FF ; CPU:$9B52 PRG:1B52 05 FF C2 3F F9 D0 DA D0 41 FF D4 0B FF 36 00 FF
.byte $5C, $00, $FF, $CB, $46, $F4, $BF, $E5, $D5, $46, $FF, $CE, $00, $FF, $53, $00 ; CPU:$9B62 PRG:1B62 5C 00 FF CB 46 F4 BF E5 D5 46 FF CE 00 FF 53 00
.byte $FF, $F5, $00, $FF, $FF, $3B, $E1, $BF, $E2, $E0, $3F, $F1, $F8, $1F, $FF, $FF ; CPU:$9B72 PRG:1B72 FF F5 00 FF FF 3B E1 BF E2 E0 3F F1 F8 1F FF FF
.byte $00, $F2, $FF, $00, $84, $FF, $71, $91, $9A, $CD, $FB, $6E, $7E, $FF, $83, $0D ; CPU:$9B82 PRG:1B82 00 F2 FF 00 84 FF 71 91 9A CD FB 6E 7E FF 83 0D
.byte $FF, $25, $00, $FF, $D7, $00, $FF, $FF, $59, $A5, $C6, $FF, $BE, $4E, $EF, $EA ; CPU:$9B92 PRG:1B92 FF 25 00 FF D7 00 FF FF 59 A5 C6 FF BE 4E EF EA
.byte $3A, $64, $FF, $00, $14, $FF, $4B, $00, $FF, $FF, $63, $72, $EE, $FF, $74, $8A ; CPU:$9BA2 PRG:1BA2 3A 64 FF 00 14 FF 4B 00 FF FF 63 72 EE FF 74 8A
.byte $FF, $B7, $70, $5B, $FF, $00, $00, $FF, $AA, $00, $FF, $FF, $42, $64, $FF, $F3 ; CPU:$9BB2 PRG:1BB2 FF B7 70 5B FF 00 00 FF AA 00 FF FF 42 64 FF F3
.byte $77, $9B, $EF, $C6, $78, $88, $FF, $CD, $00, $FF, $FF, $00, $BD, $FF, $61, $51 ; CPU:$9BC2 PRG:1BC2 77 9B EF C6 78 88 FF CD 00 FF FF 00 BD FF 61 51
.byte $FF, $FF, $A5, $76, $D2, $F8, $69, $8D, $8D, $FF, $00, $00, $FF, $95, $00, $FF ; CPU:$9BD2 PRG:1BD2 FF FF A5 76 D2 F8 69 8D 8D FF 00 00 FF 95 00 FF
.byte $FF, $0F, $7D, $FF, $E9, $5D, $9C, $F0, $7F, $3D, $75, $69, $42, $BE ; CPU:$9BE2 PRG:1BE2 FF 0F 7D FF E9 5D 9C F0 7F 3D 75 69 42 BE
; -----------------------------------------------------------------------------
; Routine: Sub_9BF0
; Global: Branch target inside Sub: taken when 9BF0.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9BF0:
jmp Sub_9C1A ; CPU:$9BF0 PRG:1BF0 4C 1A 9C
; -----------------------------------------------------------------------------
; Routine: Sub_9BF3
; Global: Branch target inside Sub: taken when 9BF3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9BF3:
jmp Sub_9BF9 ; CPU:$9BF3 PRG:1BF3 4C F9 9B
; -----------------------------------------------------------------------------
; Routine: Sub_9BF6
; Global: Branch target inside Sub: taken when 9BF6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9BF6:
jmp Sub_9DA8 ; CPU:$9BF6 PRG:1BF6 4C A8 9D
; -----------------------------------------------------------------------------
; Routine: Sub_9BF9
; Global: Branch target inside Sub: taken when 9BF9.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9BF9:
ldx #$BC ; CPU:$9BF9 PRG:1BF9 A2 BC
lda #$00 ; CPU:$9BFB PRG:1BFB A9 00
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero4
; Global: Branch target inside Sub: taken when OnNonzero4.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero4:
sta $05FF,x ; CPU:$9BFD PRG:1BFD 9D FF 05
dex ; CPU:$9C00 PRG:1C00 CA
bne Sub_OnNonzero4 ; CPU:$9C01 PRG:1C01 D0 FA
ldx #$10 ; CPU:$9C03 PRG:1C03 A2 10
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonnegative2
; Global: Branch target inside Sub: taken when OnNonnegative2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonnegative2:
sta APUPULSE1CTRL,x ; CPU:$9C05 PRG:1C05 9D 00 40
dex ; CPU:$9C08 PRG:1C08 CA
bpl Sub_OnNonnegative2 ; CPU:$9C09 PRG:1C09 10 FA
sta APUDMCADDR ; CPU:$9C0B PRG:1C0B 8D 12 40
sta APUDMCLENGTH ; CPU:$9C0E PRG:1C0E 8D 13 40
jsr Sub_9DCC ; CPU:$9C11 PRG:1C11 20 CC 9D
lda #$00 ; CPU:$9C14 PRG:1C14 A9 00
sta $066B ; CPU:$9C16 PRG:1C16 8D 6B 06
rts ; CPU:$9C19 PRG:1C19 60
; -----------------------------------------------------------------------------
; Routine: Sub_9C1A
; Global: Branch target inside Sub: taken when 9C1A.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9C1A:
jsr Sub_9C3A ; CPU:$9C1A PRG:1C1A 20 3A 9C
jsr Sub_9DDE ; CPU:$9C1D PRG:1C1D 20 DE 9D
lda #$00 ; CPU:$9C20 PRG:1C20 A9 00
sta ZpD0 ; CPU:$9C22 PRG:1C22 85 D0
ldx #$5C ; CPU:$9C24 PRG:1C24 A2 5C
lda $066A ; CPU:$9C26 PRG:1C26 AD 6A 06
beq Sub_Loop2 ; CPU:$9C29 PRG:1C29 F0 03
jsr Sub_9FAA ; CPU:$9C2B PRG:1C2B 20 AA 9F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop2
; Global: Branch target inside Sub: taken when Loop2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop2:
ldx $066B ; CPU:$9C2E PRG:1C2E AE 6B 06
lda $060E,x ; CPU:$9C31 PRG:1C31 BD 0E 06
beq Sub_Loop3 ; CPU:$9C34 PRG:1C34 F0 03
jsr Sub_9F4C ; CPU:$9C36 PRG:1C36 20 4C 9F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop3
; Global: Branch target inside Sub: taken when Loop3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop3:
rts ; CPU:$9C39 PRG:1C39 60
; -----------------------------------------------------------------------------
; Routine: Sub_9C3A
; Global: Branch target inside Sub: taken when 9C3A.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9C3A:
ldy $066B ; CPU:$9C3A PRG:1C3A AC 6B 06
lda $060E,y ; CPU:$9C3D PRG:1C3D B9 0E 06
bne Sub_Loop4 ; CPU:$9C40 PRG:1C40 D0 06
sta $0607,y ; CPU:$9C42 PRG:1C42 99 07 06
jmp Sub_9CCA ; CPU:$9C45 PRG:1C45 4C CA 9C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop4
; Global: Branch target inside Sub: taken when Loop4.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop4:
lda $0663 ; CPU:$9C48 PRG:1C48 AD 63 06
and #$07 ; CPU:$9C4B PRG:1C4B 29 07
ora $0607,y ; CPU:$9C4D PRG:1C4D 19 07 06
jsr Sub_9DCC ; CPU:$9C50 PRG:1C50 20 CC 9D
lda $06B9 ; CPU:$9C53 PRG:1C53 AD B9 06
bne Sub_Loop6 ; CPU:$9C56 PRG:1C56 D0 09
lda $066A ; CPU:$9C58 PRG:1C58 AD 6A 06
bne Sub_Loop5 ; CPU:$9C5B PRG:1C5B D0 01
rts ; CPU:$9C5D PRG:1C5D 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop5
; Global: Branch target inside Sub: taken when Loop5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop5:
jmp Sub_Loop13 ; CPU:$9C5E PRG:1C5E 4C DE 9C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop6
; Global: Branch target inside Sub: taken when Loop6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop6:
lda $0607,y ; CPU:$9C61 PRG:1C61 B9 07 06
lsr a ; CPU:$9C64 PRG:1C64 4A
bcc Sub_Loop7 ; CPU:$9C65 PRG:1C65 90 18
ldx $0608,y ; CPU:$9C67 PRG:1C67 BE 08 06
stx APUPULSE1CTRL ; CPU:$9C6A PRG:1C6A 8E 00 40
ldx $062C,y ; CPU:$9C6D PRG:1C6D BE 2C 06
stx APUPULSE1SWEEP ; CPU:$9C70 PRG:1C70 8E 01 40
ldx $0600,y ; CPU:$9C73 PRG:1C73 BE 00 06
stx APUPULSE1TIMERLO ; CPU:$9C76 PRG:1C76 8E 02 40
ldx $0601,y ; CPU:$9C79 PRG:1C79 BE 01 06
stx APUPULSE1TIMERHI ; CPU:$9C7C PRG:1C7C 8E 03 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop7
; Global: Branch target inside Sub: taken when Loop7.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop7:
lsr a ; CPU:$9C7F PRG:1C7F 4A
bcc Sub_Loop8 ; CPU:$9C80 PRG:1C80 90 18
ldx $0609,y ; CPU:$9C82 PRG:1C82 BE 09 06
stx APUPULSE2CTRL ; CPU:$9C85 PRG:1C85 8E 04 40
ldx $062D,y ; CPU:$9C88 PRG:1C88 BE 2D 06
stx APUPULSE2SWEEP ; CPU:$9C8B PRG:1C8B 8E 05 40
ldx $0602,y ; CPU:$9C8E PRG:1C8E BE 02 06
stx APUPULSE2TIMERLO ; CPU:$9C91 PRG:1C91 8E 06 40
ldx $0603,y ; CPU:$9C94 PRG:1C94 BE 03 06
stx APUPULSE2TIMERHI ; CPU:$9C97 PRG:1C97 8E 07 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop8
; Global: Branch target inside Sub: taken when Loop8.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop8:
lsr a ; CPU:$9C9A PRG:1C9A 4A
bcc Sub_Loop9 ; CPU:$9C9B PRG:1C9B 90 12
ldx $060A,y ; CPU:$9C9D PRG:1C9D BE 0A 06
stx APUTRIANGLECTRL ; CPU:$9CA0 PRG:1CA0 8E 08 40
ldx $0604,y ; CPU:$9CA3 PRG:1CA3 BE 04 06
stx APUTRIANGLETIMERLO ; CPU:$9CA6 PRG:1CA6 8E 0A 40
ldx $0605,y ; CPU:$9CA9 PRG:1CA9 BE 05 06
stx APUTRIANGLETIMERHI ; CPU:$9CAC PRG:1CAC 8E 0B 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop9
; Global: Branch target inside Sub: taken when Loop9.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop9:
lsr a ; CPU:$9CAF PRG:1CAF 4A
bcc Sub_Loop10 ; CPU:$9CB0 PRG:1CB0 90 12
lda $0606,y ; CPU:$9CB2 PRG:1CB2 B9 06 06
sta APUNOISECTRL ; CPU:$9CB5 PRG:1CB5 8D 0C 40
lda $060B,y ; CPU:$9CB8 PRG:1CB8 B9 0B 06
sta APUNOISEPERIOD ; CPU:$9CBB PRG:1CBB 8D 0E 40
lda $060C,y ; CPU:$9CBE PRG:1CBE B9 0C 06
sta APUNOISELENGTH ; CPU:$9CC1 PRG:1CC1 8D 0F 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop10
; Global: Branch target inside Sub: taken when Loop10.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop10:
lda $066A ; CPU:$9CC4 PRG:1CC4 AD 6A 06
bne Sub_Loop13 ; CPU:$9CC7 PRG:1CC7 D0 15
rts ; CPU:$9CC9 PRG:1CC9 60
; -----------------------------------------------------------------------------
; Routine: Sub_9CCA
; Global: Branch target inside Sub: taken when 9CCA.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9CCA:
lda $066A ; CPU:$9CCA PRG:1CCA AD 6A 06
bne Sub_Loop11 ; CPU:$9CCD PRG:1CCD D0 04
jsr Sub_9DCC ; CPU:$9CCF PRG:1CCF 20 CC 9D
rts ; CPU:$9CD2 PRG:1CD2 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop11
; Global: Branch target inside Sub: taken when Loop11.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop11:
lda #$0F ; CPU:$9CD3 PRG:1CD3 A9 0F
ldx $06BB ; CPU:$9CD5 PRG:1CD5 AE BB 06
bne Sub_Loop12 ; CPU:$9CD8 PRG:1CD8 D0 01
lsr a ; CPU:$9CDA PRG:1CDA 4A
; -----------------------------------------------------------------------------
; Routine: Sub_Loop12
; Global: Branch target inside Sub: taken when Loop12.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop12:
jsr Sub_9DCC ; CPU:$9CDB PRG:1CDB 20 CC 9D
; -----------------------------------------------------------------------------
; Routine: Sub_Loop13
; Global: Branch target inside Sub: taken when Loop13.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop13:
lda $0682 ; CPU:$9CDE PRG:1CDE AD 82 06
ora $0698 ; CPU:$9CE1 PRG:1CE1 0D 98 06
ora $06AE ; CPU:$9CE4 PRG:1CE4 0D AE 06
ora $06BB ; CPU:$9CE7 PRG:1CE7 0D BB 06
bne Sub_Loop14 ; CPU:$9CEA PRG:1CEA D0 01
rts ; CPU:$9CEC PRG:1CEC 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop14
; Global: Branch target inside Sub: taken when Loop14.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop14:
lda $0607,y ; CPU:$9CED PRG:1CED B9 07 06
lsr a ; CPU:$9CF0 PRG:1CF0 4A
bcs Sub_Loop17 ; CPU:$9CF1 PRG:1CF1 B0 23
bit $0683 ; CPU:$9CF3 PRG:1CF3 2C 83 06
bmi Sub_Loop15 ; CPU:$9CF6 PRG:1CF6 30 07
lda $0682 ; CPU:$9CF8 PRG:1CF8 AD 82 06
beq Sub_Loop17 ; CPU:$9CFB PRG:1CFB F0 19
bpl Sub_Loop16 ; CPU:$9CFD PRG:1CFD 10 11
; -----------------------------------------------------------------------------
; Routine: Sub_Loop15
; Global: Branch target inside Sub: taken when Loop15.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop15:
lda #$08 ; CPU:$9CFF PRG:1CFF A9 08
sta APUPULSE1SWEEP ; CPU:$9D01 PRG:1D01 8D 01 40
lda $065C ; CPU:$9D04 PRG:1D04 AD 5C 06
sta APUPULSE1TIMERLO ; CPU:$9D07 PRG:1D07 8D 02 40
lda $065D ; CPU:$9D0A PRG:1D0A AD 5D 06
sta APUPULSE1TIMERHI ; CPU:$9D0D PRG:1D0D 8D 03 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop16
; Global: Branch target inside Sub: taken when Loop16.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop16:
lda $0664 ; CPU:$9D10 PRG:1D10 AD 64 06
sta APUPULSE1CTRL ; CPU:$9D13 PRG:1D13 8D 00 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop17
; Global: Branch target inside Sub: taken when Loop17.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop17:
lda $0607,y ; CPU:$9D16 PRG:1D16 B9 07 06
and #$02 ; CPU:$9D19 PRG:1D19 29 02
bne Sub_Loop20 ; CPU:$9D1B PRG:1D1B D0 23
bit $0699 ; CPU:$9D1D PRG:1D1D 2C 99 06
bmi Sub_Loop18 ; CPU:$9D20 PRG:1D20 30 07
lda $0698 ; CPU:$9D22 PRG:1D22 AD 98 06
beq Sub_Loop20 ; CPU:$9D25 PRG:1D25 F0 19
bpl Sub_Loop19 ; CPU:$9D27 PRG:1D27 10 11
; -----------------------------------------------------------------------------
; Routine: Sub_Loop18
; Global: Branch target inside Sub: taken when Loop18.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop18:
lda #$08 ; CPU:$9D29 PRG:1D29 A9 08
sta APUPULSE2SWEEP ; CPU:$9D2B PRG:1D2B 8D 05 40
lda $065E ; CPU:$9D2E PRG:1D2E AD 5E 06
sta APUPULSE2TIMERLO ; CPU:$9D31 PRG:1D31 8D 06 40
lda $065F ; CPU:$9D34 PRG:1D34 AD 5F 06
sta APUPULSE2TIMERHI ; CPU:$9D37 PRG:1D37 8D 07 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop19
; Global: Branch target inside Sub: taken when Loop19.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop19:
lda $0665 ; CPU:$9D3A PRG:1D3A AD 65 06
sta APUPULSE2CTRL ; CPU:$9D3D PRG:1D3D 8D 04 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop20
; Global: Branch target inside Sub: taken when Loop20.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop20:
lda $0607,y ; CPU:$9D40 PRG:1D40 B9 07 06
and #$04 ; CPU:$9D43 PRG:1D43 29 04
bne Sub_Loop24 ; CPU:$9D45 PRG:1D45 D0 2A
bit $06AF ; CPU:$9D47 PRG:1D47 2C AF 06
bmi Sub_Loop21 ; CPU:$9D4A PRG:1D4A 30 07
lda $06AE ; CPU:$9D4C PRG:1D4C AD AE 06
beq Sub_Loop24 ; CPU:$9D4F PRG:1D4F F0 20
bpl Sub_Loop22 ; CPU:$9D51 PRG:1D51 10 0C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop21
; Global: Branch target inside Sub: taken when Loop21.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop21:
lda $0660 ; CPU:$9D53 PRG:1D53 AD 60 06
sta APUTRIANGLETIMERLO ; CPU:$9D56 PRG:1D56 8D 0A 40
lda $0661 ; CPU:$9D59 PRG:1D59 AD 61 06
sta APUTRIANGLETIMERHI ; CPU:$9D5C PRG:1D5C 8D 0B 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop22
; Global: Branch target inside Sub: taken when Loop22.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop22:
lda $0666 ; CPU:$9D5F PRG:1D5F AD 66 06
and #$0F ; CPU:$9D62 PRG:1D62 29 0F
bne Sub_Loop23 ; CPU:$9D64 PRG:1D64 D0 06
sta APUTRIANGLECTRL ; CPU:$9D66 PRG:1D66 8D 08 40
jmp Sub_Loop24 ; CPU:$9D69 PRG:1D69 4C 71 9D
; -----------------------------------------------------------------------------
; Routine: Sub_Loop23
; Global: Branch target inside Sub: taken when Loop23.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop23:
lda #$81 ; CPU:$9D6C PRG:1D6C A9 81
sta APUTRIANGLECTRL ; CPU:$9D6E PRG:1D6E 8D 08 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop24
; Global: Branch target inside Sub: taken when Loop24.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop24:
lda $06BB ; CPU:$9D71 PRG:1D71 AD BB 06
beq Sub_Loop26 ; CPU:$9D74 PRG:1D74 F0 31
lda $0663 ; CPU:$9D76 PRG:1D76 AD 63 06
and #$08 ; CPU:$9D79 PRG:1D79 29 08
beq Sub_Loop26 ; CPU:$9D7B PRG:1D7B F0 2A
lda $0607,y ; CPU:$9D7D PRG:1D7D B9 07 06
and #$08 ; CPU:$9D80 PRG:1D80 29 08
bne Sub_Loop26 ; CPU:$9D82 PRG:1D82 D0 23
lda $0662 ; CPU:$9D84 PRG:1D84 AD 62 06
asl a ; CPU:$9D87 PRG:1D87 0A
lda $06BB ; CPU:$9D88 PRG:1D88 AD BB 06
bcc Sub_Loop25 ; CPU:$9D8B PRG:1D8B 90 01
asl a ; CPU:$9D8D PRG:1D8D 0A
; -----------------------------------------------------------------------------
; Routine: Sub_Loop25
; Global: Branch target inside Sub: taken when Loop25.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop25:
adc $0662 ; CPU:$9D8E PRG:1D8E 6D 62 06
ora #$30 ; CPU:$9D91 PRG:1D91 09 30
and #$7F ; CPU:$9D93 PRG:1D93 29 7F
sta APUNOISECTRL ; CPU:$9D95 PRG:1D95 8D 0C 40
lda $0667 ; CPU:$9D98 PRG:1D98 AD 67 06
sta APUNOISEPERIOD ; CPU:$9D9B PRG:1D9B 8D 0E 40
lda $0668 ; CPU:$9D9E PRG:1D9E AD 68 06
sta APUNOISELENGTH ; CPU:$9DA1 PRG:1DA1 8D 0F 40
dec $06BB ; CPU:$9DA4 PRG:1DA4 CE BB 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop26
; Global: Branch target inside Sub: taken when Loop26.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop26:
rts ; CPU:$9DA7 PRG:1DA7 60
; -----------------------------------------------------------------------------
; Routine: Sub_9DA8
; Global: Branch target inside Sub: taken when 9DA8.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9DA8:
tay ; CPU:$9DA8 PRG:1DA8 A8
dey ; CPU:$9DA9 PRG:1DA9 88
lda #$00 ; CPU:$9DAA PRG:1DAA A9 00
jsr Sub_9DCC ; CPU:$9DAC PRG:1DAC 20 CC 9D
ldx #$5C ; CPU:$9DAF PRG:1DAF A2 5C
lda $066A ; CPU:$9DB1 PRG:1DB1 AD 6A 06
beq Sub_Loop27 ; CPU:$9DB4 PRG:1DB4 F0 0E
lda $9DC5,y ; CPU:$9DB6 PRG:1DB6 B9 C5 9D
sta $066D ; CPU:$9DB9 PRG:1DB9 8D 6D 06
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero5
; Global: Branch target inside Sub: taken when OnNonzero5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero5:
jsr Sub_9FAA ; CPU:$9DBC PRG:1DBC 20 AA 9F
dec $066D ; CPU:$9DBF PRG:1DBF CE 6D 06
bne Sub_OnNonzero5 ; CPU:$9DC2 PRG:1DC2 D0 F8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop27
; Global: Branch target inside Sub: taken when Loop27.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop27:
rts ; CPU:$9DC4 PRG:1DC4 60
; ---- data $9DC5-$9DCB (7 bytes) ----
; referenced by `lda $9DC5,y` at $9DB6 (operand $9DC5 falls inside this region)
WrestlerNameLengthTable:
.byte $0B, $0B, $0E, $0E, $08, $0B, $0B ; CPU:$9DC5 PRG:-223B 0B 0B 0E 0E 08 0B 0B
; -----------------------------------------------------------------------------
; Routine: Sub_9DCC
; Global: Branch target inside Sub: taken when 9DCC.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9DCC:
bit $9F49 ; CPU:$9DCC PRG:1DCC 2C 49 9F
bne Sub_Loop28 ; CPU:$9DCF PRG:1DCF D0 09
ora #$04 ; CPU:$9DD1 PRG:1DD1 09 04
pha ; CPU:$9DD3 PRG:1DD3 48
lda #$00 ; CPU:$9DD4 PRG:1DD4 A9 00
sta APUTRIANGLECTRL ; CPU:$9DD6 PRG:1DD6 8D 08 40
pla ; CPU:$9DD9 PRG:1DD9 68
; -----------------------------------------------------------------------------
; Routine: Sub_Loop28
; Global: Branch target inside Sub: taken when Loop28.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop28:
sta APUSTATUS ; CPU:$9DDA PRG:1DDA 8D 15 40
rts ; CPU:$9DDD PRG:1DDD 60
; -----------------------------------------------------------------------------
; Routine: Sub_9DDE
; Global: Branch target inside Sub: taken when 9DDE.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9DDE:
ldx ZpD0 ; CPU:$9DDE PRG:1DDE A6 D0
bne Sub_Loop29 ; CPU:$9DE0 PRG:1DE0 D0 01
rts ; CPU:$9DE2 PRG:1DE2 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop29
; Global: Branch target inside Sub: taken when Loop29.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop29:
cpx #$11 ; CPU:$9DE3 PRG:1DE3 E0 11
bne Sub_Loop30 ; CPU:$9DE5 PRG:1DE5 D0 04
lda #$80 ; CPU:$9DE7 PRG:1DE7 A9 80
bmi Sub_Loop31 ; CPU:$9DE9 PRG:1DE9 30 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop30
; Global: Branch target inside Sub: taken when Loop30.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop30:
cpx #$12 ; CPU:$9DEB PRG:1DEB E0 12
bne Sub_Loop32 ; CPU:$9DED PRG:1DED D0 0A
lda #$40 ; CPU:$9DEF PRG:1DEF A9 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop31
; Global: Branch target inside Sub: taken when Loop31.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop31:
sta $066E ; CPU:$9DF1 PRG:1DF1 8D 6E 06
lda #$00 ; CPU:$9DF4 PRG:1DF4 A9 00
sta ZpD0 ; CPU:$9DF6 PRG:1DF6 85 D0
rts ; CPU:$9DF8 PRG:1DF8 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop32
; Global: Branch target inside Sub: taken when Loop32.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop32:
ldx ZpD0 ; CPU:$9DF9 PRG:1DF9 A6 D0
bmi Sub_Loop33 ; CPU:$9DFB PRG:1DFB 30 05
cpx #$14 ; CPU:$9DFD PRG:1DFD E0 14
bcc Sub_Loop33 ; CPU:$9DFF PRG:1DFF 90 01
rts ; CPU:$9E01 PRG:1E01 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop33
; Global: Branch target inside Sub: taken when Loop33.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop33:
dex ; CPU:$9E02 PRG:1E02 CA
txa ; CPU:$9E03 PRG:1E03 8A
asl a ; CPU:$9E04 PRG:1E04 0A
tay ; CPU:$9E05 PRG:1E05 A8
lda $A409,y ; CPU:$9E06 PRG:1E06 B9 09 A4
sta RingPtrLo ; CPU:$9E09 PRG:1E09 85 D1
lda $A40A,y ; CPU:$9E0B PRG:1E0B B9 0A A4
sta RingPtrHi ; CPU:$9E0E PRG:1E0E 85 D2
ldy #$00 ; CPU:$9E10 PRG:1E10 A0 00
lda (RingPtrLo),y ; CPU:$9E12 PRG:1E12 B1 D1
sta ZpDC ; CPU:$9E14 PRG:1E14 85 DC
bit ZpDC ; CPU:$9E16 PRG:1E16 24 DC
bpl Sub_Loop34 ; CPU:$9E18 PRG:1E18 10 03
jmp Sub_9ECB ; CPU:$9E1A PRG:1E1A 4C CB 9E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop34
; Global: Branch target inside Sub: taken when Loop34.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop34:
bcc Sub_Loop35 ; CPU:$9E1D PRG:1E1D 90 03
jmp Sub_9E78 ; CPU:$9E1F PRG:1E1F 4C 78 9E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop35
; Global: Branch target inside Sub: taken when Loop35.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop35:
ldx $066B ; CPU:$9E22 PRG:1E22 AE 6B 06
lda $060E,x ; CPU:$9E25 PRG:1E25 BD 0E 06
beq Sub_Loop39 ; CPU:$9E28 PRG:1E28 F0 28
lda $0612,x ; CPU:$9E2A PRG:1E2A BD 12 06
and #$20 ; CPU:$9E2D PRG:1E2D 29 20
bne Sub_Loop36 ; CPU:$9E2F PRG:1E2F D0 14
lda $060E,x ; CPU:$9E31 PRG:1E31 BD 0E 06
jsr Sub_9F22 ; CPU:$9E34 PRG:1E34 20 22 9F
bcs Sub_Loop39 ; CPU:$9E37 PRG:1E37 B0 19
rts ; CPU:$9E39 PRG:1E39 60
; -----------------------------------------------------------------------------
; Routine: Label_9E3A
; Global: Branch target inside Label: taken when 9E3A.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_9E3A:
lda $066A ; CPU:$9E3A PRG:1E3A AD 6A 06
beq Sub_Loop39 ; CPU:$9E3D PRG:1E3D F0 13
jsr Sub_9F22 ; CPU:$9E3F PRG:1E3F 20 22 9F
bcs Sub_Loop39 ; CPU:$9E42 PRG:1E42 B0 0E
rts ; CPU:$9E44 PRG:1E44 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop36
; Global: Branch target inside Sub: taken when Loop36.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop36:
cpx #$00 ; CPU:$9E45 PRG:1E45 E0 00
bne Sub_Loop37 ; CPU:$9E47 PRG:1E47 D0 04
ldx #$2E ; CPU:$9E49 PRG:1E49 A2 2E
bne Sub_Loop38 ; CPU:$9E4B PRG:1E4B D0 02
; -----------------------------------------------------------------------------
; Routine: Sub_Loop37
; Global: Branch target inside Sub: taken when Loop37.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop37:
ldx #$00 ; CPU:$9E4D PRG:1E4D A2 00
; -----------------------------------------------------------------------------
; Routine: Sub_Loop38
; Global: Branch target inside Sub: taken when Loop38.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop38:
stx $066B ; CPU:$9E4F PRG:1E4F 8E 6B 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop39
; Global: Branch target inside Sub: taken when Loop39.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop39:
ldy #$00 ; CPU:$9E52 PRG:1E52 A0 00
lda (RingPtrLo),y ; CPU:$9E54 PRG:1E54 B1 D1
sta $0612,x ; CPU:$9E56 PRG:1E56 9D 12 06
lda ZpD0 ; CPU:$9E59 PRG:1E59 A5 D0
sta $060E,x ; CPU:$9E5B PRG:1E5B 9D 0E 06
tya ; CPU:$9E5E PRG:1E5E 98
sta $0611,x ; CPU:$9E5F PRG:1E5F 9D 11 06
sty $066C ; CPU:$9E62 PRG:1E62 8C 6C 06
sta $062C,x ; CPU:$9E65 PRG:1E65 9D 2C 06
sta $062D,x ; CPU:$9E68 PRG:1E68 9D 2D 06
iny ; CPU:$9E6B PRG:1E6B C8
lda (RingPtrLo),y ; CPU:$9E6C PRG:1E6C B1 D1
sta $060F,x ; CPU:$9E6E PRG:1E6E 9D 0F 06
iny ; CPU:$9E71 PRG:1E71 C8
lda (RingPtrLo),y ; CPU:$9E72 PRG:1E72 B1 D1
sta $0610,x ; CPU:$9E74 PRG:1E74 9D 10 06
rts ; CPU:$9E77 PRG:1E77 60
; -----------------------------------------------------------------------------
; Routine: Sub_9E78
; Global: Branch target inside Sub: taken when 9E78.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9E78:
bvs Sub_Loop40 ; CPU:$9E78 PRG:1E78 70 0C
ldy #$5C ; CPU:$9E7A PRG:1E7A A0 5C
jsr Sub_A11F ; CPU:$9E7C PRG:1E7C 20 1F A1
sta $066A ; CPU:$9E7F PRG:1E7F 8D 6A 06
sta $066C ; CPU:$9E82 PRG:1E82 8D 6C 06
rts ; CPU:$9E85 PRG:1E85 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop40
; Global: Branch target inside Sub: taken when Loop40.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop40:
ldy $066B ; CPU:$9E86 PRG:1E86 AC 6B 06
cpy #$00 ; CPU:$9E89 PRG:1E89 C0 00
bne Sub_Loop41 ; CPU:$9E8B PRG:1E8B D0 04
ldx #$2E ; CPU:$9E8D PRG:1E8D A2 2E
bne Sub_Loop42 ; CPU:$9E8F PRG:1E8F D0 02
; -----------------------------------------------------------------------------
; Routine: Sub_Loop41
; Global: Branch target inside Sub: taken when Loop41.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop41:
ldx #$00 ; CPU:$9E91 PRG:1E91 A2 00
; -----------------------------------------------------------------------------
; Routine: Sub_Loop42
; Global: Branch target inside Sub: taken when Loop42.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop42:
lda $0607,y ; CPU:$9E93 PRG:1E93 B9 07 06
and #$01 ; CPU:$9E96 PRG:1E96 29 01
beq Sub_Loop43 ; CPU:$9E98 PRG:1E98 F0 05
lda #$B0 ; CPU:$9E9A PRG:1E9A A9 B0
sta APUPULSE1CTRL ; CPU:$9E9C PRG:1E9C 8D 00 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop43
; Global: Branch target inside Sub: taken when Loop43.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop43:
lda $0607,y ; CPU:$9E9F PRG:1E9F B9 07 06
and #$02 ; CPU:$9EA2 PRG:1EA2 29 02
beq Sub_Loop44 ; CPU:$9EA4 PRG:1EA4 F0 05
lda #$B0 ; CPU:$9EA6 PRG:1EA6 A9 B0
sta APUPULSE2CTRL ; CPU:$9EA8 PRG:1EA8 8D 04 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop44
; Global: Branch target inside Sub: taken when Loop44.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop44:
lda $0607,y ; CPU:$9EAB PRG:1EAB B9 07 06
and #$04 ; CPU:$9EAE PRG:1EAE 29 04
beq Sub_Loop45 ; CPU:$9EB0 PRG:1EB0 F0 05
lda #$00 ; CPU:$9EB2 PRG:1EB2 A9 00
sta APUTRIANGLECTRL ; CPU:$9EB4 PRG:1EB4 8D 08 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop45
; Global: Branch target inside Sub: taken when Loop45.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop45:
lda $0612,y ; CPU:$9EB7 PRG:1EB7 B9 12 06
and #$20 ; CPU:$9EBA PRG:1EBA 29 20
bne Sub_Loop46 ; CPU:$9EBC PRG:1EBC D0 09
jsr Sub_A11F ; CPU:$9EBE PRG:1EBE 20 1F A1
sta $060E,y ; CPU:$9EC1 PRG:1EC1 99 0E 06
sta $0607,y ; CPU:$9EC4 PRG:1EC4 99 07 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop46
; Global: Branch target inside Sub: taken when Loop46.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop46:
stx $066B ; CPU:$9EC7 PRG:1EC7 8E 6B 06
rts ; CPU:$9ECA PRG:1ECA 60
; -----------------------------------------------------------------------------
; Routine: Sub_9ECB
; Global: Branch target inside Sub: taken when 9ECB.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9ECB:
bcs Sub_Loop47 ; CPU:$9ECB PRG:1ECB B0 46
ldy #$02 ; CPU:$9ECD PRG:1ECD A0 02
lda ZpD0 ; CPU:$9ECF PRG:1ECF A5 D0
sta $066A ; CPU:$9ED1 PRG:1ED1 8D 6A 06
lda (RingPtrLo),y ; CPU:$9ED4 PRG:1ED4 B1 D1
sta $066F ; CPU:$9ED6 PRG:1ED6 8D 6F 06
iny ; CPU:$9ED9 PRG:1ED9 C8
lda (RingPtrLo),y ; CPU:$9EDA PRG:1EDA B1 D1
sta $0670 ; CPU:$9EDC PRG:1EDC 8D 70 06
iny ; CPU:$9EDF PRG:1EDF C8
lda (RingPtrLo),y ; CPU:$9EE0 PRG:1EE0 B1 D1
sta $0685 ; CPU:$9EE2 PRG:1EE2 8D 85 06
iny ; CPU:$9EE5 PRG:1EE5 C8
lda (RingPtrLo),y ; CPU:$9EE6 PRG:1EE6 B1 D1
sta $0686 ; CPU:$9EE8 PRG:1EE8 8D 86 06
iny ; CPU:$9EEB PRG:1EEB C8
lda (RingPtrLo),y ; CPU:$9EEC PRG:1EEC B1 D1
sta $069B ; CPU:$9EEE PRG:1EEE 8D 9B 06
iny ; CPU:$9EF1 PRG:1EF1 C8
lda (RingPtrLo),y ; CPU:$9EF2 PRG:1EF2 B1 D1
sta $069C ; CPU:$9EF4 PRG:1EF4 8D 9C 06
lda #$00 ; CPU:$9EF7 PRG:1EF7 A9 00
sta $0671 ; CPU:$9EF9 PRG:1EF9 8D 71 06
sta $0687 ; CPU:$9EFC PRG:1EFC 8D 87 06
sta $069D ; CPU:$9EFF PRG:1EFF 8D 9D 06
sta $0672 ; CPU:$9F02 PRG:1F02 8D 72 06
sta $0688 ; CPU:$9F05 PRG:1F05 8D 88 06
sta $069E ; CPU:$9F08 PRG:1F08 8D 9E 06
lda #$07 ; CPU:$9F0B PRG:1F0B A9 07
sta $0663 ; CPU:$9F0D PRG:1F0D 8D 63 06
jmp Sub_Loop40 ; CPU:$9F10 PRG:1F10 4C 86 9E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop47
; Global: Branch target inside Sub: taken when Loop47.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop47:
ldy #$5C ; CPU:$9F13 PRG:1F13 A0 5C
jsr Sub_A11F ; CPU:$9F15 PRG:1F15 20 1F A1
sta $066A ; CPU:$9F18 PRG:1F18 8D 6A 06
sta $0663 ; CPU:$9F1B PRG:1F1B 8D 63 06
sta $066C ; CPU:$9F1E PRG:1F1E 8D 6C 06
rts ; CPU:$9F21 PRG:1F21 60
; -----------------------------------------------------------------------------
; Routine: Sub_9F22
; Global: Branch target inside Sub: taken when 9F22.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9F22:
sec ; CPU:$9F22 PRG:1F22 38
sbc #$01 ; CPU:$9F23 PRG:1F23 E9 01
sta ZpD9 ; CPU:$9F25 PRG:1F25 85 D9
lsr a ; CPU:$9F27 PRG:1F27 4A
lsr a ; CPU:$9F28 PRG:1F28 4A
lsr a ; CPU:$9F29 PRG:1F29 4A
sta TimerIndex ; CPU:$9F2A PRG:1F2A 85 DA
lda ZpD9 ; CPU:$9F2C PRG:1F2C A5 D9
and #$07 ; CPU:$9F2E PRG:1F2E 29 07
tay ; CPU:$9F30 PRG:1F30 A8
lda TimerIndex ; CPU:$9F31 PRG:1F31 A5 DA
clc ; CPU:$9F33 PRG:1F33 18
adc #$03 ; CPU:$9F34 PRG:1F34 69 03
sta TimerIndex ; CPU:$9F36 PRG:1F36 85 DA
lda $9F44,y ; CPU:$9F38 PRG:1F38 B9 44 9F
ldy TimerIndex ; CPU:$9F3B PRG:1F3B A4 DA
and (RingPtrLo),y ; CPU:$9F3D PRG:1F3D 31 D1
clc ; CPU:$9F3F PRG:1F3F 18
beq Sub_Loop48 ; CPU:$9F40 PRG:1F40 F0 01
sec ; CPU:$9F42 PRG:1F42 38
; -----------------------------------------------------------------------------
; Routine: Sub_Loop48
; Global: Branch target inside Sub: taken when Loop48.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop48:
rts ; CPU:$9F43 PRG:1F43 60
; ---- data $9F44-$9F4B (8 bytes) ----
; referenced by `bit $9F49` at $9DCC (operand $9F49 falls inside this region)
; referenced by `lda $9F44,y` at $9F38 (operand $9F44 falls inside this region)
PpuBitMaskTable:
.byte $80, $40, $20, $10, $08, $04, $02, $01 ; CPU:$9F44 PRG:-20BC 80 40 20 10 08 04 02 01
; -----------------------------------------------------------------------------
; Routine: Sub_9F4C
; Global: Branch target inside Sub: taken when 9F4C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9F4C:
lda #$00 ; CPU:$9F4C PRG:1F4C A9 00
sta $06B9 ; CPU:$9F4E PRG:1F4E 8D B9 06
lda $0613,x ; CPU:$9F51 PRG:1F51 BD 13 06
beq Sub_Loop49 ; CPU:$9F54 PRG:1F54 F0 04
dec $0613,x ; CPU:$9F56 PRG:1F56 DE 13 06
rts ; CPU:$9F59 PRG:1F59 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop49
; Global: Branch target inside Sub: taken when Loop49.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop49:
lda $060F,x ; CPU:$9F5A PRG:1F5A BD 0F 06
sta RingPtrLo ; CPU:$9F5D PRG:1F5D 85 D1
lda $0610,x ; CPU:$9F5F PRG:1F5F BD 10 06
sta RingPtrHi ; CPU:$9F62 PRG:1F62 85 D2
txa ; CPU:$9F64 PRG:1F64 8A
clc ; CPU:$9F65 PRG:1F65 18
adc #$14 ; CPU:$9F66 PRG:1F66 69 14
adc $0611,x ; CPU:$9F68 PRG:1F68 7D 11 06
sta ZpE3 ; CPU:$9F6B PRG:1F6B 85 E3
stx ZpE2 ; CPU:$9F6D PRG:1F6D 86 E2
; -----------------------------------------------------------------------------
; Routine: Sub_OnCarryClear
; Global: Branch target inside Sub: taken when the addition or subtraction did not carry.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnCarryClear:
ldy #$00 ; CPU:$9F6F PRG:1F6F A0 00
lda (RingPtrLo),y ; CPU:$9F71 PRG:1F71 B1 D1
bpl Sub_Loop50 ; CPU:$9F73 PRG:1F73 10 16
sta $06B9 ; CPU:$9F75 PRG:1F75 8D B9 06
ldx ZpE2 ; CPU:$9F78 PRG:1F78 A6 E2
jsr Sub_A35C ; CPU:$9F7A PRG:1F7A 20 5C A3
tya ; CPU:$9F7D PRG:1F7D 98
clc ; CPU:$9F7E PRG:1F7E 18
adc RingPtrLo ; CPU:$9F7F PRG:1F7F 65 D1
sta RingPtrLo ; CPU:$9F81 PRG:1F81 85 D1
lda RingPtrHi ; CPU:$9F83 PRG:1F83 A5 D2
adc #$00 ; CPU:$9F85 PRG:1F85 69 00
sta RingPtrHi ; CPU:$9F87 PRG:1F87 85 D2
bcc Sub_OnCarryClear ; CPU:$9F89 PRG:1F89 90 E4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop50
; Global: Branch target inside Sub: taken when Loop50.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop50:
ldx ZpE2 ; CPU:$9F8B PRG:1F8B A6 E2
sta $0613,x ; CPU:$9F8D PRG:1F8D 9D 13 06
lda ZpE3 ; CPU:$9F90 PRG:1F90 A5 E3
sec ; CPU:$9F92 PRG:1F92 38
sbc #$14 ; CPU:$9F93 PRG:1F93 E9 14
sbc ZpE2 ; CPU:$9F95 PRG:1F95 E5 E2
sta $0611,x ; CPU:$9F97 PRG:1F97 9D 11 06
lda #$01 ; CPU:$9F9A PRG:1F9A A9 01
; -----------------------------------------------------------------------------
; Routine: Sub_9F9C
; Global: Branch target inside Sub: taken when 9F9C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9F9C:
clc ; CPU:$9F9C PRG:1F9C 18
adc RingPtrLo ; CPU:$9F9D PRG:1F9D 65 D1
sta $060F,x ; CPU:$9F9F PRG:1F9F 9D 0F 06
lda RingPtrHi ; CPU:$9FA2 PRG:1FA2 A5 D2
adc #$00 ; CPU:$9FA4 PRG:1FA4 69 00
sta $0610,x ; CPU:$9FA6 PRG:1FA6 9D 10 06
rts ; CPU:$9FA9 PRG:1FA9 60
; -----------------------------------------------------------------------------
; Routine: Sub_9FAA
; Global: Branch target inside Sub: taken when 9FAA.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9FAA:
lda $066E ; CPU:$9FAA PRG:1FAA AD 6E 06
beq Sub_Loop52 ; CPU:$9FAD PRG:1FAD F0 2A
lda $0672 ; CPU:$9FAF PRG:1FAF AD 72 06
ora $0688 ; CPU:$9FB2 PRG:1FB2 0D 88 06
ora $069E ; CPU:$9FB5 PRG:1FB5 0D 9E 06
bne Sub_Loop52 ; CPU:$9FB8 PRG:1FB8 D0 1F
ldy #$07 ; CPU:$9FBA PRG:1FBA A0 07
bit $066E ; CPU:$9FBC PRG:1FBC 2C 6E 06
bmi Sub_OnNonnegative4 ; CPU:$9FBF PRG:1FBF 30 0B
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonnegative3
; Global: Branch target inside Sub: taken when OnNonnegative3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonnegative3:
lda $A431,y ; CPU:$9FC1 PRG:1FC1 B9 31 A4
sta $06B1,y ; CPU:$9FC4 PRG:1FC4 99 B1 06
dey ; CPU:$9FC7 PRG:1FC7 88
bpl Sub_OnNonnegative3 ; CPU:$9FC8 PRG:1FC8 10 F7
bmi Sub_Loop51 ; CPU:$9FCA PRG:1FCA 30 09
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonnegative4
; Global: Branch target inside Sub: taken when OnNonnegative4.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonnegative4:
lda $A429,y ; CPU:$9FCC PRG:1FCC B9 29 A4
sta $06B1,y ; CPU:$9FCF PRG:1FCF 99 B1 06
dey ; CPU:$9FD2 PRG:1FD2 88
bpl Sub_OnNonnegative4 ; CPU:$9FD3 PRG:1FD3 10 F7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop51
; Global: Branch target inside Sub: taken when Loop51.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop51:
iny ; CPU:$9FD5 PRG:1FD5 C8
sty $066E ; CPU:$9FD6 PRG:1FD6 8C 6E 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop52
; Global: Branch target inside Sub: taken when Loop52.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop52:
ldy #$00 ; CPU:$9FD9 PRG:1FD9 A0 00
ldx #$6F ; CPU:$9FDB PRG:1FDB A2 6F
jsr Sub_9FEB ; CPU:$9FDD PRG:1FDD 20 EB 9F
ldx #$85 ; CPU:$9FE0 PRG:1FE0 A2 85
ldy #$01 ; CPU:$9FE2 PRG:1FE2 A0 01
jsr Sub_9FEB ; CPU:$9FE4 PRG:1FE4 20 EB 9F
ldx #$9B ; CPU:$9FE7 PRG:1FE7 A2 9B
ldy #$02 ; CPU:$9FE9 PRG:1FE9 A0 02
; -----------------------------------------------------------------------------
; Routine: Sub_9FEB
; Global: Branch target inside Sub: taken when 9FEB.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_9FEB:
sty ZpE1 ; CPU:$9FEB PRG:1FEB 84 E1
lda #$00 ; CPU:$9FED PRG:1FED A9 00
sta $0613,x ; CPU:$9FEF PRG:1FEF 9D 13 06
lda $0600,x ; CPU:$9FF2 PRG:1FF2 BD 00 06
sta RingPtrLo ; CPU:$9FF5 PRG:1FF5 85 D1
lda $0601,x ; CPU:$9FF7 PRG:1FF7 BD 01 06
sta RingPtrHi ; CPU:$9FFA PRG:1FFA 85 D2
txa ; CPU:$9FFC PRG:1FFC 8A
clc ; CPU:$9FFD PRG:1FFD 18
adc #$09 ; CPU:$9FFE PRG:1FFE 69 09
adc $0602,x ; CPU:$A000 PRG:2000 7D 02 06
sta ZpE3 ; CPU:$A003 PRG:2003 85 E3
stx ZpE2 ; CPU:$A005 PRG:2005 86 E2
lda $0603,x ; CPU:$A007 PRG:2007 BD 03 06
beq Sub_Loop58 ; CPU:$A00A PRG:200A F0 5E
dec $0603,x ; CPU:$A00C PRG:200C DE 03 06
lda $0664,y ; CPU:$A00F PRG:200F B9 64 06
and #$0F ; CPU:$A012 PRG:2012 29 0F
beq Sub_Loop56 ; CPU:$A014 PRG:2014 F0 4B
lda $0604,x ; CPU:$A016 PRG:2016 BD 04 06
bpl Sub_Loop54 ; CPU:$A019 PRG:2019 10 2D
lda $0615,x ; CPU:$A01B PRG:201B BD 15 06
bmi Sub_Loop57 ; CPU:$A01E PRG:201E 30 49
lda $0605,x ; CPU:$A020 PRG:2020 BD 05 06
sec ; CPU:$A023 PRG:2023 38
sbc $0606,x ; CPU:$A024 PRG:2024 FD 06 06
sta $0605,x ; CPU:$A027 PRG:2027 9D 05 06
lda $0664,y ; CPU:$A02A PRG:202A B9 64 06
and #$0F ; CPU:$A02D PRG:202D 29 0F
sta ZpD9 ; CPU:$A02F PRG:202F 85 D9
sbc $0607,x ; CPU:$A031 PRG:2031 FD 07 06
bcs Sub_Loop53 ; CPU:$A034 PRG:2034 B0 09
lda #$01 ; CPU:$A036 PRG:2036 A9 01
sta $0613,x ; CPU:$A038 PRG:2038 9D 13 06
lda #$00 ; CPU:$A03B PRG:203B A9 00
beq Sub_Loop56 ; CPU:$A03D PRG:203D F0 22
; -----------------------------------------------------------------------------
; Routine: Sub_Loop53
; Global: Branch target inside Sub: taken when Loop53.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop53:
cmp ZpD9 ; CPU:$A03F PRG:203F C5 D9
beq Sub_Loop56 ; CPU:$A041 PRG:2041 F0 1E
sta $0613,x ; CPU:$A043 PRG:2043 9D 13 06
bne Sub_Loop56 ; CPU:$A046 PRG:2046 D0 19
; -----------------------------------------------------------------------------
; Routine: Sub_Loop54
; Global: Branch target inside Sub: taken when Loop54.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop54:
lda $0603,x ; CPU:$A048 PRG:2048 BD 03 06
cmp #$03 ; CPU:$A04B PRG:204B C9 03
bcs Sub_Loop55 ; CPU:$A04D PRG:204D B0 0F
lda #$01 ; CPU:$A04F PRG:204F A9 01
sta $0613,x ; CPU:$A051 PRG:2051 9D 13 06
lda $0604,x ; CPU:$A054 PRG:2054 BD 04 06
sec ; CPU:$A057 PRG:2057 38
sbc #$04 ; CPU:$A058 PRG:2058 E9 04
lsr a ; CPU:$A05A PRG:205A 4A
jmp Sub_Loop56 ; CPU:$A05B PRG:205B 4C 61 A0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop55
; Global: Branch target inside Sub: taken when Loop55.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop55:
lda $0604,x ; CPU:$A05E PRG:205E BD 04 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop56
; Global: Branch target inside Sub: taken when Loop56.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop56:
and #$0F ; CPU:$A061 PRG:2061 29 0F
ora $0612,x ; CPU:$A063 PRG:2063 1D 12 06
sta $0664,y ; CPU:$A066 PRG:2066 99 64 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop57
; Global: Branch target inside Sub: taken when Loop57.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop57:
rts ; CPU:$A069 PRG:2069 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop58
; Global: Branch target inside Sub: taken when Loop58.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop58:
lda #$00 ; CPU:$A06A PRG:206A A9 00
sta $0615,x ; CPU:$A06C PRG:206C 9D 15 06
tay ; CPU:$A06F PRG:206F A8
; -----------------------------------------------------------------------------
; Routine: Sub_OnZero
; Global: Branch target inside Sub: taken when the tested value is zero.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnZero:
lda (RingPtrLo),y ; CPU:$A070 PRG:2070 B1 D1
bpl Sub_Loop59 ; CPU:$A072 PRG:2072 10 15
ldx ZpE2 ; CPU:$A074 PRG:2074 A6 E2
jsr Sub_A35C ; CPU:$A076 PRG:2076 20 5C A3
tya ; CPU:$A079 PRG:2079 98
clc ; CPU:$A07A PRG:207A 18
adc RingPtrLo ; CPU:$A07B PRG:207B 65 D1
sta RingPtrLo ; CPU:$A07D PRG:207D 85 D1
lda RingPtrHi ; CPU:$A07F PRG:207F A5 D2
adc #$00 ; CPU:$A081 PRG:2081 69 00
sta RingPtrHi ; CPU:$A083 PRG:2083 85 D2
ldy #$00 ; CPU:$A085 PRG:2085 A0 00
beq Sub_OnZero ; CPU:$A087 PRG:2087 F0 E7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop59
; Global: Branch target inside Sub: taken when Loop59.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop59:
ldx ZpE2 ; CPU:$A089 PRG:2089 A6 E2
sta ZpDE ; CPU:$A08B PRG:208B 85 DE
lsr a ; CPU:$A08D PRG:208D 4A
lsr a ; CPU:$A08E PRG:208E 4A
lsr a ; CPU:$A08F PRG:208F 4A
lsr a ; CPU:$A090 PRG:2090 4A
tay ; CPU:$A091 PRG:2091 A8
lda $06B1,y ; CPU:$A092 PRG:2092 B9 B1 06
sec ; CPU:$A095 PRG:2095 38
sbc #$01 ; CPU:$A096 PRG:2096 E9 01
sta $0603,x ; CPU:$A098 PRG:2098 9D 03 06
lda #$00 ; CPU:$A09B PRG:209B A9 00
sta ZpDF ; CPU:$A09D PRG:209D 85 DF
lda $0604,x ; CPU:$A09F PRG:209F BD 04 06
bpl Sub_Loop60 ; CPU:$A0A2 PRG:20A2 10 19
and #$0F ; CPU:$A0A4 PRG:20A4 29 0F
sta ZpE0 ; CPU:$A0A6 PRG:20A6 85 E0
lda $0603,x ; CPU:$A0A8 PRG:20A8 BD 03 06
lsr a ; CPU:$A0AB PRG:20AB 4A
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero6
; Global: Branch target inside Sub: taken when OnNonzero6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero6:
lsr ZpE0 ; CPU:$A0AC PRG:20AC 46 E0
ror ZpDF ; CPU:$A0AE PRG:20AE 66 DF
lsr a ; CPU:$A0B0 PRG:20B0 4A
bne Sub_OnNonzero6 ; CPU:$A0B1 PRG:20B1 D0 F9
lda ZpE0 ; CPU:$A0B3 PRG:20B3 A5 E0
sta $0607,x ; CPU:$A0B5 PRG:20B5 9D 07 06
lda ZpDF ; CPU:$A0B8 PRG:20B8 A5 DF
sta $0606,x ; CPU:$A0BA PRG:20BA 9D 06 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop60
; Global: Branch target inside Sub: taken when Loop60.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop60:
ldy ZpE1 ; CPU:$A0BD PRG:20BD A4 E1
lda $0604,x ; CPU:$A0BF PRG:20BF BD 04 06
and #$0F ; CPU:$A0C2 PRG:20C2 29 0F
ora $0612,x ; CPU:$A0C4 PRG:20C4 1D 12 06
sta $0664,y ; CPU:$A0C7 PRG:20C7 99 64 06
lda #$FF ; CPU:$A0CA PRG:20CA A9 FF
sta $0605,x ; CPU:$A0CC PRG:20CC 9D 05 06
sta $0613,x ; CPU:$A0CF PRG:20CF 9D 13 06
lda #$00 ; CPU:$A0D2 PRG:20D2 A9 00
sta ZpDF ; CPU:$A0D4 PRG:20D4 85 DF
lda ZpDE ; CPU:$A0D6 PRG:20D6 A5 DE
and #$0F ; CPU:$A0D8 PRG:20D8 29 0F
cmp #$0F ; CPU:$A0DA PRG:20DA C9 0F
beq Sub_Loop61 ; CPU:$A0DC PRG:20DC F0 38
clc ; CPU:$A0DE PRG:20DE 18
adc $0608,x ; CPU:$A0DF PRG:20DF 7D 08 06
asl a ; CPU:$A0E2 PRG:20E2 0A
tay ; CPU:$A0E3 PRG:20E3 A8
lda $A378,y ; CPU:$A0E4 PRG:20E4 B9 78 A3
sta ZpE0 ; CPU:$A0E7 PRG:20E7 85 E0
lda $A377,y ; CPU:$A0E9 PRG:20E9 B9 77 A3
sta ZpDF ; CPU:$A0EC PRG:20EC 85 DF
lda ZpE1 ; CPU:$A0EE PRG:20EE A5 E1
asl a ; CPU:$A0F0 PRG:20F0 0A
tay ; CPU:$A0F1 PRG:20F1 A8
lda ZpDF ; CPU:$A0F2 PRG:20F2 A5 DF
sta $065C,y ; CPU:$A0F4 PRG:20F4 99 5C 06
lda ZpE0 ; CPU:$A0F7 PRG:20F7 A5 E0
sta $065D,y ; CPU:$A0F9 PRG:20F9 99 5D 06
; -----------------------------------------------------------------------------
; Routine: Sub_A0FC
; Global: Branch target inside Sub: taken when A0FC.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_A0FC:
lda ZpE3 ; CPU:$A0FC PRG:20FC A5 E3
sec ; CPU:$A0FE PRG:20FE 38
sbc #$09 ; CPU:$A0FF PRG:20FF E9 09
sbc ZpE2 ; CPU:$A101 PRG:2101 E5 E2
sta $0602,x ; CPU:$A103 PRG:2103 9D 02 06
lda RingPtrLo ; CPU:$A106 PRG:2106 A5 D1
clc ; CPU:$A108 PRG:2108 18
adc #$01 ; CPU:$A109 PRG:2109 69 01
sta $0600,x ; CPU:$A10B PRG:210B 9D 00 06
lda RingPtrHi ; CPU:$A10E PRG:210E A5 D2
adc #$00 ; CPU:$A110 PRG:2110 69 00
sta $0601,x ; CPU:$A112 PRG:2112 9D 01 06
rts ; CPU:$A115 PRG:2115 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop61
; Global: Branch target inside Sub: taken when Loop61.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop61:
lda $0612,x ; CPU:$A116 PRG:2116 BD 12 06
sta $0664,y ; CPU:$A119 PRG:2119 99 64 06
jmp Sub_A0FC ; CPU:$A11C PRG:211C 4C FC A0
; -----------------------------------------------------------------------------
; Routine: Sub_A11F
; Global: Branch target inside Sub: taken when A11F.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_A11F:
sty HandlerPtrLo ; CPU:$A11F PRG:211F 84 D7
lda #$06 ; CPU:$A121 PRG:2121 A9 06
sta HandlerPtrHi ; CPU:$A123 PRG:2123 85 D8
ldy #$0D ; CPU:$A125 PRG:2125 A0 0D
lda #$00 ; CPU:$A127 PRG:2127 A9 00
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonnegative5
; Global: Branch target inside Sub: taken when OnNonnegative5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonnegative5:
sta (HandlerPtrLo),y ; CPU:$A129 PRG:2129 91 D7
dey ; CPU:$A12B PRG:212B 88
bpl Sub_OnNonnegative5 ; CPU:$A12C PRG:212C 10 FB
ldy HandlerPtrLo ; CPU:$A12E PRG:212E A4 D7
rts ; CPU:$A130 PRG:2130 60
; -----------------------------------------------------------------------------
; Routine: Label_A131
; Global: Branch target inside Label: taken when A131.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A131:
ldx ZpE3 ; CPU:$A131 PRG:2131 A6 E3
lda RingPtrLo ; CPU:$A133 PRG:2133 A5 D1
sta $0600,x ; CPU:$A135 PRG:2135 9D 00 06
inx ; CPU:$A138 PRG:2138 E8
lda RingPtrHi ; CPU:$A139 PRG:2139 A5 D2
sta $0600,x ; CPU:$A13B PRG:213B 9D 00 06
inx ; CPU:$A13E PRG:213E E8
stx ZpE3 ; CPU:$A13F PRG:213F 86 E3
iny ; CPU:$A141 PRG:2141 C8
lda (RingPtrLo),y ; CPU:$A142 PRG:2142 B1 D1
sta ZpDC ; CPU:$A144 PRG:2144 85 DC
iny ; CPU:$A146 PRG:2146 C8
lda (RingPtrLo),y ; CPU:$A147 PRG:2147 B1 D1
sta RingPtrHi ; CPU:$A149 PRG:2149 85 D2
lda ZpDC ; CPU:$A14B PRG:214B A5 DC
sta RingPtrLo ; CPU:$A14D PRG:214D 85 D1
ldy #$00 ; CPU:$A14F PRG:214F A0 00
rts ; CPU:$A151 PRG:2151 60
; -----------------------------------------------------------------------------
; Routine: Label_A152
; Global: Branch target inside Label: taken when A152.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A152:
ldx ZpE3 ; CPU:$A152 PRG:2152 A6 E3
dex ; CPU:$A154 PRG:2154 CA
lda $0600,x ; CPU:$A155 PRG:2155 BD 00 06
sta RingPtrHi ; CPU:$A158 PRG:2158 85 D2
dex ; CPU:$A15A PRG:215A CA
lda $0600,x ; CPU:$A15B PRG:215B BD 00 06
sta RingPtrLo ; CPU:$A15E PRG:215E 85 D1
ldy #$03 ; CPU:$A160 PRG:2160 A0 03
stx ZpE3 ; CPU:$A162 PRG:2162 86 E3
rts ; CPU:$A164 PRG:2164 60
; -----------------------------------------------------------------------------
; Routine: Label_A165
; Global: Branch target inside Label: taken when A165.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A165:
ldx ZpE3 ; CPU:$A165 PRG:2165 A6 E3
iny ; CPU:$A167 PRG:2167 C8
lda (RingPtrLo),y ; CPU:$A168 PRG:2168 B1 D1
sta $0600,x ; CPU:$A16A PRG:216A 9D 00 06
lda RingPtrLo ; CPU:$A16D PRG:216D A5 D1
inx ; CPU:$A16F PRG:216F E8
sta $0600,x ; CPU:$A170 PRG:2170 9D 00 06
inx ; CPU:$A173 PRG:2173 E8
lda RingPtrHi ; CPU:$A174 PRG:2174 A5 D2
sta $0600,x ; CPU:$A176 PRG:2176 9D 00 06
inx ; CPU:$A179 PRG:2179 E8
iny ; CPU:$A17A PRG:217A C8
stx ZpE3 ; CPU:$A17B PRG:217B 86 E3
rts ; CPU:$A17D PRG:217D 60
; -----------------------------------------------------------------------------
; Routine: Label_A17E
; Global: Branch target inside Label: taken when A17E.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A17E:
ldx ZpE3 ; CPU:$A17E PRG:217E A6 E3
dec $05FD,x ; CPU:$A180 PRG:2180 DE FD 05
beq Sub_Loop62 ; CPU:$A183 PRG:2183 F0 0D
lda $05FE,x ; CPU:$A185 PRG:2185 BD FE 05
sta RingPtrLo ; CPU:$A188 PRG:2188 85 D1
lda $05FF,x ; CPU:$A18A PRG:218A BD FF 05
sta RingPtrHi ; CPU:$A18D PRG:218D 85 D2
ldy #$02 ; CPU:$A18F PRG:218F A0 02
rts ; CPU:$A191 PRG:2191 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop62
; Global: Branch target inside Sub: taken when Loop62.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop62:
dex ; CPU:$A192 PRG:2192 CA
dex ; CPU:$A193 PRG:2193 CA
dex ; CPU:$A194 PRG:2194 CA
stx ZpE3 ; CPU:$A195 PRG:2195 86 E3
iny ; CPU:$A197 PRG:2197 C8
rts ; CPU:$A198 PRG:2198 60
; -----------------------------------------------------------------------------
; Routine: Label_A199
; Global: Branch target inside Label: taken when A199.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A199:
stx ZpDB ; CPU:$A199 PRG:2199 86 DB
jsr Sub_Loop40 ; CPU:$A19B PRG:219B 20 86 9E
ldx ZpDB ; CPU:$A19E PRG:219E A6 DB
pla ; CPU:$A1A0 PRG:21A0 68
pla ; CPU:$A1A1 PRG:21A1 68
lda #$00 ; CPU:$A1A2 PRG:21A2 A9 00
jmp Sub_9F9C ; CPU:$A1A4 PRG:21A4 4C 9C 9F
; -----------------------------------------------------------------------------
; Routine: Label_A1A7
; Global: Branch target inside Label: taken when A1A7.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A1A7:
iny ; CPU:$A1A7 PRG:21A7 C8
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero7
; Global: Branch target inside Sub: taken when OnNonzero7.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero7:
lda (RingPtrLo),y ; CPU:$A1A8 PRG:21A8 B1 D1
sta $0600,x ; CPU:$A1AA PRG:21AA 9D 00 06
inx ; CPU:$A1AD PRG:21AD E8
iny ; CPU:$A1AE PRG:21AE C8
cpy #$0F ; CPU:$A1AF PRG:21AF C0 0F
bne Sub_OnNonzero7 ; CPU:$A1B1 PRG:21B1 D0 F5
rts ; CPU:$A1B3 PRG:21B3 60
; -----------------------------------------------------------------------------
; Routine: Label_A1B4
; Global: Branch target inside Label: taken when A1B4.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A1B4:
jsr Sub_A36F ; CPU:$A1B4 PRG:21B4 20 6F A3
lda (RingPtrLo),y ; CPU:$A1B7 PRG:21B7 B1 D1
sta $0600,x ; CPU:$A1B9 PRG:21B9 9D 00 06
iny ; CPU:$A1BC PRG:21BC C8
rts ; CPU:$A1BD PRG:21BD 60
; -----------------------------------------------------------------------------
; Routine: Label_A1BE
; Global: Branch target inside Label: taken when A1BE.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A1BE:
jsr Sub_A36F ; CPU:$A1BE PRG:21BE 20 6F A3
lda (RingPtrLo),y ; CPU:$A1C1 PRG:21C1 B1 D1
sta $0600,x ; CPU:$A1C3 PRG:21C3 9D 00 06
inx ; CPU:$A1C6 PRG:21C6 E8
iny ; CPU:$A1C7 PRG:21C7 C8
lda (RingPtrLo),y ; CPU:$A1C8 PRG:21C8 B1 D1
sta $0600,x ; CPU:$A1CA PRG:21CA 9D 00 06
iny ; CPU:$A1CD PRG:21CD C8
rts ; CPU:$A1CE PRG:21CE 60
; -----------------------------------------------------------------------------
; Routine: Label_A1CF
; Global: Branch target inside Label: taken when A1CF.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A1CF:
jsr Sub_A36F ; CPU:$A1CF PRG:21CF 20 6F A3
inc $0600,x ; CPU:$A1D2 PRG:21D2 FE 00 06
rts ; CPU:$A1D5 PRG:21D5 60
; -----------------------------------------------------------------------------
; Routine: Label_A1D6
; Global: Branch target inside Label: taken when A1D6.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A1D6:
jsr Sub_A36F ; CPU:$A1D6 PRG:21D6 20 6F A3
dec $0600,x ; CPU:$A1D9 PRG:21D9 DE 00 06
rts ; CPU:$A1DC PRG:21DC 60
; -----------------------------------------------------------------------------
; Routine: Label_A1DD
; Global: Branch target inside Label: taken when A1DD.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A1DD:
jsr Sub_A36F ; CPU:$A1DD PRG:21DD 20 6F A3
inc $0600,x ; CPU:$A1E0 PRG:21E0 FE 00 06
bne Sub_Loop63 ; CPU:$A1E3 PRG:21E3 D0 03
inc $0601,x ; CPU:$A1E5 PRG:21E5 FE 01 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop63
; Global: Branch target inside Sub: taken when Loop63.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop63:
rts ; CPU:$A1E8 PRG:21E8 60
; -----------------------------------------------------------------------------
; Routine: Label_A1E9
; Global: Branch target inside Label: taken when A1E9.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A1E9:
jsr Sub_A36F ; CPU:$A1E9 PRG:21E9 20 6F A3
lda $0600,x ; CPU:$A1EC PRG:21EC BD 00 06
sec ; CPU:$A1EF PRG:21EF 38
sbc #$01 ; CPU:$A1F0 PRG:21F0 E9 01
sta $0600,x ; CPU:$A1F2 PRG:21F2 9D 00 06
lda $0601,x ; CPU:$A1F5 PRG:21F5 BD 01 06
sbc #$00 ; CPU:$A1F8 PRG:21F8 E9 00
sta $0601,x ; CPU:$A1FA PRG:21FA 9D 01 06
rts ; CPU:$A1FD PRG:21FD 60
; -----------------------------------------------------------------------------
; Routine: Label_A1FE
; Global: Branch target inside Label: taken when A1FE.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A1FE:
jsr Sub_A36F ; CPU:$A1FE PRG:21FE 20 6F A3
lda (RingPtrLo),y ; CPU:$A201 PRG:2201 B1 D1
clc ; CPU:$A203 PRG:2203 18
adc $0600,x ; CPU:$A204 PRG:2204 7D 00 06
sta $0600,x ; CPU:$A207 PRG:2207 9D 00 06
lda $0601,x ; CPU:$A20A PRG:220A BD 01 06
adc #$00 ; CPU:$A20D PRG:220D 69 00
sta $0601,x ; CPU:$A20F PRG:220F 9D 01 06
iny ; CPU:$A212 PRG:2212 C8
rts ; CPU:$A213 PRG:2213 60
; -----------------------------------------------------------------------------
; Routine: Label_A214
; Global: Branch target inside Label: taken when A214.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A214:
jsr Sub_A36F ; CPU:$A214 PRG:2214 20 6F A3
lda $0600,x ; CPU:$A217 PRG:2217 BD 00 06
sec ; CPU:$A21A PRG:221A 38
sbc (RingPtrLo),y ; CPU:$A21B PRG:221B F1 D1
sta $0600,x ; CPU:$A21D PRG:221D 9D 00 06
lda $0601,x ; CPU:$A220 PRG:2220 BD 01 06
sbc #$00 ; CPU:$A223 PRG:2223 E9 00
sta $0601,x ; CPU:$A225 PRG:2225 9D 01 06
iny ; CPU:$A228 PRG:2228 C8
rts ; CPU:$A229 PRG:2229 60
; -----------------------------------------------------------------------------
; Routine: Label_A22A
; Global: Branch target inside Label: taken when A22A.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A22A:
iny ; CPU:$A22A PRG:222A C8
ldx #$00 ; CPU:$A22B PRG:222B A2 00
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero8
; Global: Branch target inside Sub: taken when OnNonzero8.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero8:
lda (RingPtrLo),y ; CPU:$A22D PRG:222D B1 D1
sta $06B1,x ; CPU:$A22F PRG:222F 9D B1 06
iny ; CPU:$A232 PRG:2232 C8
inx ; CPU:$A233 PRG:2233 E8
cpx #$08 ; CPU:$A234 PRG:2234 E0 08
bne Sub_OnNonzero8 ; CPU:$A236 PRG:2236 D0 F5
rts ; CPU:$A238 PRG:2238 60
; -----------------------------------------------------------------------------
; Routine: Label_A239
; Global: Branch target inside Label: taken when A239.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A239:
iny ; CPU:$A239 PRG:2239 C8
lda (RingPtrLo),y ; CPU:$A23A PRG:223A B1 D1
sta $0608,x ; CPU:$A23C PRG:223C 9D 08 06
iny ; CPU:$A23F PRG:223F C8
rts ; CPU:$A240 PRG:2240 60
; -----------------------------------------------------------------------------
; Routine: Label_A241
; Global: Branch target inside Label: taken when A241.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A241:
iny ; CPU:$A241 PRG:2241 C8
lda (RingPtrLo),y ; CPU:$A242 PRG:2242 B1 D1
sta $0604,x ; CPU:$A244 PRG:2244 9D 04 06
iny ; CPU:$A247 PRG:2247 C8
rts ; CPU:$A248 PRG:2248 60
; -----------------------------------------------------------------------------
; Routine: Label_A249
; Global: Branch target inside Label: taken when A249.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A249:
iny ; CPU:$A249 PRG:2249 C8
lda $0604,x ; CPU:$A24A PRG:224A BD 04 06
ora #$80 ; CPU:$A24D PRG:224D 09 80
sta $0604,x ; CPU:$A24F PRG:224F 9D 04 06
rts ; CPU:$A252 PRG:2252 60
; -----------------------------------------------------------------------------
; Routine: Label_A253
; Global: Branch target inside Label: taken when A253.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A253:
iny ; CPU:$A253 PRG:2253 C8
lda $0604,x ; CPU:$A254 PRG:2254 BD 04 06
and #$7F ; CPU:$A257 PRG:2257 29 7F
sta $0604,x ; CPU:$A259 PRG:2259 9D 04 06
rts ; CPU:$A25C PRG:225C 60
; -----------------------------------------------------------------------------
; Routine: Label_A25D
; Global: Branch target inside Label: taken when A25D.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A25D:
iny ; CPU:$A25D PRG:225D C8
lda $0608,x ; CPU:$A25E PRG:225E BD 08 06
clc ; CPU:$A261 PRG:2261 18
adc #$0C ; CPU:$A262 PRG:2262 69 0C
sta $0608,x ; CPU:$A264 PRG:2264 9D 08 06
rts ; CPU:$A267 PRG:2267 60
; -----------------------------------------------------------------------------
; Routine: Label_A268
; Global: Branch target inside Label: taken when A268.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A268:
iny ; CPU:$A268 PRG:2268 C8
lda $0608,x ; CPU:$A269 PRG:2269 BD 08 06
sec ; CPU:$A26C PRG:226C 38
sbc #$0C ; CPU:$A26D PRG:226D E9 0C
sta $0608,x ; CPU:$A26F PRG:226F 9D 08 06
rts ; CPU:$A272 PRG:2272 60
; -----------------------------------------------------------------------------
; Routine: Label_A273
; Global: Branch target inside Label: taken when A273.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A273:
ldy #$5C ; CPU:$A273 PRG:2273 A0 5C
jsr Sub_A11F ; CPU:$A275 PRG:2275 20 1F A1
sta $066A ; CPU:$A278 PRG:2278 8D 6A 06
sta $066C ; CPU:$A27B PRG:227B 8D 6C 06
pla ; CPU:$A27E PRG:227E 68
pla ; CPU:$A27F PRG:227F 68
rts ; CPU:$A280 PRG:2280 60
; ---- data $A281-$A302 (130 bytes) ----
UnreachedCodeData:
.byte $A9, $30, $D0, $0A, $A9, $70, $D0, $06, $A9, $B0, $D0, $02, $A9, $F0, $9D, $12 ; CPU:$A281 PRG:-1D7F A9 30 D0 0A A9 70 D0 06 A9 B0 D0 02 A9 F0 9D 12
.byte $06, $C8, $60, $A9, $80, $30, $02, $A9, $00, $9D, $14, $06, $C8, $60, $A9, $80 ; CPU:$A291 PRG:2291 06 C8 60 A9 80 30 02 A9 00 9D 14 06 C8 60 A9 80
.byte $9D, $15, $06, $C8, $60, $A9, $00, $F0, $0A, $A9, $04, $D0, $06, $A9, $08, $D0 ; CPU:$A2A1 PRG:22A1 9D 15 06 C8 60 A9 00 F0 0A A9 04 D0 06 A9 08 D0
.byte $02, $A9, $0C, $84, $DA, $86, $E4, $A8, $AE, $6B, $06, $BD, $0E, $06, $F0, $07 ; CPU:$A2B1 PRG:22B1 02 A9 0C 84 DA 86 E4 A8 AE 6B 06 BD 0E 06 F0 07
.byte $BD, $07, $06, $29, $08, $D0, $21, $AD, $07, $A4, $85, $D5, $AD, $08, $A4, $85 ; CPU:$A2C1 PRG:22C1 BD 07 06 29 08 D0 21 AD 07 A4 85 D5 AD 08 A4 85
.byte $D6, $B1, $D5, $8D, $62, $06, $C8, $B1, $D5, $8D, $67, $06, $C8, $B1, $D5, $8D ; CPU:$A2D1 PRG:22D1 D6 B1 D5 8D 62 06 C8 B1 D5 8D 67 06 C8 B1 D5 8D
.byte $68, $06, $C8, $B1, $D5, $8D, $BB, $06, $A4, $DA, $A6, $E4, $C8, $60, $AD, $63 ; CPU:$A2E1 PRG:22E1 68 06 C8 B1 D5 8D BB 06 A4 DA A6 E4 C8 60 AD 63
.byte $06, $09, $08, $8D, $63, $06, $C8, $60, $AD, $63, $06, $29, $F7, $8D, $63, $06 ; CPU:$A2F1 PRG:22F1 06 09 08 8D 63 06 C8 60 AD 63 06 29 F7 8D 63 06
.byte $C8, $60 ; CPU:$A301 PRG:2301 C8 60
; -----------------------------------------------------------------------------
; Routine: Label_A303
; Global: Branch target inside Label: taken when A303.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_A303:
iny ; CPU:$A303 PRG:2303 C8
lda (RingPtrLo),y ; CPU:$A304 PRG:2304 B1 D1
sta ZpD0 ; CPU:$A306 PRG:2306 85 D0
iny ; CPU:$A308 PRG:2308 C8
rts ; CPU:$A309 PRG:2309 60
; ---- data $A30A-$A35B (82 bytes) ----
; referenced by `lda $A30A,y` at $A35E (operand $A30A falls inside this region)
; referenced by `lda $A30B,y` at $A363 (operand $A30B falls inside this region)
WrestlerHandlerPointerTable:
.byte $31, $A1, $41, $A1, $52, $A1, $65, $A1, $7E, $A1, $99, $A1, $99, $A1, $A0, $A1 ; CPU:$A30A PRG:-1CF6 31 A1 41 A1 52 A1 65 A1 7E A1 99 A1 99 A1 A0 A1
.byte $A7, $A1, $2A, $A2, $2A, $A2, $DD, $A1, $E9, $A1, $B4, $A1, $BE, $A1, $14, $A2 ; CPU:$A31A PRG:231A A7 A1 2A A2 2A A2 DD A1 E9 A1 B4 A1 BE A1 14 A2
.byte $FE, $A1, $D6, $A1, $CF, $A1, $2A, $A2, $39, $A2, $41, $A2, $49, $A2, $53, $A2 ; CPU:$A32A PRG:232A FE A1 D6 A1 CF A1 2A A2 39 A2 41 A2 49 A2 53 A2
.byte $5D, $A2, $68, $A2, $73, $A2, $81, $A2, $85, $A2, $89, $A2, $8D, $A2, $94, $A2 ; CPU:$A33A PRG:233A 5D A2 68 A2 73 A2 81 A2 85 A2 89 A2 8D A2 94 A2
.byte $98, $A2, $9F, $A2, $A6, $A2, $AA, $A2, $AE, $A2, $B2, $A2, $EF, $A2, $F9, $A2 ; CPU:$A34A PRG:234A 98 A2 9F A2 A6 A2 AA A2 AE A2 B2 A2 EF A2 F9 A2
.byte $03, $A3 ; CPU:$A35A PRG:235A 03 A3
; -----------------------------------------------------------------------------
; Routine: Sub_A35C
; Global: Branch target inside Sub: taken when A35C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_A35C:
asl a ; CPU:$A35C PRG:235C 0A
tay ; CPU:$A35D PRG:235D A8
lda $A30A,y ; CPU:$A35E PRG:235E B9 0A A3
sta HandlerPtrLo ; CPU:$A361 PRG:2361 85 D7
lda $A30B,y ; CPU:$A363 PRG:2363 B9 0B A3
sta HandlerPtrHi ; CPU:$A366 PRG:2366 85 D8
ldy #$00 ; CPU:$A368 PRG:2368 A0 00
ldx ZpE2 ; CPU:$A36A PRG:236A A6 E2
jmp (HandlerPtrLo) ; CPU:$A36C PRG:236C 6C D7 00
; -----------------------------------------------------------------------------
; Routine: Sub_A36F
; Global: Branch target inside Sub: taken when A36F.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_A36F:
iny ; CPU:$A36F PRG:236F C8
clc ; CPU:$A370 PRG:2370 18
txa ; CPU:$A371 PRG:2371 8A
adc (RingPtrLo),y ; CPU:$A372 PRG:2372 71 D1
tax ; CPU:$A374 PRG:2374 AA
iny ; CPU:$A375 PRG:2375 C8
rts ; CPU:$A376 PRG:2376 60
; ---- data $A377-$A9F0 (1658 bytes) ----
; referenced by `lda $A409,y` at $9E06 (operand $A409 falls inside this region)
; referenced by `lda $A40A,y` at $9E0B (operand $A40A falls inside this region)
; referenced by `lda $A431,y` at $9FC1 (operand $A431 falls inside this region)
; referenced by `lda $A429,y` at $9FCC (operand $A429 falls inside this region)
; referenced by `lda $A378,y` at $A0E4 (operand $A378 falls inside this region)
; referenced by `lda $A377,y` at $A0E9 (operand $A377 falls inside this region)
WrestlerMovementData:
.byte $B8, $06, $58, $06, $FA, $05, $A4, $05, $54, $05, $14, $05, $BE, $04, $79, $04 ; CPU:$A377 PRG:-1C89 B8 06 58 06 FA 05 A4 05 54 05 14 05 BE 04 79 04
.byte $3A, $04, $FC, $03, $C2, $03, $88, $03, $59, $03, $2B, $03, $FB, $02, $D0, $02 ; CPU:$A387 PRG:2387 3A 04 FC 03 C2 03 88 03 59 03 2B 03 FB 02 D0 02
.byte $A6, $02, $81, $02, $5C, $02, $3C, $02, $1A, $02, $FE, $01, $DF, $01, $C6, $01 ; CPU:$A397 PRG:2397 A6 02 81 02 5C 02 3C 02 1A 02 FE 01 DF 01 C6 01
.byte $AB, $01, $92, $01, $76, $01, $67, $01, $53, $01, $40, $01, $2E, $01, $1D, $01 ; CPU:$A3A7 PRG:23A7 AB 01 92 01 76 01 67 01 53 01 40 01 2E 01 1D 01
.byte $0D, $01, $FE, $00, $EF, $00, $E2, $00, $D5, $00, $C9, $00, $BE, $00, $B3, $00 ; CPU:$A3B7 PRG:23B7 0D 01 FE 00 EF 00 E2 00 D5 00 C9 00 BE 00 B3 00
.byte $A9, $00, $9F, $00, $96, $00, $8E, $00, $86, $00, $7E, $00, $78, $00, $70, $00 ; CPU:$A3C7 PRG:23C7 A9 00 9F 00 96 00 8E 00 86 00 7E 00 78 00 70 00
.byte $6A, $00, $64, $00, $5E, $00, $59, $00, $54, $00, $4F, $00, $4B, $00, $47, $00 ; CPU:$A3D7 PRG:23D7 6A 00 64 00 5E 00 59 00 54 00 4F 00 4B 00 47 00
.byte $42, $00, $3F, $00, $3B, $00, $38, $00, $35, $00, $33, $00, $30, $00, $2D, $00 ; CPU:$A3E7 PRG:23E7 42 00 3F 00 3B 00 38 00 35 00 33 00 30 00 2D 00
.byte $2A, $00, $28, $00, $26, $00, $24, $00, $22, $00, $20, $00, $1E, $00, $1C, $00 ; CPU:$A3F7 PRG:23F7 2A 00 28 00 26 00 24 00 22 00 20 00 1E 00 1C 00
.byte $E1, $A9, $FF, $A7, $05, $A8, $0B, $A8, $11, $A8, $17, $A8, $1D, $A8, $23, $A8 ; CPU:$A407 PRG:2407 E1 A9 FF A7 05 A8 0B A8 11 A8 17 A8 1D A8 23 A8
.byte $29, $A8, $39, $A4, $41, $A4, $49, $A4, $51, $A4, $2F, $A8, $35, $A8, $3B, $A8 ; CPU:$A417 PRG:2417 29 A8 39 A4 41 A4 49 A4 51 A4 2F A8 35 A8 3B A8
.byte $41, $A8, $04, $08, $0C, $10, $18, $20, $28, $40, $05, $0A, $0F, $14, $1E, $28 ; CPU:$A427 PRG:2427 41 A8 04 08 0C 10 18 20 28 40 05 0A 0F 14 1E 28
.byte $3C, $50, $80, $00, $A6, $A4, $59, $A4, $82, $A4, $80, $00, $6D, $A5, $C9, $A4 ; CPU:$A437 PRG:2437 3C 50 80 00 A6 A4 59 A4 82 A4 80 00 6D A5 C9 A4
.byte $15, $A5, $80, $00, $DC, $A5, $84, $A5, $A8, $A5, $80, $00, $70, $A6, $FC, $A5 ; CPU:$A447 PRG:2447 15 A5 80 00 DC A5 84 A5 A8 A5 80 00 70 A6 FC A5
.byte $92, $A7, $93, $05, $0A, $0F, $14, $1E, $28, $3C, $50, $94, $18, $95, $0C, $96 ; CPU:$A457 PRG:2457 92 A7 93 05 0A 0F 14 1E 28 3C 50 94 18 95 0C 96
.byte $A0, $9C, $47, $1F, $04, $05, $07, $04, $3B, $98, $50, $55, $04, $02, $00, $99 ; CPU:$A467 PRG:2467 A0 9C 47 1F 04 05 07 04 3B 98 50 55 04 02 00 99
.byte $0B, $98, $54, $02, $00, $99, $0B, $98, $00, $50, $9A, $93, $05, $0A, $0F, $14 ; CPU:$A477 PRG:2477 0B 98 54 02 00 99 0B 98 00 50 9A 93 05 0A 0F 14
.byte $1E, $28, $3C, $50, $94, $18, $95, $0C, $97, $A0, $9E, $10, $0F, $00, $30, $30 ; CPU:$A487 PRG:2487 1E 28 3C 50 94 18 95 0C 97 A0 9E 10 0F 00 30 30
.byte $99, $19, $0F, $09, $39, $39, $35, $35, $35, $37, $37, $98, $37, $50, $9A, $93 ; CPU:$A497 PRG:2497 99 19 0F 09 39 39 35 35 35 37 37 98 37 50 9A 93
.byte $05, $0A, $0F, $14, $1E, $28, $3C, $50, $94, $18, $95, $0C, $A6, $83, $02, $3F ; CPU:$A4A7 PRG:24A7 05 0A 0F 14 1E 28 3C 50 94 18 95 0C A6 83 02 3F
.byte $A3, $3F, $A3, $3F, $84, $83, $02, $A3, $1F, $0F, $A3, $0F, $A3, $5F, $84, $A3 ; CPU:$A4B7 PRG:24B7 A3 3F A3 3F 84 83 02 A3 1F 0F A3 0F A3 5F 84 A3
.byte $5F, $9A, $93, $05, $0A, $0F, $14, $1E, $28, $3C, $08, $94, $18, $95, $0C, $96 ; CPU:$A4C7 PRG:24C7 5F 9A 93 05 0A 0F 14 1E 28 3C 08 94 18 95 0C 96
.byte $A0, $9C, $98, $47, $16, $45, $14, $12, $10, $99, $1B, $19, $17, $0F, $98, $00 ; CPU:$A4D7 PRG:24D7 A0 9C 98 47 16 45 14 12 10 99 1B 19 17 0F 98 00
.byte $99, $2B, $98, $00, $22, $00, $44, $0F, $00, $99, $2B, $98, $00, $22, $00, $44 ; CPU:$A4E7 PRG:24E7 99 2B 98 00 22 00 44 0F 00 99 2B 98 00 22 00 44
.byte $0F, $00, $99, $2B, $98, $00, $12, $3F, $99, $17, $17, $1F, $19, $1B, $98, $00 ; CPU:$A4F7 PRG:24F7 0F 00 99 2B 98 00 12 3F 99 17 17 1F 19 1B 98 00
.byte $99, $07, $04, $00, $99, $07, $98, $00, $04, $07, $98, $30, $3F, $9A, $93, $05 ; CPU:$A507 PRG:2507 99 07 04 00 99 07 98 00 04 07 98 30 3F 9A 93 05
.byte $0A, $0F, $14, $1E, $28, $3C, $50, $94, $18, $95, $0C, $96, $A0, $9D, $17, $98 ; CPU:$A517 PRG:2517 0A 0F 14 1E 28 3C 50 94 18 95 0C 96 A0 9D 17 98
.byte $47, $99, $17, $98, $47, $99, $17, $98, $17, $99, $17, $98, $17, $99, $17, $1F ; CPU:$A527 PRG:2527 47 99 17 98 47 99 17 98 17 99 17 98 17 99 17 1F
.byte $1F, $1F, $98, $20, $98, $00, $99, $20, $98, $00, $99, $20, $98, $00, $99, $20 ; CPU:$A537 PRG:2537 1F 1F 98 20 98 00 99 20 98 00 99 20 98 00 99 20
.byte $98, $00, $99, $20, $98, $00, $99, $20, $98, $00, $99, $20, $98, $00, $99, $20 ; CPU:$A547 PRG:2547 98 00 99 20 98 00 99 20 98 00 99 20 98 00 99 20
.byte $98, $00, $99, $99, $17, $98, $17, $12, $17, $99, $17, $98, $17, $12, $17, $10 ; CPU:$A557 PRG:2557 98 00 99 99 17 98 17 12 17 99 17 98 17 12 17 10
.byte $17, $14, $17, $30, $3F, $9A, $93, $05, $0A, $0F, $14, $1E, $28, $3C, $08, $94 ; CPU:$A567 PRG:2567 17 14 17 30 3F 9A 93 05 0A 0F 14 1E 28 3C 08 94
.byte $0C, $95, $09, $A6, $83, $06, $3F, $A3, $5F, $A3, $3F, $84, $9A, $93, $05, $0A ; CPU:$A577 PRG:2577 0C 95 09 A6 83 06 3F A3 5F A3 3F 84 9A 93 05 0A
.byte $0F, $14, $1E, $28, $3C, $50, $94, $18, $95, $0F, $96, $A0, $9C, $19, $15, $19 ; CPU:$A587 PRG:2587 0F 14 1E 28 3C 50 94 18 95 0F 96 A0 9C 19 15 19
.byte $3B, $37, $1B, $98, $60, $3F, $99, $19, $15, $19, $3B, $37, $1B, $98, $60, $3F ; CPU:$A597 PRG:2597 3B 37 1B 98 60 3F 99 19 15 19 3B 37 1B 98 60 3F
.byte $9A, $93, $05, $0A, $0F, $14, $1E, $28, $3C, $50, $94, $18, $95, $04, $97, $A0 ; CPU:$A5A7 PRG:25A7 9A 93 05 0A 0F 14 1E 28 3C 50 94 18 95 04 97 A0
.byte $9E, $35, $35, $37, $37, $98, $30, $30, $30, $30, $99, $99, $15, $98, $15, $99 ; CPU:$A5B7 PRG:25B7 9E 35 35 37 37 98 30 30 30 30 99 99 15 98 15 99
.byte $15, $98, $15, $99, $17, $98, $17, $99, $17, $98, $17, $10, $98, $10, $99, $10 ; CPU:$A5C7 PRG:25C7 15 98 15 99 17 98 17 99 17 98 17 10 98 10 99 10
.byte $98, $10, $99, $30, $9A, $93, $05, $0A, $0F, $14, $1E, $28, $3C, $50, $94, $18 ; CPU:$A5D7 PRG:25D7 98 10 99 30 9A 93 05 0A 0F 14 1E 28 3C 50 94 18
.byte $95, $09, $A6, $3F, $A3, $5F, $A3, $3F, $3F, $A3, $5F, $A3, $3F, $83, $06, $1F ; CPU:$A5E7 PRG:25E7 95 09 A6 3F A3 5F A3 3F 3F A3 5F A3 3F 83 06 1F
.byte $A3, $1F, $84, $1F, $9A, $93, $05, $0A, $0F, $14, $1E, $28, $3C, $50, $94, $09 ; CPU:$A5F7 PRG:25F7 A3 1F 84 1F 9A 93 05 0A 0F 14 1E 28 3C 50 94 09
.byte $95, $05, $96, $A0, $9C, $64, $39, $98, $60, $00, $99, $0B, $09, $07, $65, $39 ; CPU:$A607 PRG:2607 95 05 96 A0 9C 64 39 98 60 00 99 0B 09 07 65 39
.byte $98, $60, $00, $99, $0B, $09, $07, $64, $39, $98, $30, $99, $3B, $19, $47, $65 ; CPU:$A617 PRG:2617 98 60 00 99 0B 09 07 64 39 98 30 99 3B 19 47 65
.byte $39, $98, $30, $99, $3B, $19, $47, $83, $02, $29, $09, $17, $19, $1F, $04, $0F ; CPU:$A627 PRG:2627 39 98 30 99 3B 19 47 83 02 29 09 17 19 1F 04 0F
.byte $04, $1F, $0F, $84, $83, $02, $29, $09, $17, $19, $1F, $05, $0F, $05, $1F, $0F ; CPU:$A637 PRG:2637 04 1F 0F 84 83 02 29 09 17 19 1F 05 0F 05 1F 0F
.byte $84, $83, $02, $29, $09, $17, $19, $1F, $02, $0F, $02, $1F, $0F, $84, $74, $45 ; CPU:$A647 PRG:2647 84 83 02 29 09 17 19 1F 02 0F 02 1F 0F 84 74 45
.byte $A1, $17, $57, $A1, $79, $59, $39, $37, $A1, $75, $55, $35, $34, $A1, $72, $52 ; CPU:$A657 PRG:2657 A1 17 57 A1 79 59 39 37 A1 75 55 35 34 A1 72 52
.byte $32, $34, $74, $44, $45, $37, $81, $05, $A6, $93, $05, $0A, $0F, $14, $1E, $28 ; CPU:$A667 PRG:2667 32 34 74 44 45 37 81 05 A6 93 05 0A 0F 14 1E 28
.byte $3C, $50, $94, $09, $95, $05, $96, $A0, $9E, $83, $02, $19, $19, $19, $19, $19 ; CPU:$A677 PRG:2677 3C 50 94 09 95 05 96 A0 9E 83 02 19 19 19 19 19
.byte $98, $19, $99, $19, $19, $19, $19, $19, $19, $19, $17, $1F, $A1, $15, $15, $15 ; CPU:$A687 PRG:2687 98 19 99 19 19 19 19 19 19 19 17 1F A1 15 15 15
.byte $15, $15, $15, $98, $15, $99, $15, $15, $15, $15, $15, $15, $15, $17, $1F, $A1 ; CPU:$A697 PRG:2697 15 15 15 98 15 99 15 15 15 15 15 15 15 17 1F A1
.byte $19, $84, $19, $98, $19, $99, $19, $98, $19, $99, $19, $98, $19, $99, $19, $98 ; CPU:$A6A7 PRG:26A7 19 84 19 98 19 99 19 98 19 99 19 98 19 99 19 98
.byte $19, $99, $19, $98, $19, $99, $19, $98, $19, $99, $19, $98, $19, $99, $09, $98 ; CPU:$A6B7 PRG:26B7 19 99 19 98 19 99 19 98 19 99 19 98 19 99 09 98
.byte $09, $99, $07, $98, $07, $99, $15, $98, $15, $99, $15, $98, $15, $99, $15, $98 ; CPU:$A6C7 PRG:26C7 09 99 07 98 07 99 15 98 15 99 15 98 15 99 15 98
.byte $15, $99, $15, $98, $15, $99, $15, $98, $15, $99, $15, $98, $15, $99, $15, $98 ; CPU:$A6D7 PRG:26D7 15 99 15 98 15 99 15 98 15 99 15 98 15 99 15 98
.byte $15, $99, $05, $98, $05, $99, $04, $98, $04, $99, $12, $98, $12, $99, $12, $98 ; CPU:$A6E7 PRG:26E7 15 99 05 98 05 99 04 98 04 99 12 98 12 99 12 98
.byte $12, $99, $12, $98, $12, $99, $12, $98, $12, $99, $12, $98, $12, $99, $12, $98 ; CPU:$A6F7 PRG:26F7 12 99 12 98 12 99 12 98 12 99 12 98 12 99 12 98
.byte $12, $99, $12, $98, $12, $99, $12, $98, $12, $14, $14, $14, $34, $14, $04, $04 ; CPU:$A707 PRG:2707 12 99 12 98 12 99 12 98 12 14 14 14 34 14 04 04
.byte $14, $15, $15, $15, $17, $17, $17, $17, $1F, $83, $02, $99, $09, $09, $09, $09 ; CPU:$A717 PRG:2717 14 15 15 15 17 17 17 17 1F 83 02 99 09 09 09 09
.byte $98, $09, $09, $09, $09, $99, $09, $09, $09, $09, $98, $09, $09, $09, $09, $84 ; CPU:$A727 PRG:2727 98 09 09 09 09 99 09 09 09 09 98 09 09 09 09 84
.byte $83, $02, $99, $05, $05, $05, $05, $98, $05, $05, $05, $05, $99, $05, $05, $05 ; CPU:$A737 PRG:2737 83 02 99 05 05 05 05 98 05 05 05 05 99 05 05 05
.byte $05, $98, $05, $05, $05, $05, $84, $99, $02, $02, $02, $02, $98, $02, $02, $02 ; CPU:$A747 PRG:2747 05 98 05 05 05 05 84 99 02 02 02 02 98 02 02 02
.byte $02, $99, $02, $02, $02, $02, $98, $02, $02, $02, $02, $99, $02, $02, $02, $02 ; CPU:$A757 PRG:2757 02 99 02 02 02 02 98 02 02 02 02 99 02 02 02 02
.byte $98, $02, $02, $02, $02, $99, $12, $98, $12, $99, $12, $98, $12, $99, $14, $98 ; CPU:$A767 PRG:2767 98 02 02 02 02 99 12 98 12 99 12 98 12 99 14 98
.byte $14, $99, $14, $98, $14, $99, $14, $98, $14, $99, $14, $98, $14, $99, $24, $98 ; CPU:$A777 PRG:2777 14 99 14 98 14 99 14 98 14 99 14 98 14 99 24 98
.byte $04, $99, $14, $14, $14, $15, $15, $17, $81, $79, $A6, $93, $05, $0A, $0F, $14 ; CPU:$A787 PRG:2787 04 99 14 14 14 15 15 17 81 79 A6 93 05 0A 0F 14
.byte $1E, $28, $3C, $50, $95, $03, $97, $A6, $83, $04, $3F, $3F, $3F, $A4, $3F, $84 ; CPU:$A797 PRG:2797 1E 28 3C 50 95 03 97 A6 83 04 3F 3F 3F A4 3F 84
.byte $83, $02, $3F, $A4, $5F, $A4, $3F, $84, $83, $02, $3F, $A4, $3F, $1F, $A4, $1F ; CPU:$A7A7 PRG:27A7 83 02 3F A4 5F A4 3F 84 83 02 3F A4 3F 1F A4 1F
.byte $A4, $3F, $84, $83, $06, $3F, $A4, $5F, $A4, $3F, $84, $1F, $A4, $3F, $A4, $3F ; CPU:$A7B7 PRG:27B7 A4 3F 84 83 06 3F A4 5F A4 3F 84 1F A4 3F A4 3F
.byte $A4, $1F, $A4, $0F, $A4, $0F, $A4, $1F, $1F, $A4, $3F, $A4, $3F, $A4, $3F, $A4 ; CPU:$A7C7 PRG:27C7 A4 1F A4 0F A4 0F A4 1F 1F A4 3F A4 3F A4 3F A4
.byte $1F, $83, $03, $3F, $A4, $5F, $A4, $3F, $3F, $A4, $3F, $1F, $A4, $1F, $A4, $3F ; CPU:$A7D7 PRG:27D7 1F 83 03 3F A4 5F A4 3F 3F A4 3F 1F A4 1F A4 3F
.byte $84, $3F, $A4, $5F, $A4, $3F, $1F, $A4, $1F, $A4, $1F, $A4, $1F, $A4, $1F, $A4 ; CPU:$A7E7 PRG:27E7 84 3F A4 5F A4 3F 1F A4 1F A4 1F A4 1F A4 1F A4
.byte $1F, $A4, $1F, $A4, $1F, $81, $9B, $A7, $40, $47, $A8, $FF, $FF, $FF, $40, $6B ; CPU:$A7F7 PRG:27F7 1F A4 1F A4 1F 81 9B A7 40 47 A8 FF FF FF 40 6B
.byte $A8, $FF, $FF, $FF, $40, $7F, $A8, $FF, $FF, $FF, $40, $C0, $A8, $FF, $FF, $FF ; CPU:$A807 PRG:2807 A8 FF FF FF 40 7F A8 FF FF FF 40 C0 A8 FF FF FF
.byte $40, $AF, $A8, $FF, $FF, $FF, $40, $FC, $A8, $FF, $FF, $FF, $40, $2B, $A9, $FF ; CPU:$A817 PRG:2817 40 AF A8 FF FF FF 40 FC A8 FF FF FF 40 2B A9 FF
.byte $FF, $FF, $40, $0D, $A9, $FF, $FF, $FF, $40, $53, $A9, $FF, $FF, $FF, $40, $7E ; CPU:$A827 PRG:2827 FF FF 40 0D A9 FF FF FF 40 53 A9 FF FF FF 40 7E
.byte $A9, $FF, $FF, $FF, $40, $CB, $A9, $FF, $FF, $FF, $40, $AE, $A9, $FF, $FF, $FF ; CPU:$A837 PRG:2837 A9 FF FF FF 40 CB A9 FF FF FF 40 AE A9 FF FF FF
.byte $88, $20, $85, $90, $86, $20, $87, $00, $01, $C0, $C0, $01, $00, $00, $00, $8D ; CPU:$A847 PRG:2847 88 20 85 90 86 20 87 00 01 C0 C0 01 00 00 00 8D
.byte $2C, $08, $03, $88, $00, $A7, $A0, $A3, $C0, $A3, $00, $01, $C2, $C2, $01, $00 ; CPU:$A857 PRG:2857 2C 08 03 88 00 A7 A0 A3 C0 A3 00 01 C2 C2 01 00
.byte $00, $00, $0C, $86, $88, $00, $D5, $08, $D5, $80, $D2, $01, $0D, $C1, $C1, $02 ; CPU:$A867 PRG:2867 00 00 0C 86 88 00 D5 08 D5 80 D2 01 0D C1 C1 02
.byte $5A, $D0, $00, $8D, $2C, $08, $12, $86, $88, $80, $04, $00, $00, $00, $00, $3F ; CPU:$A877 PRG:2877 5A D0 00 8D 2C 08 12 86 88 80 04 00 00 00 00 3F
.byte $09, $7F, $00, $00, $57, $00, $00, $8D, $2C, $08, $83, $05, $00, $91, $08, $91 ; CPU:$A887 PRG:2887 09 7F 00 00 57 00 00 8D 2C 08 83 05 00 91 08 91
.byte $06, $84, $88, $00, $03, $00, $00, $00, $00, $00, $01, $7F, $00, $00, $00, $00 ; CPU:$A897 PRG:2897 06 84 88 00 03 00 00 00 00 00 01 7F 00 00 00 00
.byte $00, $83, $0C, $01, $91, $08, $84, $86, $88, $F0, $B0, $71, $B0, $70, $B0, $00 ; CPU:$A8A7 PRG:28A7 00 83 0C 01 91 08 84 86 88 F0 B0 71 B0 70 B0 00
.byte $01, $02, $02, $07, $00, $00, $00, $18, $86, $88, $00, $04, $00, $00, $00, $02 ; CPU:$A8B7 PRG:28B7 01 02 02 07 00 00 00 18 86 88 00 04 00 00 00 02
.byte $00, $05, $7F, $00, $80, $00, $00, $00, $8D, $2C, $08, $83, $06, $00, $8F, $00 ; CPU:$A8C7 PRG:28C7 00 05 7F 00 80 00 00 00 8D 2C 08 83 06 00 8F 00
.byte $80, $8F, $04, $40, $84, $83, $06, $00, $90, $00, $80, $90, $04, $40, $84, $88 ; CPU:$A8D7 PRG:28D7 80 8F 04 40 84 83 06 00 90 00 80 90 04 40 84 88
.byte $00, $06, $00, $00, $00, $00, $00, $01, $7F, $00, $00, $00, $00, $00, $83, $0F ; CPU:$A8E7 PRG:28E7 00 06 00 00 00 00 00 01 7F 00 00 00 00 00 83 0F
.byte $01, $91, $08, $84, $86, $88, $70, $B0, $71, $B0, $35, $B0, $00, $01, $02, $02 ; CPU:$A8F7 PRG:28F7 01 91 08 84 86 88 70 B0 71 B0 35 B0 00 01 02 02
.byte $07, $00, $00, $00, $18, $86, $88, $00, $00, $00, $00, $00, $00, $34, $08, $00 ; CPU:$A907 PRG:2907 07 00 00 00 18 86 88 00 00 00 00 00 00 34 08 00
.byte $00, $00, $5D, $00, $00, $83, $0B, $03, $92, $06, $84, $83, $0B, $03, $91, $06 ; CPU:$A917 PRG:2917 00 00 5D 00 00 83 0B 03 92 06 84 83 0B 03 91 06
.byte $84, $81, $1C, $A9, $88, $00, $00, $00, $00, $00, $00, $3F, $08, $00, $00, $00 ; CPU:$A927 PRG:2927 84 81 1C A9 88 00 00 00 00 00 00 3F 08 00 00 00
.byte $5A, $00, $00, $04, $88, $00, $00, $00, $00, $00, $00, $3F, $08, $00, $00, $00 ; CPU:$A937 PRG:2937 5A 00 00 04 88 00 00 00 00 00 00 3F 08 00 00 00
.byte $4C, $00, $00, $83, $07, $00, $91, $06, $91, $06, $84, $86, $83, $03, $88, $00 ; CPU:$A947 PRG:2947 4C 00 00 83 07 00 91 06 91 06 84 86 83 03 88 00
.byte $00, $80, $00, $80, $00, $00, $06, $00, $BF, $8F, $00, $00, $00, $03, $8D, $09 ; CPU:$A957 PRG:2957 00 80 00 80 00 00 06 00 BF 8F 00 00 00 03 8D 09
.byte $B0, $8D, $0A, $80, $03, $84, $88, $00, $00, $40, $00, $40, $00, $00, $06, $00 ; CPU:$A967 PRG:2967 B0 8D 0A 80 03 84 88 00 00 40 00 40 00 00 06 00
.byte $BF, $8F, $00, $00, $00, $0A, $86, $88, $80, $01, $00, $00, $00, $00, $3F, $09 ; CPU:$A977 PRG:2977 BF 8F 00 00 00 0A 86 88 80 01 00 00 00 00 3F 09
.byte $7F, $00, $00, $57, $00, $00, $83, $08, $00, $91, $08, $91, $06, $84, $88, $80 ; CPU:$A987 PRG:2987 7F 00 00 57 00 00 83 08 00 91 08 91 06 84 88 80
.byte $02, $00, $00, $00, $00, $00, $01, $7F, $00, $00, $00, $00, $00, $8D, $2C, $08 ; CPU:$A997 PRG:2997 02 00 00 00 00 00 01 7F 00 00 00 00 00 8D 2C 08
.byte $83, $0C, $00, $91, $08, $84, $86, $88, $D0, $00, $00, $00, $00, $00, $3F, $09 ; CPU:$A9A7 PRG:29A7 83 0C 00 91 08 84 86 88 D0 00 00 00 00 00 3F 09
.byte $7F, $00, $00, $59, $00, $00, $83, $06, $01, $91, $06, $92, $0B, $90, $00, $48 ; CPU:$A9B7 PRG:29B7 7F 00 00 59 00 00 83 06 01 91 06 92 0B 90 00 48
.byte $91, $08, $84, $86, $88, $00, $00, $00, $00, $00, $00, $3F, $08, $00, $00, $00 ; CPU:$A9C7 PRG:29C7 91 08 84 86 88 00 00 00 00 00 00 3F 08 00 00 00
.byte $58, $00, $00, $83, $12, $00, $92, $0B, $84, $86, $00, $54, $F0, $04, $81, $54 ; CPU:$A9D7 PRG:29D7 58 00 00 83 12 00 92 0B 84 86 00 54 F0 04 81 54
.byte $F0, $04, $81, $54, $F0, $03, $81, $4F, $F0, $04 ; CPU:$A9E7 PRG:29E7 F0 04 81 54 F0 03 81 4F F0 04
; -----------------------------------------------------------------------------
; Routine: Sub_A9F1
; Global: Branch target inside Sub: taken when A9F1.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_A9F1:
jmp Sub_AA1D ; CPU:$A9F1 PRG:29F1 4C 1D AA
; -----------------------------------------------------------------------------
; Routine: Sub_A9F4
; Global: Branch target inside Sub: taken when A9F4.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_A9F4:
jmp Sub_AA7C ; CPU:$A9F4 PRG:29F4 4C 7C AA
; -----------------------------------------------------------------------------
; Routine: Sub_A9F7
; Global: Branch target inside Sub: taken when A9F7.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_A9F7:
jmp Sub_F22F ; CPU:$A9F7 PRG:29F7 4C 2F F2
; ---- data $A9FA-$AA1C (35 bytes) ----
; referenced by `lda $A9FD,x` at $FD8F (operand $A9FD falls inside this region)
; referenced by `lda $A9FE,x` at $FD94 (operand $A9FE falls inside this region)
UnreachedRomData2:
.byte $4C, $EE, $F2, $7D, $AA, $F0, $AB, $3A, $AC, $48, $AD, $8C, $AD, $0D, $AE, $AE ; CPU:$A9FA PRG:-1606 4C EE F2 7D AA F0 AB 3A AC 48 AD 8C AD 0D AE AE
.byte $AE, $B4, $B0, $D5, $B0, $2E, $B2, $03, $B3, $82, $B6, $80, $B7, $3D, $B8, $8B ; CPU:$AA0A PRG:2A0A AE B4 B0 D5 B0 2E B2 03 B3 82 B6 80 B7 3D B8 8B
.byte $B8, $BE, $B8 ; CPU:$AA1A PRG:2A1A B8 BE B8
; -----------------------------------------------------------------------------
; Routine: Sub_AA1D
; Global: Branch target inside Sub: taken when AA1D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_AA1D:
lda #$00 ; CPU:$AA1D PRG:2A1D A9 00
sta ZpD0 ; CPU:$AA1F PRG:2A1F 85 D0
jsr Sub_9BF3 ; CPU:$AA21 PRG:2A21 20 F3 9B
lda Zp73 ; CPU:$AA24 PRG:2A24 A5 73
cmp #$44 ; CPU:$AA26 PRG:2A26 C9 44
bne Sub_Loop64 ; CPU:$AA28 PRG:2A28 D0 12
lda Zp74 ; CPU:$AA2A PRG:2A2A A5 74
cmp #$45 ; CPU:$AA2C PRG:2A2C C9 45
bne Sub_Loop64 ; CPU:$AA2E PRG:2A2E D0 0C
lda Zp75 ; CPU:$AA30 PRG:2A30 A5 75
cmp #$43 ; CPU:$AA32 PRG:2A32 C9 43
bne Sub_Loop64 ; CPU:$AA34 PRG:2A34 D0 06
lda Zp76 ; CPU:$AA36 PRG:2A36 A5 76
cmp #$4F ; CPU:$AA38 PRG:2A38 C9 4F
beq Sub_Loop65 ; CPU:$AA3A PRG:2A3A F0 0C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop64
; Global: Branch target inside Sub: taken when Loop64.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop64:
lda #$05 ; CPU:$AA3C PRG:2A3C A9 05
sta Zp7D ; CPU:$AA3E PRG:2A3E 85 7D
lda #$03 ; CPU:$AA40 PRG:2A40 A9 03
sta Zp7E ; CPU:$AA42 PRG:2A42 85 7E
lda #$00 ; CPU:$AA44 PRG:2A44 A9 00
sta Zp77 ; CPU:$AA46 PRG:2A46 85 77
; -----------------------------------------------------------------------------
; Routine: Sub_Loop65
; Global: Branch target inside Sub: taken when Loop65.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop65:
lda #$01 ; CPU:$AA48 PRG:2A48 A9 01
sta Zp83 ; CPU:$AA4A PRG:2A4A 85 83
sta Zp4F ; CPU:$AA4C PRG:2A4C 85 4F
lda #$00 ; CPU:$AA4E PRG:2A4E A9 00
sta Zp84 ; CPU:$AA50 PRG:2A50 85 84
sta Zp50 ; CPU:$AA52 PRG:2A52 85 50
lda #$44 ; CPU:$AA54 PRG:2A54 A9 44
sta Zp73 ; CPU:$AA56 PRG:2A56 85 73
lda #$45 ; CPU:$AA58 PRG:2A58 A9 45
sta Zp74 ; CPU:$AA5A PRG:2A5A 85 74
lda #$43 ; CPU:$AA5C PRG:2A5C A9 43
sta Zp75 ; CPU:$AA5E PRG:2A5E 85 75
lda #$4F ; CPU:$AA60 PRG:2A60 A9 4F
sta Zp76 ; CPU:$AA62 PRG:2A62 85 76
lda #$00 ; CPU:$AA64 PRG:2A64 A9 00
sta Zp78 ; CPU:$AA66 PRG:2A66 85 78
sta Zp79 ; CPU:$AA68 PRG:2A68 85 79
sta ZpB1 ; CPU:$AA6A PRG:2A6A 85 B1
sta ZpB2 ; CPU:$AA6C PRG:2A6C 85 B2
sta ZpB3 ; CPU:$AA6E PRG:2A6E 85 B3
sta ZpB4 ; CPU:$AA70 PRG:2A70 85 B4
sta Zp7A ; CPU:$AA72 PRG:2A72 85 7A
sta ZpAF ; CPU:$AA74 PRG:2A74 85 AF
lda #$00 ; CPU:$AA76 PRG:2A76 A9 00
jsr Sub_FD40 ; CPU:$AA78 PRG:2A78 20 40 FD
rts ; CPU:$AA7B PRG:2A7B 60
; -----------------------------------------------------------------------------
; Routine: Sub_AA7C
; Global: Branch target inside Sub: taken when AA7C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_AA7C:
rts ; CPU:$AA7C PRG:2A7C 60
; -----------------------------------------------------------------------------
; Routine: Label_AA7D
; Global: Branch target inside Label: taken when AA7D.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_AA7D:
lda #$00 ; CPU:$AA7D PRG:2A7D A9 00
sta Zp10 ; CPU:$AA7F PRG:2A7F 85 10
sta Zp0F ; CPU:$AA81 PRG:2A81 85 0F
lda PpuCtrlShadow ; CPU:$AA83 PRG:2A83 A5 0D
ora #$02 ; CPU:$AA85 PRG:2A85 09 02
sta PpuCtrlShadow ; CPU:$AA87 PRG:2A87 85 0D
jsr Sub_FD2E ; CPU:$AA89 PRG:2A89 20 2E FD
jsr Sub_FD1F ; CPU:$AA8C PRG:2A8C 20 1F FD
ldx #$AC ; CPU:$AA8F PRG:2A8F A2 AC
ldy #$C6 ; CPU:$AA91 PRG:2A91 A0 C6
lda #$00 ; CPU:$AA93 PRG:2A93 A9 00
jsr Sub_FD28 ; CPU:$AA95 PRG:2A95 20 28 FD
ldx #$AB ; CPU:$AA98 PRG:2A98 A2 AB
ldy #$05 ; CPU:$AA9A PRG:2A9A A0 05
jsr Sub_FD3A ; CPU:$AA9C PRG:2A9C 20 3A FD
ldx #$AB ; CPU:$AA9F PRG:2A9F A2 AB
ldy #$48 ; CPU:$AAA1 PRG:2AA1 A0 48
jsr Sub_FD3A ; CPU:$AAA3 PRG:2AA3 20 3A FD
ldx #$AB ; CPU:$AAA6 PRG:2AA6 A2 AB
ldy #$54 ; CPU:$AAA8 PRG:2AA8 A0 54
jsr Sub_FD3A ; CPU:$AAAA PRG:2AAA 20 3A FD
ldx #$AB ; CPU:$AAAD PRG:2AAD A2 AB
ldy #$6A ; CPU:$AAAF PRG:2AAF A0 6A
; -----------------------------------------------------------------------------
; Routine: Label_AAB1
; Global: Branch target inside Label: taken when AAB1.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_AAB1:
jsr Sub_FD3A ; CPU:$AAB1 PRG:2AB1 20 3A FD
ldx #$AB ; CPU:$AAB4 PRG:2AB4 A2 AB
ldy #$72 ; CPU:$AAB6 PRG:2AB6 A0 72
jsr Sub_FD3A ; CPU:$AAB8 PRG:2AB8 20 3A FD
ldx #$AB ; CPU:$AABB PRG:2ABB A2 AB
ldy #$C4 ; CPU:$AABD PRG:2ABD A0 C4
jsr Sub_FD3A ; CPU:$AABF PRG:2ABF 20 3A FD
ldx #$AB ; CPU:$AAC2 PRG:2AC2 A2 AB
ldy #$CC ; CPU:$AAC4 PRG:2AC4 A0 CC
jsr Sub_F1C3 ; CPU:$AAC6 PRG:2AC6 20 C3 F1
lda Zp77 ; CPU:$AAC9 PRG:2AC9 A5 77
and #$20 ; CPU:$AACB PRG:2ACB 29 20
bne Sub_Loop66 ; CPU:$AACD PRG:2ACD D0 0E
ldx #$AB ; CPU:$AACF PRG:2ACF A2 AB
ldy #$BB ; CPU:$AAD1 PRG:2AD1 A0 BB
jsr Sub_FD3A ; CPU:$AAD3 PRG:2AD3 20 3A FD
ldx #$AB ; CPU:$AAD6 PRG:2AD6 A2 AB
ldy #$C0 ; CPU:$AAD8 PRG:2AD8 A0 C0
jsr Sub_F1C3 ; CPU:$AADA PRG:2ADA 20 C3 F1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop66
; Global: Branch target inside Sub: taken when Loop66.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop66:
jsr Sub_AC9A ; CPU:$AADD PRG:2ADD 20 9A AC
ldx #$AB ; CPU:$AAE0 PRG:2AE0 A2 AB
ldy #$D0 ; CPU:$AAE2 PRG:2AE2 A0 D0
jsr Sub_FD3A ; CPU:$AAE4 PRG:2AE4 20 3A FD
ldx #$AB ; CPU:$AAE7 PRG:2AE7 A2 AB
ldy #$EB ; CPU:$AAE9 PRG:2AE9 A0 EB
jsr Sub_FD3A ; CPU:$AAEB PRG:2AEB 20 3A FD
jsr Sub_FD31 ; CPU:$AAEE PRG:2AEE 20 31 FD
lda #$00 ; CPU:$AAF1 PRG:2AF1 A9 00
sta Zp79 ; CPU:$AAF3 PRG:2AF3 85 79
sta ZpB1 ; CPU:$AAF5 PRG:2AF5 85 B1
sta ZpB2 ; CPU:$AAF7 PRG:2AF7 85 B2
sta ZpB3 ; CPU:$AAF9 PRG:2AF9 85 B3
sta ZpB4 ; CPU:$AAFB PRG:2AFB 85 B4
lda #$01 ; CPU:$AAFD PRG:2AFD A9 01
jsr Sub_FD40 ; CPU:$AAFF PRG:2AFF 20 40 FD
jmp Sub_FD13 ; CPU:$AB02 PRG:2B02 4C 13 FD
; ---- data $AB05-$AC7E (378 bytes) ----
LevelGraphicData:
.byte $E7, $20, $20, $07, $20, $20, $20, $20, $20, $20, $07, $1F, $06, $08, $0B, $0D ; CPU:$AB05 PRG:-14FB E7 20 20 07 20 20 20 20 20 20 07 1F 06 08 0B 0D
.byte $10, $0D, $10, $06, $08, $0B, $13, $14, $0D, $10, $19, $1A, $1B, $1F, $20, $09 ; CPU:$AB15 PRG:2B15 10 0D 10 06 08 0B 13 14 0D 10 19 1A 1B 1F 20 09
.byte $09, $0E, $11, $17, $18, $1E, $23, $09, $15, $16, $0E, $11, $09, $09, $09, $1F ; CPU:$AB25 PRG:2B25 09 0E 11 17 18 1E 23 09 15 16 0E 11 09 09 09 1F
.byte $20, $0A, $0C, $0F, $12, $0F, $1D, $22, $24, $0C, $0A, $0C, $0F, $12, $1C, $1C ; CPU:$AB35 PRG:2B35 20 0A 0C 0F 12 0F 1D 22 24 0C 0A 0C 0F 12 1C 1C
.byte $1C, $22, $FF, $8B, $21, $57, $52, $45, $53, $54, $4C, $49, $4E, $47, $FF, $CC ; CPU:$AB45 PRG:2B45 1C 22 FF 8B 21 57 52 45 53 54 4C 49 4E 47 FF CC
.byte $21, $31, $20, $50, $4C, $41, $59, $45, $52, $1F, $1F, $32, $20, $50, $4C, $41 ; CPU:$AB55 PRG:2B55 21 31 20 50 4C 41 59 45 52 1F 1F 32 20 50 4C 41
.byte $59, $45, $52, $53, $FF, $4F, $22, $27, $28, $1F, $29, $2A, $FF, $A2, $22, $4C ; CPU:$AB65 PRG:2B65 59 45 52 53 FF 4F 22 27 28 1F 29 2A FF A2 22 4C
.byte $49, $43, $45, $4E, $53, $45, $44, $20, $42, $59, $1F, $20, $20, $20, $20, $4E ; CPU:$AB75 PRG:2B75 49 43 45 4E 53 45 44 20 42 59 1F 20 20 20 20 4E
.byte $49, $4E, $54, $45, $4E, $44, $4F, $20, $4F, $46, $20, $41, $4D, $45, $52, $49 ; CPU:$AB85 PRG:2B85 49 4E 54 45 4E 44 4F 20 4F 46 20 41 4D 45 52 49
.byte $43, $41, $20, $49, $4E, $43, $2E, $1F, $1F, $5E, $20, $31, $39, $38, $36, $20 ; CPU:$AB95 PRG:2B95 43 41 20 49 4E 43 2E 1F 1F 5E 20 31 39 38 36 20
.byte $44, $41, $54, $41, $20, $45, $41, $53, $54, $20, $55, $2E, $53, $2E, $41, $2E ; CPU:$ABA5 PRG:2BA5 44 41 54 41 20 45 41 53 54 20 55 2E 53 2E 41 2E
.byte $20, $49, $4E, $43, $2E, $FF, $62, $20, $31, $50, $FF, $4F, $00, $85, $20, $6C ; CPU:$ABB5 PRG:2BB5 20 49 4E 43 2E FF 62 20 31 50 FF 4F 00 85 20 6C
.byte $20, $43, $48, $41, $4D, $50, $FF, $7D, $00, $8F, $20, $C0, $23, $75, $75, $75 ; CPU:$ABC5 PRG:2BC5 20 43 48 41 4D 50 FF 7D 00 8F 20 C0 23 75 75 75
.byte $75, $75, $75, $75, $75, $20, $20, $40, $A0, $20, $20, $20, $20, $CA, $CA, $CA ; CPU:$ABD5 PRG:2BD5 75 75 75 75 75 20 20 40 A0 20 20 20 20 CA CA CA
.byte $CA, $CA, $CA, $CA, $CA, $FF, $E3, $23, $E0, $50, $FF, $A5, $13, $C9, $F0, $F0 ; CPU:$ABE5 PRG:2BE5 CA CA CA CA CA FF E3 23 E0 50 FF A5 13 C9 F0 F0
.byte $1C, $48, $20, $D6, $AC, $A2, $00, $68, $85, $10, $8E, $05, $20, $8D, $05, $20 ; CPU:$ABF5 PRG:2BF5 1C 48 20 D6 AC A2 00 68 85 10 8E 05 20 8D 05 20
.byte $A5, $78, $D0, $09, $20, $2B, $FD, $A5, $18, $29, $0C, $F0, $23, $A5, $0D, $29 ; CPU:$AC05 PRG:2C05 A5 78 D0 09 20 2B FD A5 18 29 0C F0 23 A5 0D 29
.byte $FD, $85, $0D, $8D, $00, $20, $A9, $00, $85, $78, $85, $0F, $85, $10, $8D, $05 ; CPU:$AC15 PRG:2C15 FD 85 0D 8D 00 20 A9 00 85 78 85 0F 85 10 8D 05
.byte $20, $8D, $05, $20, $A9, $0C, $85, $B0, $A9, $02, $20, $40, $FD, $4C, $37, $AC ; CPU:$AC25 PRG:2C25 20 8D 05 20 A9 0C 85 B0 A9 02 20 40 FD 4C 37 AC
.byte $E6, $13, $4C, $13, $FD, $A5, $14, $C9, $02, $F0, $41, $20, $D6, $AC, $20, $2B ; CPU:$AC35 PRG:2C35 E6 13 4C 13 FD A5 14 C9 02 F0 41 20 D6 AC 20 2B
.byte $FD, $A5, $18, $AA, $45, $B0, $85, $1A, $8A, $85, $B0, $25, $1A, $85, $1A, $29 ; CPU:$AC45 PRG:2C45 FD A5 18 AA 45 B0 85 1A 8A 85 B0 25 1A 85 1A 29
.byte $04, $D0, $0F, $A5, $1A, $29, $08, $F0, $1A, $A5, $77, $85, $7B, $A9, $03, $4C ; CPU:$AC55 PRG:2C55 04 D0 0F A5 1A 29 08 F0 1A A5 77 85 7B A9 03 4C
.byte $8B, $AC, $A5, $77, $49, $20, $85, $77, $20, $9A, $AC, $A9, $02, $20, $40, $FD ; CPU:$AC65 PRG:2C65 8B AC A5 77 49 20 85 77 20 9A AC A9 02 20 40 FD
.byte $4C, $97, $AC, $E6, $13, $D0, $1B, $E6, $14, $4C ; CPU:$AC75 PRG:2C75 4C 97 AC E6 13 D0 1B E6 14 4C
; -----------------------------------------------------------------------------
; Routine: Label_AC7F
; Global: Branch target inside Label: taken when AC7F.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_AC7F:
.byte $97, $AC ; CPU:$AC7F PRG:2C7F 97 AC -- sax ZpAC,y (undocumented; ca65 cannot encode)
lda #$00 ; CPU:$AC81 PRG:2C81 A9 00
sta Zp79 ; CPU:$AC83 PRG:2C83 85 79
lda #$80 ; CPU:$AC85 PRG:2C85 A9 80
sta Zp7B ; CPU:$AC87 PRG:2C87 85 7B
lda #$03 ; CPU:$AC89 PRG:2C89 A9 03
jsr Sub_FD40 ; CPU:$AC8B PRG:2C8B 20 40 FD
jsr Sub_FD2E ; CPU:$AC8E PRG:2C8E 20 2E FD
jsr Sub_FD1F ; CPU:$AC91 PRG:2C91 20 1F FD
jsr Sub_FD31 ; CPU:$AC94 PRG:2C94 20 31 FD
jmp Sub_FD13 ; CPU:$AC97 PRG:2C97 4C 13 FD
; -----------------------------------------------------------------------------
; Routine: Sub_AC9A
; Global: Branch target inside Sub: taken when AC9A.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_AC9A:
ldx #$21 ; CPU:$AC9A PRG:2C9A A2 21
ldy #$CA ; CPU:$AC9C PRG:2C9C A0 CA
jsr Sub_FD34 ; CPU:$AC9E PRG:2C9E 20 34 FD
ldx #$00 ; CPU:$ACA1 PRG:2CA1 A2 00
lda Zp77 ; CPU:$ACA3 PRG:2CA3 A5 77
and #$20 ; CPU:$ACA5 PRG:2CA5 29 20
bne Sub_Loop67 ; CPU:$ACA7 PRG:2CA7 D0 02
ldx #$3F ; CPU:$ACA9 PRG:2CA9 A2 3F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop67
; Global: Branch target inside Sub: taken when Loop67.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop67:
stx PPUDATA ; CPU:$ACAB PRG:2CAB 8E 07 20
ldx #$22 ; CPU:$ACAE PRG:2CAE A2 22
ldy #$0A ; CPU:$ACB0 PRG:2CB0 A0 0A
jsr Sub_FD34 ; CPU:$ACB2 PRG:2CB2 20 34 FD
ldx #$00 ; CPU:$ACB5 PRG:2CB5 A2 00
lda Zp77 ; CPU:$ACB7 PRG:2CB7 A5 77
and #$20 ; CPU:$ACB9 PRG:2CB9 29 20
beq Sub_Loop68 ; CPU:$ACBB PRG:2CBB F0 02
ldx #$3F ; CPU:$ACBD PRG:2CBD A2 3F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop68
; Global: Branch target inside Sub: taken when Loop68.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop68:
stx PPUDATA ; CPU:$ACBF PRG:2CBF 8E 07 20
jsr Sub_FD37 ; CPU:$ACC2 PRG:2CC2 20 37 FD
rts ; CPU:$ACC5 PRG:2CC5 60
; ---- data $ACC6-$AD0B (70 bytes) ----
LevelTilePatternData:
.byte $0F, $10, $0F, $0F, $0F, $16, $0F, $0F, $0F, $01, $16, $10, $0F, $26, $16, $10 ; CPU:$ACC6 PRG:-133A 0F 10 0F 0F 0F 16 0F 0F 0F 01 16 10 0F 26 16 10
.byte $20, $2B, $FD, $A5, $79, $30, $38, $A5, $B4, $C9, $0A, $B0, $15, $A5, $B1, $49 ; CPU:$ACD6 PRG:2CD6 20 2B FD A5 79 30 38 A5 B4 C9 0A B0 15 A5 B1 49
.byte $FF, $25, $15, $F0, $06, $A6, $B4, $95, $B5, $E6, $B4, $A5, $15, $85, $B1, $4C ; CPU:$ACE6 PRG:2CE6 FF 25 15 F0 06 A6 B4 95 B5 E6 B4 A5 15 85 B1 4C
.byte $3D, $AD, $A2, $00, $B5, $B5, $DD, $3E, $AD, $D0, $11, $E8, $E0, $0A, $D0, $F4 ; CPU:$ACF6 PRG:2CF6 3D AD A2 00 B5 B5 DD 3E AD D0 11 E8 E0 0A D0 F4
.byte $A9, $80, $85, $79, $A9, $00 ; CPU:$AD06 PRG:2D06 A9 80 85 79 A9 00
; -----------------------------------------------------------------------------
; Routine: Label_AD0C
; Global: Branch target inside Label: taken when AD0C.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_AD0C:
sta ZpB1 ; CPU:$AD0C PRG:2D0C 85 B1
lda #$FF ; CPU:$AD0E PRG:2D0E A9 FF
sta Zp7A ; CPU:$AD10 PRG:2D10 85 7A
jmp Sub_AD3D ; CPU:$AD12 PRG:2D12 4C 3D AD
; -----------------------------------------------------------------------------
; Routine: Label_AD15
; Global: Branch target inside Label: taken when AD15.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_AD15:
lda ZpB1 ; CPU:$AD15 PRG:2D15 A5 B1
eor #$FF ; CPU:$AD17 PRG:2D17 49 FF
and Zp15 ; CPU:$AD19 PRG:2D19 25 15
and #$01 ; CPU:$AD1B PRG:2D1B 29 01
beq Sub_Loop70 ; CPU:$AD1D PRG:2D1D F0 1A
lda ZpB3 ; CPU:$AD1F PRG:2D1F A5 B3
cmp #$09 ; CPU:$AD21 PRG:2D21 C9 09
bne Sub_Loop69 ; CPU:$AD23 PRG:2D23 D0 06
lda ZpB2 ; CPU:$AD25 PRG:2D25 A5 B2
cmp #$09 ; CPU:$AD27 PRG:2D27 C9 09
beq Sub_Loop70 ; CPU:$AD29 PRG:2D29 F0 0E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop69
; Global: Branch target inside Sub: taken when Loop69.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop69:
inc ZpB2 ; CPU:$AD2B PRG:2D2B E6 B2
lda ZpB2 ; CPU:$AD2D PRG:2D2D A5 B2
cmp #$0A ; CPU:$AD2F PRG:2D2F C9 0A
bcc Sub_Loop70 ; CPU:$AD31 PRG:2D31 90 06
lda #$00 ; CPU:$AD33 PRG:2D33 A9 00
sta ZpB2 ; CPU:$AD35 PRG:2D35 85 B2
inc ZpB3 ; CPU:$AD37 PRG:2D37 E6 B3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop70
; Global: Branch target inside Sub: taken when Loop70.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop70:
lda Zp15 ; CPU:$AD39 PRG:2D39 A5 15
sta ZpB1 ; CPU:$AD3B PRG:2D3B 85 B1
; -----------------------------------------------------------------------------
; Routine: Sub_AD3D
; Global: Branch target inside Sub: taken when AD3D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_AD3D:
rts ; CPU:$AD3D PRG:2D3D 60
; ---- data $AD3E-$AD9C (95 bytes) ----
LevelObjectPlacementData:
.byte $10, $80, $20, $40, $20, $80, $10, $40, $01, $02, $A2, $AD, $A0, $7C, $84, $22 ; CPU:$AD3E PRG:-12C2 10 80 20 40 20 80 10 40 01 02 A2 AD A0 7C 84 22
.byte $86, $23, $A0, $00, $B1, $22, $99, $00, $02, $C8, $C0, $10, $D0, $F6, $A5, $7B ; CPU:$AD4E PRG:2D4E 86 23 A0 00 B1 22 99 00 02 C8 C0 10 D0 F6 A5 7B
.byte $29, $20, $D0, $09, $A5, $7A, $F0, $05, $A9, $27, $8D, $01, $02, $A2, $02, $A0 ; CPU:$AD5E PRG:2D5E 29 20 D0 09 A5 7A F0 05 A9 27 8D 01 02 A2 02 A0
.byte $00, $A9, $00, $20, $28, $FD, $A9, $04, $20, $40, $FD, $4C, $13, $FD, $0F, $1A ; CPU:$AD6E PRG:2D6E 00 A9 00 20 28 FD A9 04 20 40 FD 4C 13 FD 0F 1A
.byte $37, $16, $0F, $01, $37, $16, $0F, $00, $37, $16, $0F, $16, $37, $16, $A5, $7B ; CPU:$AD7E PRG:2D7E 37 16 0F 01 37 16 0F 00 37 16 0F 16 37 16 A5 7B
.byte $30, $0B, $A2, $00, $A9, $00, $95, $32, $E8, $E0, $41, $D0, $F9, $A9, $00 ; CPU:$AD8E PRG:2D8E 30 0B A2 00 A9 00 95 32 E8 E0 41 D0 F9 A9 00
; -----------------------------------------------------------------------------
; Routine: Label_AD9D
; Global: Branch target inside Label: taken when AD9D.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_AD9D:
sta Zp87 ; CPU:$AD9D PRG:2D9D 85 87
sta Zp88 ; CPU:$AD9F PRG:2D9F 85 88
sta Zp8A ; CPU:$ADA1 PRG:2DA1 85 8A
lda Zp7B ; CPU:$ADA3 PRG:2DA3 A5 7B
bmi Sub_Loop73 ; CPU:$ADA5 PRG:2DA5 30 52
ldx #$05 ; CPU:$ADA7 PRG:2DA7 A2 05
lda Zp7B ; CPU:$ADA9 PRG:2DA9 A5 7B
and #$20 ; CPU:$ADAB PRG:2DAB 29 20
bne Sub_Loop71 ; CPU:$ADAD PRG:2DAD D0 1E
ldx #$00 ; CPU:$ADAF PRG:2DAF A2 00
; -----------------------------------------------------------------------------
; Routine: Label_ADB1
; Global: Branch target inside Label: taken when ADB1.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ADB1:
jsr Sub_F028 ; CPU:$ADB1 PRG:2DB1 20 28 F0
cmp #$24 ; CPU:$ADB4 PRG:2DB4 C9 24
bcs Sub_Loop71 ; CPU:$ADB6 PRG:2DB6 B0 15
inx ; CPU:$ADB8 PRG:2DB8 E8
cmp #$1A ; CPU:$ADB9 PRG:2DB9 C9 1A
bcs Sub_Loop71 ; CPU:$ADBB PRG:2DBB B0 10
inx ; CPU:$ADBD PRG:2DBD E8
cmp #$10 ; CPU:$ADBE PRG:2DBE C9 10
bcs Sub_Loop71 ; CPU:$ADC0 PRG:2DC0 B0 0B
inx ; CPU:$ADC2 PRG:2DC2 E8
cmp #$09 ; CPU:$ADC3 PRG:2DC3 C9 09
bcs Sub_Loop71 ; CPU:$ADC5 PRG:2DC5 B0 06
inx ; CPU:$ADC7 PRG:2DC7 E8
cmp #$04 ; CPU:$ADC8 PRG:2DC8 C9 04
bcs Sub_Loop71 ; CPU:$ADCA PRG:2DCA B0 01
inx ; CPU:$ADCC PRG:2DCC E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop71
; Global: Branch target inside Sub: taken when Loop71.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop71:
txa ; CPU:$ADCD PRG:2DCD 8A
asl a ; CPU:$ADCE PRG:2DCE 0A
; -----------------------------------------------------------------------------
; Routine: Label_ADCF
; Global: Branch target inside Label: taken when ADCF.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ADCF:
tax ; CPU:$ADCF PRG:2DCF AA
lda $AE01,x ; CPU:$ADD0 PRG:2DD0 BD 01 AE
sta Zp84 ; CPU:$ADD3 PRG:2DD3 85 84
lda $AE02,x ; CPU:$ADD5 PRG:2DD5 BD 02 AE
sta Zp83 ; CPU:$ADD8 PRG:2DD8 85 83
lda Zp7B ; CPU:$ADDA PRG:2DDA A5 7B
and #$20 ; CPU:$ADDC PRG:2DDC 29 20
bne Sub_Loop73 ; CPU:$ADDE PRG:2DDE D0 19
lda Zp79 ; CPU:$ADE0 PRG:2DE0 A5 79
bpl Sub_Loop73 ; CPU:$ADE2 PRG:2DE2 10 15
lda ZpB2 ; CPU:$ADE4 PRG:2DE4 A5 B2
ora ZpB3 ; CPU:$ADE6 PRG:2DE6 05 B3
bne Sub_Loop72 ; CPU:$ADE8 PRG:2DE8 D0 07
lda #$00 ; CPU:$ADEA PRG:2DEA A9 00
sta Zp79 ; CPU:$ADEC PRG:2DEC 85 79
jmp Sub_Loop73 ; CPU:$ADEE PRG:2DEE 4C F9 AD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop72
; Global: Branch target inside Sub: taken when Loop72.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop72:
lda ZpB2 ; CPU:$ADF1 PRG:2DF1 A5 B2
sta Zp83 ; CPU:$ADF3 PRG:2DF3 85 83
lda ZpB3 ; CPU:$ADF5 PRG:2DF5 A5 B3
sta Zp84 ; CPU:$ADF7 PRG:2DF7 85 84
; -----------------------------------------------------------------------------
; Routine: Sub_Loop73
; Global: Branch target inside Sub: taken when Loop73.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop73:
lda #$05 ; CPU:$ADF9 PRG:2DF9 A9 05
jsr Sub_FD40 ; CPU:$ADFB PRG:2DFB 20 40 FD
jmp Sub_FD13 ; CPU:$ADFE PRG:2DFE 4C 13 FD
; ---- data $AE01-$AF9F (415 bytes) ----
; referenced by `lda $AE01,x` at $ADD0 (operand $AE01 falls inside this region)
; referenced by `lda $AE02,x` at $ADD5 (operand $AE02 falls inside this region)
WrestlerParameterTable:
.byte $03, $06, $02, $06, $01, $06, $00, $09, $00, $04, $00, $01, $A5, $7B, $30, $43 ; CPU:$AE01 PRG:-11FF 03 06 02 06 01 06 00 09 00 04 00 01 A5 7B 30 43
.byte $A5, $13, $D0, $36, $20, $2E, $FD, $20, $1F, $FD, $A2, $AE, $A0, $61, $A5, $7B ; CPU:$AE11 PRG:2E11 A5 13 D0 36 20 2E FD 20 1F FD A2 AE A0 61 A5 7B
.byte $29, $20, $F0, $1D, $A2, $AE, $A0, $83, $A5, $83, $C9, $01, $F0, $0C, $A2, $AE ; CPU:$AE21 PRG:2E21 29 20 F0 1D A2 AE A0 83 A5 83 C9 01 F0 0C A2 AE
.byte $A0, $91, $C9, $02, $F0, $04, $A2, $AE, $A0, $A0, $20, $3A, $FD, $A2, $AE, $A0 ; CPU:$AE31 PRG:2E31 A0 91 C9 02 F0 04 A2 AE A0 A0 20 3A FD A2 AE A0
.byte $71, $20, $3A, $FD, $20, $31, $FD, $4C, $5C, $AE, $C9, $60, $90, $0D, $A9, $06 ; CPU:$AE41 PRG:2E41 71 20 3A FD 20 31 FD 4C 5C AE C9 60 90 0D A9 06
.byte $20, $3D, $F0, $A9, $06, $20, $40, $FD, $4C, $5E, $AE, $E6, $13, $4C, $13, $FD ; CPU:$AE51 PRG:2E51 20 3D F0 A9 06 20 40 FD 4C 5E AE E6 13 4C 13 FD
.byte $EA, $21, $50, $4C, $41, $59, $45, $52, $20, $52, $45, $41, $44, $59, $21, $FF ; CPU:$AE61 PRG:2E61 EA 21 50 4C 41 59 45 52 20 52 45 41 44 59 21 FF
.byte $E9, $21, $32, $20, $50, $4C, $41, $59, $45, $52, $20, $52, $45, $41, $44, $59 ; CPU:$AE71 PRG:2E71 E9 21 32 20 50 4C 41 59 45 52 20 52 45 41 44 59
.byte $21, $FF, $2A, $21, $46, $49, $52, $53, $54, $20, $4D, $41, $54, $43, $48, $FF ; CPU:$AE81 PRG:2E81 21 FF 2A 21 46 49 52 53 54 20 4D 41 54 43 48 FF
.byte $2A, $21, $53, $45, $43, $4F, $4E, $44, $20, $4D, $41, $54, $43, $48, $FF, $2A ; CPU:$AE91 PRG:2E91 2A 21 53 45 43 4F 4E 44 20 4D 41 54 43 48 FF 2A
.byte $21, $54, $48, $49, $52, $44, $20, $4D, $41, $54, $43, $48, $FF, $20, $2E, $FD ; CPU:$AEA1 PRG:2EA1 21 54 48 49 52 44 20 4D 41 54 43 48 FF 20 2E FD
.byte $20, $1F, $FD, $A2, $00, $A9, $00, $95, $32, $E8, $E0, $13, $D0, $F9, $85, $6D ; CPU:$AEB1 PRG:2EB1 20 1F FD A2 00 A9 00 95 32 E8 E0 13 D0 F9 85 6D
.byte $85, $6E, $85, $6F, $85, $70, $85, $71, $85, $72, $A9, $40, $85, $35, $A9, $40 ; CPU:$AEC1 PRG:2EC1 85 6E 85 6F 85 70 85 71 85 72 A9 40 85 35 A9 40
.byte $A0, $70, $A2, $60, $85, $45, $84, $46, $86, $47, $A9, $00, $A0, $60, $A2, $AE ; CPU:$AED1 PRG:2ED1 A0 70 A2 60 85 45 84 46 86 47 A9 00 A0 60 A2 AE
.byte $85, $55, $84, $56, $86, $57, $A9, $40, $A0, $B0, $A2, $2A, $85, $4A, $84, $4B ; CPU:$AEE1 PRG:2EE1 85 55 84 56 86 57 A9 40 A0 B0 A2 2A 85 4A 84 4B
.byte $86, $4C, $A9, $00, $A0, $30, $A2, $B4, $85, $5A, $84, $5B, $86, $5C, $A9, $CA ; CPU:$AEF1 PRG:2EF1 86 4C A9 00 A0 30 A2 B4 85 5A 84 5B 86 5C A9 CA
.byte $85, $69, $A9, $21, $85, $6A, $A9, $C9, $85, $6B, $A9, $21, $85, $6C, $A9, $00 ; CPU:$AF01 PRG:2F01 85 69 A9 21 85 6A A9 C9 85 6B A9 21 85 6C A9 00
.byte $85, $93, $85, $8C, $85, $8D, $85, $9F, $85, $A1, $85, $A3, $85, $A2, $85, $A5 ; CPU:$AF11 PRG:2F11 85 93 85 8C 85 8D 85 9F 85 A1 85 A3 85 A2 85 A5
.byte $85, $A6, $85, $A7, $85, $89, $85, $AB, $A9, $05, $85, $A0, $A9, $18, $85, $48 ; CPU:$AF21 PRG:2F21 85 A6 85 A7 85 89 85 AB A9 05 85 A0 A9 18 85 48
.byte $85, $4D, $85, $58, $85, $5D, $20, $28, $F0, $85, $1A, $A2, $00, $BD, $17, $B0 ; CPU:$AF31 PRG:2F31 85 4D 85 58 85 5D 20 28 F0 85 1A A2 00 BD 17 B0
.byte $95, $B1, $E8, $E0, $10, $D0, $F6, $A5, $7B, $29, $20, $D0, $29, $A2, $00, $A5 ; CPU:$AF41 PRG:2F41 95 B1 E8 E0 10 D0 F6 A5 7B 29 20 D0 29 A2 00 A5
.byte $1A, $C9, $03, $90, $21, $C9, $08, $90, $10, $E8, $C9, $0F, $90, $0B, $E8, $C9 ; CPU:$AF51 PRG:2F51 1A C9 03 90 21 C9 08 90 10 E8 C9 0F 90 0B E8 C9
.byte $19, $90, $06, $E8, $C9, $23, $90, $01, $E8, $8A, $0A, $AA, $BD, $27, $B0, $85 ; CPU:$AF61 PRG:2F61 19 90 06 E8 C9 23 90 01 E8 8A 0A AA BD 27 B0 85
.byte $B4, $BD, $28, $B0, $85, $B8, $A2, $00, $A0, $B1, $A9, $01, $20, $28, $FD, $A9 ; CPU:$AF71 PRG:2F71 B4 BD 28 B0 85 B8 A2 00 A0 B1 A9 01 20 28 FD A9
.byte $80, $85, $8B, $A5, $79, $10, $2E, $A5, $7B, $29, $20, $D0, $28, $A9, $00, $85 ; CPU:$AF81 PRG:2F81 80 85 8B A5 79 10 2E A5 7B 29 20 D0 28 A9 00 85
.byte $79, $A9, $80, $85, $36, $A9, $B0, $85, $41, $A9, $40, $85, $44, $A9, $00 ; CPU:$AF91 PRG:2F91 79 A9 80 85 36 A9 B0 85 41 A9 40 85 44 A9 00
; -----------------------------------------------------------------------------
; Routine: Label_AFA0
; Global: Branch target inside Label: taken when AFA0.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_AFA0:
ldy #$A8 ; CPU:$AFA0 PRG:2FA0 A0 A8
ldx #$60 ; CPU:$AFA2 PRG:2FA2 A2 60
; -----------------------------------------------------------------------------
; Routine: Label_AFA4
; Global: Branch target inside Label: taken when AFA4.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_AFA4:
sta Zp45 ; CPU:$AFA4 PRG:2FA4 85 45
sty Zp46 ; CPU:$AFA6 PRG:2FA6 84 46
stx Zp47 ; CPU:$AFA8 PRG:2FA8 86 47
ldx #$90 ; CPU:$AFAA PRG:2FAA A2 90
sta Zp55 ; CPU:$AFAC PRG:2FAC 85 55
sty Zp56 ; CPU:$AFAE PRG:2FAE 84 56
stx Zp57 ; CPU:$AFB0 PRG:2FB0 86 57
lda #$81 ; CPU:$AFB2 PRG:2FB2 A9 81
sta Zp8B ; CPU:$AFB4 PRG:2FB4 85 8B
lda #$00 ; CPU:$AFB6 PRG:2FB6 A9 00
; -----------------------------------------------------------------------------
; Routine: Label_AFB8
; Global: Branch target inside Label: taken when AFB8.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_AFB8:
sta ZpAA ; CPU:$AFB8 PRG:2FB8 85 AA
lda Zp7B ; CPU:$AFBA PRG:2FBA A5 7B
and #$20 ; CPU:$AFBC PRG:2FBC 29 20
bne Sub_Loop75 ; CPU:$AFBE PRG:2FBE D0 1E
jsr Sub_F028 ; CPU:$AFC0 PRG:2FC0 20 28 F0
cmp #$04 ; CPU:$AFC3 PRG:2FC3 C9 04
beq Sub_Loop74 ; CPU:$AFC5 PRG:2FC5 F0 13
cmp #$09 ; CPU:$AFC7 PRG:2FC7 C9 09
beq Sub_Loop74 ; CPU:$AFC9 PRG:2FC9 F0 0F
cmp #$10 ; CPU:$AFCB PRG:2FCB C9 10
beq Sub_Loop74 ; CPU:$AFCD PRG:2FCD F0 0B
cmp #$1A ; CPU:$AFCF PRG:2FCF C9 1A
beq Sub_Loop74 ; CPU:$AFD1 PRG:2FD1 F0 07
cmp #$24 ; CPU:$AFD3 PRG:2FD3 C9 24
bcs Sub_Loop74 ; CPU:$AFD5 PRG:2FD5 B0 03
jmp Sub_Loop75 ; CPU:$AFD7 PRG:2FD7 4C DE AF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop74
; Global: Branch target inside Sub: taken when Loop74.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop74:
lda #$FF ; CPU:$AFDA PRG:2FDA A9 FF
sta ZpAA ; CPU:$AFDC PRG:2FDC 85 AA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop75
; Global: Branch target inside Sub: taken when Loop75.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop75:
lda Zp83 ; CPU:$AFDE PRG:2FDE A5 83
sta Zp4F ; CPU:$AFE0 PRG:2FE0 85 4F
lda Zp84 ; CPU:$AFE2 PRG:2FE2 A5 84
sta Zp50 ; CPU:$AFE4 PRG:2FE4 85 50
ldx #$B0 ; CPU:$AFE6 PRG:2FE6 A2 B0
ldy #$31 ; CPU:$AFE8 PRG:2FE8 A0 31
jsr Sub_FD3A ; CPU:$AFEA PRG:2FEA 20 3A FD
lda Zp7B ; CPU:$AFED PRG:2FED A5 7B
and #$20 ; CPU:$AFEF PRG:2FEF 29 20
beq Sub_Loop76 ; CPU:$AFF1 PRG:2FF1 F0 11
ldx #$B0 ; CPU:$AFF3 PRG:2FF3 A2 B0
ldy #$A7 ; CPU:$AFF5 PRG:2FF5 A0 A7
jsr Sub_FD3A ; CPU:$AFF7 PRG:2FF7 20 3A FD
ldx #$B0 ; CPU:$AFFA PRG:2FFA A2 B0
ldy #$AF ; CPU:$AFFC PRG:2FFC A0 AF
jsr Sub_FD3A ; CPU:$AFFE PRG:2FFE 20 3A FD
jmp Sub_B007 ; CPU:$B001 PRG:3001 4C 07 B0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop76
; Global: Branch target inside Sub: taken when Loop76.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop76:
jsr Sub_B90D ; CPU:$B004 PRG:3004 20 0D B9
; -----------------------------------------------------------------------------
; Routine: Sub_B007
; Global: Branch target inside Sub: taken when B007.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B007:
jsr Sub_FD31 ; CPU:$B007 PRG:3007 20 31 FD
lda #$0C ; CPU:$B00A PRG:300A A9 0C
jsr Sub_F036 ; CPU:$B00C PRG:300C 20 36 F0
lda #$07 ; CPU:$B00F PRG:300F A9 07
jsr Sub_FD40 ; CPU:$B011 PRG:3011 20 40 FD
jmp Sub_FD13 ; CPU:$B014 PRG:3014 4C 13 FD
; ---- data $B017-$B0C0 (170 bytes) ----
; referenced by `ldy $B028` at $D8EA (operand $B028 falls inside this region)
.byte $0F, $0F, $26, $10, $0F, $0F, $26, $16, $0F, $0F, $16, $16, $0F, $27, $10, $0F ; CPU:$B017 PRG:3017 0F 0F 26 10 0F 0F 26 16 0F 0F 16 16 0F 27 10 0F
.byte $16, $10, $03, $07, $07, $03, $14, $08, $08, $14, $42, $20, $FD, $FD, $FD, $FD ; CPU:$B027 PRG:3027 16 10 03 07 07 03 14 08 08 14 42 20 FD FD FD FD
.byte $FD, $FD, $FD, $FD, $FD, $FD, $20, $F6, $F4, $FA, $F8, $20, $FD, $FD, $FD, $FD ; CPU:$B037 PRG:3037 FD FD FD FD FD FD 20 F6 F4 FA F8 20 FD FD FD FD
.byte $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $1F, $FD, $43, $48, $41, $4D, $50, $20 ; CPU:$B047 PRG:3047 FD FD FD FD FD FD FD FD 1F FD 43 48 41 4D 50 20
.byte $20, $20, $FD, $FC, $F7, $F5, $FB, $F9, $FC, $FD, $31, $50, $20, $20, $20, $20 ; CPU:$B057 PRG:3057 20 20 FD FC F7 F5 FB F9 FC FD 31 50 20 20 20 20
.byte $20, $20, $20, $20, $FD, $1F, $FD, $52, $4F, $55, $4E, $44, $20, $20, $20, $FD ; CPU:$B067 PRG:3067 20 20 20 20 FD 1F FD 52 4F 55 4E 44 20 20 20 FD
.byte $20, $20, $20, $20, $20, $20, $FD, $43, $50, $20, $20, $20, $20, $20, $20, $20 ; CPU:$B077 PRG:3077 20 20 20 20 20 20 FD 43 50 20 20 20 20 20 20 20
.byte $20, $FD, $1F, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $20, $20, $20 ; CPU:$B087 PRG:3087 20 FD 1F FD FD FD FD FD FD FD FD FD FD 20 20 20
.byte $20, $20, $20, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FF ; CPU:$B097 PRG:3097 20 20 20 FD FD FD FD FD FD FD FD FD FD FD FD FF
.byte $83, $20, $20, $20, $20, $20, $20, $FF, $93, $20, $32, $50, $FF, $20, $2E, $FD ; CPU:$B0A7 PRG:30A7 83 20 20 20 20 20 20 FF 93 20 32 50 FF 20 2E FD
.byte $A5, $8B, $29, $01, $D0, $06, $20, $BB, $B9, $4C ; CPU:$B0B7 PRG:30B7 A5 8B 29 01 D0 06 20 BB B9 4C
; -----------------------------------------------------------------------------
; Routine: Label_B0C1
; Global: Branch target inside Label: taken when B0C1.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B0C1:
dec ZpB0 ; CPU:$B0C1 PRG:30C1 C6 B0
jsr Sub_BA70 ; CPU:$B0C3 PRG:30C3 20 70 BA
lda #$00 ; CPU:$B0C6 PRG:30C6 A9 00
; -----------------------------------------------------------------------------
; Routine: Label_B0C8
; Global: Branch target inside Label: taken when B0C8.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B0C8:
sta Zp8B ; CPU:$B0C8 PRG:30C8 85 8B
jsr Sub_FD31 ; CPU:$B0CA PRG:30CA 20 31 FD
lda #$08 ; CPU:$B0CD PRG:30CD A9 08
jsr Sub_FD40 ; CPU:$B0CF PRG:30CF 20 40 FD
jmp Sub_FD13 ; CPU:$B0D2 PRG:30D2 4C 13 FD
; -----------------------------------------------------------------------------
; Routine: Label_B0D5
; Global: Branch target inside Label: taken when B0D5.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B0D5:
ldx #$13 ; CPU:$B0D5 PRG:30D5 A2 13
lda GameState ; CPU:$B0D7 PRG:30D7 A5 36
and #$40 ; CPU:$B0D9 PRG:30D9 29 40
beq Sub_Loop77 ; CPU:$B0DB PRG:30DB F0 02
ldx #$18 ; CPU:$B0DD PRG:30DD A2 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop77
; Global: Branch target inside Sub: taken when Loop77.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop77:
stx WrestlerIndex ; CPU:$B0DF PRG:30DF 86 85
ldx #$23 ; CPU:$B0E1 PRG:30E1 A2 23
lda GameState ; CPU:$B0E3 PRG:30E3 A5 36
and #$20 ; CPU:$B0E5 PRG:30E5 29 20
beq Sub_Loop78 ; CPU:$B0E7 PRG:30E7 F0 02
ldx #$28 ; CPU:$B0E9 PRG:30E9 A2 28
; -----------------------------------------------------------------------------
; Routine: Sub_Loop78
; Global: Branch target inside Sub: taken when Loop78.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop78:
stx WrestlerIndex2 ; CPU:$B0EB PRG:30EB 86 86
lda Zp3E ; CPU:$B0ED PRG:30ED A5 3E
bmi Sub_Loop81 ; CPU:$B0EF PRG:30EF 30 1D
lda Zp3B ; CPU:$B0F1 PRG:30F1 A5 3B
bmi Sub_Loop80 ; CPU:$B0F3 PRG:30F3 30 13
lda Zp37 ; CPU:$B0F5 PRG:30F5 A5 37
bmi Sub_Loop79 ; CPU:$B0F7 PRG:30F7 30 09
jsr Sub_D9E6 ; CPU:$B0F9 PRG:30F9 20 E6 D9
jsr Sub_DA9C ; CPU:$B0FC PRG:30FC 20 9C DA
jmp Sub_B114 ; CPU:$B0FF PRG:30FF 4C 14 B1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop79
; Global: Branch target inside Sub: taken when Loop79.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop79:
jsr Sub_DB3B ; CPU:$B102 PRG:3102 20 3B DB
jmp Sub_B114 ; CPU:$B105 PRG:3105 4C 14 B1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop80
; Global: Branch target inside Sub: taken when Loop80.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop80:
jsr Sub_DC64 ; CPU:$B108 PRG:3108 20 64 DC
jmp Sub_B114 ; CPU:$B10B PRG:310B 4C 14 B1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop81
; Global: Branch target inside Sub: taken when Loop81.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop81:
jsr Sub_E2D2 ; CPU:$B10E PRG:310E 20 D2 E2
jsr Sub_E342 ; CPU:$B111 PRG:3111 20 42 E3
; -----------------------------------------------------------------------------
; Routine: Sub_B114
; Global: Branch target inside Sub: taken when B114.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B114:
jsr Sub_E378 ; CPU:$B114 PRG:3114 20 78 E3
lda GameState ; CPU:$B117 PRG:3117 A5 36
bmi Sub_Loop82 ; CPU:$B119 PRG:3119 30 13
jsr Sub_E401 ; CPU:$B11B PRG:311B 20 01 E4
jsr Sub_E535 ; CPU:$B11E PRG:311E 20 35 E5
lda Zp7B ; CPU:$B121 PRG:3121 A5 7B
bmi Sub_Loop82 ; CPU:$B123 PRG:3123 30 09
lda Zp13 ; CPU:$B125 PRG:3125 A5 13
cmp #$20 ; CPU:$B127 PRG:3127 C9 20
bcs Sub_Loop82 ; CPU:$B129 PRG:3129 B0 03
jmp Sub_Loop95 ; CPU:$B12B PRG:312B 4C 0D B2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop82
; Global: Branch target inside Sub: taken when Loop82.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop82:
jsr Sub_FD2B ; CPU:$B12E PRG:312E 20 2B FD
lda Zp7B ; CPU:$B131 PRG:3131 A5 7B
bpl Sub_Loop83 ; CPU:$B133 PRG:3133 10 03
jsr Sub_EBE4 ; CPU:$B135 PRG:3135 20 E4 EB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop83
; Global: Branch target inside Sub: taken when Loop83.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop83:
lda Zp3E ; CPU:$B138 PRG:3138 A5 3E
bmi Sub_Loop89 ; CPU:$B13A PRG:313A 30 7F
lda Zp3B ; CPU:$B13C PRG:313C A5 3B
bmi Sub_Loop88 ; CPU:$B13E PRG:313E 30 72
lda Zp37 ; CPU:$B140 PRG:3140 A5 37
bmi Sub_Loop87 ; CPU:$B142 PRG:3142 30 65
jsr Sub_BAD2 ; CPU:$B144 PRG:3144 20 D2 BA
cmp #$00 ; CPU:$B147 PRG:3147 C9 00
bne Sub_Loop90 ; CPU:$B149 PRG:3149 D0 79
jsr Sub_BBAF ; CPU:$B14B PRG:314B 20 AF BB
cmp #$00 ; CPU:$B14E PRG:314E C9 00
bne Sub_Loop90 ; CPU:$B150 PRG:3150 D0 72
jsr Sub_BD2E ; CPU:$B152 PRG:3152 20 2E BD
cmp #$00 ; CPU:$B155 PRG:3155 C9 00
bne Sub_Loop90 ; CPU:$B157 PRG:3157 D0 6B
jsr Sub_BD98 ; CPU:$B159 PRG:3159 20 98 BD
lda Zp7B ; CPU:$B15C PRG:315C A5 7B
and #$20 ; CPU:$B15E PRG:315E 29 20
bne Sub_Loop86 ; CPU:$B160 PRG:3160 D0 41
jsr Sub_EC43 ; CPU:$B162 PRG:3162 20 43 EC
jsr Sub_C00D ; CPU:$B165 PRG:3165 20 0D C0
lda GameState ; CPU:$B168 PRG:3168 A5 36
bmi Sub_Loop90 ; CPU:$B16A PRG:316A 30 58
lda GameState ; CPU:$B16C PRG:316C A5 36
and #$10 ; CPU:$B16E PRG:316E 29 10
bne Sub_Loop90 ; CPU:$B170 PRG:3170 D0 52
lda ZpA0 ; CPU:$B172 PRG:3172 A5 A0
bne Sub_Loop85 ; CPU:$B174 PRG:3174 D0 22
lda GameState ; CPU:$B176 PRG:3176 A5 36
ora #$0C ; CPU:$B178 PRG:3178 09 0C
sta GameState ; CPU:$B17A PRG:317A 85 36
ldy #$01 ; CPU:$B17C PRG:317C A0 01
lda Zp84 ; CPU:$B17E PRG:317E A5 84
cmp #$03 ; CPU:$B180 PRG:3180 C9 03
bcs Sub_Loop84 ; CPU:$B182 PRG:3182 B0 0F
ldx Zp83 ; CPU:$B184 PRG:3184 A6 83
ldy $B224,x ; CPU:$B186 PRG:3186 BC 24 B2
lda Zp84 ; CPU:$B189 PRG:3189 A5 84
beq Sub_Loop84 ; CPU:$B18B PRG:318B F0 06
dey ; CPU:$B18D PRG:318D 88
cmp #$01 ; CPU:$B18E PRG:318E C9 01
beq Sub_Loop84 ; CPU:$B190 PRG:3190 F0 01
dey ; CPU:$B192 PRG:3192 88
; -----------------------------------------------------------------------------
; Routine: Sub_Loop84
; Global: Branch target inside Sub: taken when Loop84.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop84:
sty ZpA0 ; CPU:$B193 PRG:3193 84 A0
jmp Sub_Loop90 ; CPU:$B195 PRG:3195 4C C4 B1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop85
; Global: Branch target inside Sub: taken when Loop85.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop85:
lda Zp11 ; CPU:$B198 PRG:3198 A5 11
and #$3F ; CPU:$B19A PRG:319A 29 3F
bne Sub_Loop90 ; CPU:$B19C PRG:319C D0 26
dec ZpA0 ; CPU:$B19E PRG:319E C6 A0
jmp Sub_Loop90 ; CPU:$B1A0 PRG:31A0 4C C4 B1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop86
; Global: Branch target inside Sub: taken when Loop86.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop86:
jsr Sub_C39F ; CPU:$B1A3 PRG:31A3 20 9F C3
jmp Sub_Loop90 ; CPU:$B1A6 PRG:31A6 4C C4 B1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop87
; Global: Branch target inside Sub: taken when Loop87.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop87:
jsr Sub_C6CE ; CPU:$B1A9 PRG:31A9 20 CE C6
jsr Sub_C7F9 ; CPU:$B1AC PRG:31AC 20 F9 C7
jmp Sub_B1B5 ; CPU:$B1AF PRG:31AF 4C B5 B1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop88
; Global: Branch target inside Sub: taken when Loop88.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop88:
jsr Sub_C7FA ; CPU:$B1B2 PRG:31B2 20 FA C7
; -----------------------------------------------------------------------------
; Routine: Sub_B1B5
; Global: Branch target inside Sub: taken when B1B5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B1B5:
jsr Sub_D4AE ; CPU:$B1B5 PRG:31B5 20 AE D4
jmp Sub_Loop90 ; CPU:$B1B8 PRG:31B8 4C C4 B1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop89
; Global: Branch target inside Sub: taken when Loop89.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop89:
jsr Sub_D4AF ; CPU:$B1BB PRG:31BB 20 AF D4
jsr Sub_D5CC ; CPU:$B1BE PRG:31BE 20 CC D5
jsr Sub_D5EB ; CPU:$B1C1 PRG:31C1 20 EB D5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop90
; Global: Branch target inside Sub: taken when Loop90.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop90:
lda GameState ; CPU:$B1C4 PRG:31C4 A5 36
bmi Sub_Loop91 ; CPU:$B1C6 PRG:31C6 30 06
jsr Sub_D615 ; CPU:$B1C8 PRG:31C8 20 15 D6
jsr $D7B4 ; CPU:$B1CB PRG:31CB 20 B4 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop91
; Global: Branch target inside Sub: taken when Loop91.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop91:
jsr Sub_D8ED ; CPU:$B1CE PRG:31CE 20 ED D8
jsr Sub_D948 ; CPU:$B1D1 PRG:31D1 20 48 D9
lda Zp8B ; CPU:$B1D4 PRG:31D4 A5 8B
bpl Sub_Loop92 ; CPU:$B1D6 PRG:31D6 10 05
lda #$07 ; CPU:$B1D8 PRG:31D8 A9 07
jsr Sub_FD40 ; CPU:$B1DA PRG:31DA 20 40 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop92
; Global: Branch target inside Sub: taken when Loop92.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop92:
lda Zp7B ; CPU:$B1DD PRG:31DD A5 7B
bmi Sub_Loop93 ; CPU:$B1DF PRG:31DF 30 03
jsr Sub_BA89 ; CPU:$B1E1 PRG:31E1 20 89 BA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop93
; Global: Branch target inside Sub: taken when Loop93.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop93:
lda Zp7B ; CPU:$B1E4 PRG:31E4 A5 7B
bpl Sub_Loop95 ; CPU:$B1E6 PRG:31E6 10 25
lda Zp18 ; CPU:$B1E8 PRG:31E8 A5 18
tax ; CPU:$B1EA PRG:31EA AA
eor ZpB0 ; CPU:$B1EB PRG:31EB 45 B0
stx ZpB0 ; CPU:$B1ED PRG:31ED 86 B0
sta PlayerState ; CPU:$B1EF PRG:31EF 85 1A
txa ; CPU:$B1F1 PRG:31F1 8A
and PlayerState ; CPU:$B1F2 PRG:31F2 25 1A
and #$0C ; CPU:$B1F4 PRG:31F4 29 0C
beq Sub_Loop94 ; CPU:$B1F6 PRG:31F6 F0 07
lda #$FF ; CPU:$B1F8 PRG:31F8 A9 FF
sta Zp78 ; CPU:$B1FA PRG:31FA 85 78
jmp Sub_B205 ; CPU:$B1FC PRG:31FC 4C 05 B2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop94
; Global: Branch target inside Sub: taken when Loop94.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop94:
lda Zp14 ; CPU:$B1FF PRG:31FF A5 14
cmp #$08 ; CPU:$B201 PRG:3201 C9 08
bne Sub_Loop95 ; CPU:$B203 PRG:3203 D0 08
; -----------------------------------------------------------------------------
; Routine: Sub_B205
; Global: Branch target inside Sub: taken when B205.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B205:
lda #$00 ; CPU:$B205 PRG:3205 A9 00
jsr Sub_FD40 ; CPU:$B207 PRG:3207 20 40 FD
jmp Sub_B221 ; CPU:$B20A PRG:320A 4C 21 B2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop95
; Global: Branch target inside Sub: taken when Loop95.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop95:
lda Zp7B ; CPU:$B20D PRG:320D A5 7B
bmi Sub_Loop96 ; CPU:$B20F PRG:320F 30 06
lda Zp13 ; CPU:$B211 PRG:3211 A5 13
cmp #$20 ; CPU:$B213 PRG:3213 C9 20
bcs Sub_Loop97 ; CPU:$B215 PRG:3215 B0 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop96
; Global: Branch target inside Sub: taken when Loop96.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop96:
inc Zp13 ; CPU:$B217 PRG:3217 E6 13
bne Sub_Loop97 ; CPU:$B219 PRG:3219 D0 02
inc Zp14 ; CPU:$B21B PRG:321B E6 14
; -----------------------------------------------------------------------------
; Routine: Sub_Loop97
; Global: Branch target inside Sub: taken when Loop97.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop97:
lda #$80 ; CPU:$B21D PRG:321D A9 80
sta Zp8A ; CPU:$B21F PRG:321F 85 8A
; -----------------------------------------------------------------------------
; Routine: Sub_B221
; Global: Branch target inside Sub: taken when B221.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B221:
jmp Sub_FD13 ; CPU:$B221 PRG:3221 4C 13 FD
; ---- data $B224-$B2C1 (158 bytes) ----
; referenced by `ldy $B224,x` at $B186 (operand $B224 falls inside this region)
.byte $05, $05, $05, $05, $05, $04, $04, $04, $03, $03, $A5, $7B, $10, $08, $A9, $00 ; CPU:$B224 PRG:3224 05 05 05 05 05 04 04 04 03 03 A5 7B 10 08 A9 00
.byte $20, $40, $FD, $4C, $E2, $B2, $A5, $14, $D0, $13, $A5, $13, $F0, $1B, $C9, $40 ; CPU:$B234 PRG:3234 20 40 FD 4C E2 B2 A5 14 D0 13 A5 13 F0 1B C9 40
.byte $F0, $4B, $C9, $80, $F0, $53, $C9, $C0, $F0, $58, $4C, $AC, $B2, $A5, $13, $C9 ; CPU:$B244 PRG:3244 F0 4B C9 80 F0 53 C9 C0 F0 58 4C AC B2 A5 13 C9
.byte $C0, $D0, $03, $4C, $C4, $B2, $4C, $AC, $B2, $A9, $89, $20, $36, $F0, $20, $F3 ; CPU:$B254 PRG:3254 C0 D0 03 4C C4 B2 4C AC B2 A9 89 20 36 F0 20 F3
.byte $9B, $20, $19, $FD, $20, $2E, $FD, $20, $59, $F0, $20, $22, $FD, $A5, $7B, $29 ; CPU:$B264 PRG:3264 9B 20 19 FD 20 2E FD 20 59 F0 20 22 FD A5 7B 29
.byte $20, $F0, $08, $E6, $87, $20, $21, $F1, $20, $BB, $F0, $A2, $B2, $A0, $E5, $20 ; CPU:$B274 PRG:3274 20 F0 08 E6 87 20 21 F1 20 BB F0 A2 B2 A0 E5 20
.byte $3A, $FD, $20, $31, $FD, $A9, $0A, $20, $36, $F0, $4C, $AC, $B2, $20, $1C, $FD ; CPU:$B284 PRG:3284 3A FD 20 31 FD A9 0A 20 36 F0 4C AC B2 20 1C FD
.byte $20, $D5, $F0, $20, $F0, $9B, $4C, $AC, $B2, $20, $1C, $FD, $20, $F0, $9B, $4C ; CPU:$B294 PRG:3294 20 D5 F0 20 F0 9B 4C AC B2 20 1C FD 20 F0 9B 4C
.byte $AC, $B2, $20, $1C, $FD, $20, $F0, $9B, $E6, $13, $D0, $02, $E6, $14, $A5, $7B ; CPU:$B2A4 PRG:32A4 AC B2 20 1C FD 20 F0 9B E6 13 D0 02 E6 14 A5 7B
.byte $29, $20, $F0, $06, $A5, $87, $C9, $02, $90, $24, $20, $5A, $F1, $4C ; CPU:$B2B4 PRG:32B4 29 20 F0 06 A5 87 C9 02 90 24 20 5A F1 4C
; -----------------------------------------------------------------------------
; Routine: Label_B2C2
; Global: Branch target inside Label: taken when B2C2.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B2C2:
.byte $E2, $B2 ; CPU:$B2C2 PRG:32C2 E2 B2 -- nop #$B2 (undocumented; ca65 cannot encode)
ldx #$0A ; CPU:$B2C4 PRG:32C4 A2 0A
; -----------------------------------------------------------------------------
; Routine: Label_B2C6
; Global: Branch target inside Label: taken when B2C6.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B2C6:
lda Zp7B ; CPU:$B2C6 PRG:32C6 A5 7B
and #$20 ; CPU:$B2C8 PRG:32C8 29 20
beq Sub_Loop98 ; CPU:$B2CA PRG:32CA F0 0D
jsr Sub_F1FD ; CPU:$B2CC PRG:32CC 20 FD F1
ldx #$05 ; CPU:$B2CF PRG:32CF A2 05
lda Zp87 ; CPU:$B2D1 PRG:32D1 A5 87
cmp #$02 ; CPU:$B2D3 PRG:32D3 C9 02
bcc Sub_Loop98 ; CPU:$B2D5 PRG:32D5 90 02
ldx #$0F ; CPU:$B2D7 PRG:32D7 A2 0F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop98
; Global: Branch target inside Sub: taken when Loop98.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop98:
txa ; CPU:$B2D9 PRG:32D9 8A
jsr Sub_FD40 ; CPU:$B2DA PRG:32DA 20 40 FD
lda #$8A ; CPU:$B2DD PRG:32DD A9 8A
jsr Sub_F036 ; CPU:$B2DF PRG:32DF 20 36 F0
jmp Sub_FD13 ; CPU:$B2E2 PRG:32E2 4C 13 FD
; ---- data $B2E5-$B3BF (219 bytes) ----
.byte $68, $21, $57, $49, $4E, $4E, $45, $52, $20, $49, $53, $1F, $1F, $20, $20, $52 ; CPU:$B2E5 PRG:32E5 68 21 57 49 4E 4E 45 52 20 49 53 1F 1F 20 20 52
.byte $49, $43, $4B, $59, $20, $46, $49, $47, $48, $54, $45, $52, $53, $FF, $A5, $14 ; CPU:$B2F5 PRG:32F5 49 43 4B 59 20 46 49 47 48 54 45 52 53 FF A5 14
.byte $D0, $07, $A5, $13, $F0, $0F, $4C, $08, $B4, $A5, $13, $C9, $C0, $F0, $03, $4C ; CPU:$B305 PRG:3305 D0 07 A5 13 F0 0F 4C 08 B4 A5 13 C9 C0 F0 03 4C
.byte $08, $B4, $4C, $14, $B4, $20, $28, $F0, $85, $1A, $20, $2E, $FD, $20, $1F, $FD ; CPU:$B315 PRG:3315 08 B4 4C 14 B4 20 28 F0 85 1A 20 2E FD 20 1F FD
.byte $A2, $B4, $A0, $31, $A5, $1A, $C9, $23, $90, $04, $A2, $B4, $A0, $41, $A9, $00 ; CPU:$B325 PRG:3325 A2 B4 A0 31 A5 1A C9 23 90 04 A2 B4 A0 41 A9 00
.byte $20, $28, $FD, $A2, $23, $A0, $E8, $20, $34, $FD, $A9, $A0, $8D, $07, $20, $8D ; CPU:$B335 PRG:3335 20 28 FD A2 23 A0 E8 20 34 FD A9 A0 8D 07 20 8D
.byte $07, $20, $8D, $07, $20, $8D, $07, $20, $8D, $07, $20, $8D, $07, $20, $A9, $80 ; CPU:$B345 PRG:3345 07 20 8D 07 20 8D 07 20 8D 07 20 8D 07 20 A9 80
.byte $8D, $07, $20, $20, $37, $FD, $A2, $00, $A5, $1A, $C9, $03, $F0, $17, $E8, $C9 ; CPU:$B355 PRG:3355 8D 07 20 20 37 FD A2 00 A5 1A C9 03 F0 17 E8 C9
.byte $08, $F0, $12, $E8, $C9, $0F, $F0, $0D, $E8, $C9, $19, $F0, $08, $E8, $C9, $23 ; CPU:$B365 PRG:3365 08 F0 12 E8 C9 0F F0 0D E8 C9 19 F0 08 E8 C9 23
.byte $B0, $03, $4C, $97, $B3, $8A, $0A, $48, $AA, $BC, $5B, $B4, $BD, $5C, $B4, $AA ; CPU:$B375 PRG:3375 B0 03 4C 97 B3 8A 0A 48 AA BC 5B B4 BD 5C B4 AA
.byte $20, $3A, $FD, $68, $AA, $BC, $48, $B5, $BD, $49, $B5, $AA, $20, $3A, $FD, $4C ; CPU:$B385 PRG:3385 20 3A FD 68 AA BC 48 B5 BD 49 B5 AA 20 3A FD 4C
.byte $00, $B4, $A0, $00, $A5, $1A, $C9, $03, $90, $13, $C8, $C9, $08, $90, $16, $C8 ; CPU:$B395 PRG:3395 00 B4 A0 00 A5 1A C9 03 90 13 C8 C9 08 90 16 C8
.byte $C9, $0F, $90, $19, $C8, $C9, $19, $90, $1C, $C8, $4C, $D2, $B3, $A6, $83, $BD ; CPU:$B3A5 PRG:33A5 C9 0F 90 19 C8 C9 19 90 1C C8 4C D2 B3 A6 83 BD
.byte $65, $B4, $4C, $D7, $B3, $A6, $83, $BD, $69, $B4, $4C ; CPU:$B3B5 PRG:33B5 65 B4 4C D7 B3 A6 83 BD 69 B4 4C
; -----------------------------------------------------------------------------
; Routine: Label_B3C0
; Global: Branch target inside Label: taken when B3C0.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B3C0:
.byte $D7, $B3 ; CPU:$B3C0 PRG:33C0 D7 B3 -- dcp ZpB3,y (undocumented; ca65 cannot encode)
ldx Zp83 ; CPU:$B3C2 PRG:33C2 A6 83
lda $B472,x ; CPU:$B3C4 PRG:33C4 BD 72 B4
jmp Sub_B3D7 ; CPU:$B3C7 PRG:33C7 4C D7 B3
; -----------------------------------------------------------------------------
; Routine: Label_B3CA
; Global: Branch target inside Label: taken when B3CA.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B3CA:
ldx Zp83 ; CPU:$B3CA PRG:33CA A6 83
lda $B47C,x ; CPU:$B3CC PRG:33CC BD 7C B4
jmp Sub_B3D7 ; CPU:$B3CF PRG:33CF 4C D7 B3
; -----------------------------------------------------------------------------
; Routine: Label_B3D2
; Global: Branch target inside Label: taken when B3D2.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B3D2:
ldx Zp83 ; CPU:$B3D2 PRG:33D2 A6 83
lda $B47C,x ; CPU:$B3D4 PRG:33D4 BD 7C B4
; -----------------------------------------------------------------------------
; Routine: Sub_B3D7
; Global: Branch target inside Sub: taken when B3D7.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B3D7:
pha ; CPU:$B3D7 PRG:33D7 48
tya ; CPU:$B3D8 PRG:33D8 98
asl a ; CPU:$B3D9 PRG:33D9 0A
pha ; CPU:$B3DA PRG:33DA 48
tax ; CPU:$B3DB PRG:33DB AA
ldy $B451,x ; CPU:$B3DC PRG:33DC BC 51 B4
lda $B452,x ; CPU:$B3DF PRG:33DF BD 52 B4
tax ; CPU:$B3E2 PRG:33E2 AA
jsr Sub_FD3A ; CPU:$B3E3 PRG:33E3 20 3A FD
pla ; CPU:$B3E6 PRG:33E6 68
tax ; CPU:$B3E7 PRG:33E7 AA
ldy $B546,x ; CPU:$B3E8 PRG:33E8 BC 46 B5
lda $B547,x ; CPU:$B3EB PRG:33EB BD 47 B5
tax ; CPU:$B3EE PRG:33EE AA
jsr Sub_FD3A ; CPU:$B3EF PRG:33EF 20 3A FD
ldx #$22 ; CPU:$B3F2 PRG:33F2 A2 22
ldy #$F9 ; CPU:$B3F4 PRG:33F4 A0 F9
jsr Sub_FD34 ; CPU:$B3F6 PRG:33F6 20 34 FD
pla ; CPU:$B3F9 PRG:33F9 68
sta PPUDATA ; CPU:$B3FA PRG:33FA 8D 07 20
jsr Sub_FD37 ; CPU:$B3FD PRG:33FD 20 37 FD
jsr Sub_FD31 ; CPU:$B400 PRG:3400 20 31 FD
lda #$09 ; CPU:$B403 PRG:3403 A9 09
jsr Sub_F036 ; CPU:$B405 PRG:3405 20 36 F0
jsr Sub_F15A ; CPU:$B408 PRG:3408 20 5A F1
inc Zp13 ; CPU:$B40B PRG:340B E6 13
bne Sub_Loop99 ; CPU:$B40D PRG:340D D0 1F
inc Zp14 ; CPU:$B40F PRG:340F E6 14
jmp Sub_Loop99 ; CPU:$B411 PRG:3411 4C 2E B4
; -----------------------------------------------------------------------------
; Routine: Label_B414
; Global: Branch target inside Label: taken when B414.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B414:
jsr Sub_FD2E ; CPU:$B414 PRG:3414 20 2E FD
jsr Sub_FD1F ; CPU:$B417 PRG:3417 20 1F FD
jsr Sub_FD31 ; CPU:$B41A PRG:341A 20 31 FD
ldx #$02 ; CPU:$B41D PRG:341D A2 02
ldy #$00 ; CPU:$B41F PRG:341F A0 00
lda #$00 ; CPU:$B421 PRG:3421 A9 00
jsr Sub_FD28 ; CPU:$B423 PRG:3423 20 28 FD
jsr Sub_F1FD ; CPU:$B426 PRG:3426 20 FD F1
lda #$05 ; CPU:$B429 PRG:3429 A9 05
jsr Sub_FD40 ; CPU:$B42B PRG:342B 20 40 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop99
; Global: Branch target inside Sub: taken when Loop99.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop99:
jmp Sub_FD13 ; CPU:$B42E PRG:342E 4C 13 FD
; ---- data $B431-$B697 (615 bytes) ----
; referenced by `lda $B472,x` at $B3C4 (operand $B472 falls inside this region)
; referenced by `lda $B47C,x` at $B3CC (operand $B47C falls inside this region)
; referenced by `lda $B47C,x` at $B3D4 (operand $B47C falls inside this region)
; referenced by `ldy $B451,x` at $B3DC (operand $B451 falls inside this region)
; referenced by `lda $B452,x` at $B3DF (operand $B452 falls inside this region)
; referenced by `ldy $B546,x` at $B3E8 (operand $B546 falls inside this region)
; ... and 1 further references from decoded code
.byte $0F, $10, $27, $00, $0F, $16, $0F, $0F, $0F, $16, $0F, $0F, $0F, $16, $0F, $0F ; CPU:$B431 PRG:3431 0F 10 27 00 0F 16 0F 0F 0F 16 0F 0F 0F 16 0F 0F
.byte $01, $10, $27, $00, $01, $16, $0F, $0F, $01, $16, $0F, $0F, $01, $16, $0F, $0F ; CPU:$B441 PRG:3441 01 10 27 00 01 16 0F 0F 01 16 0F 0F 01 16 0F 0F
.byte $86, $B4, $AD, $B4, $D4, $B4, $FB, $B4, $22, $B5, $99, $B4, $C0, $B4, $E7, $B4 ; CPU:$B451 PRG:3451 86 B4 AD B4 D4 B4 FB B4 22 B5 99 B4 C0 B4 E7 B4
.byte $0E, $B5, $35, $B5, $00, $12, $11, $10, $00, $00, $00, $00, $14, $13, $12, $11 ; CPU:$B461 PRG:3461 0E B5 35 B5 00 12 11 10 00 00 00 00 14 13 12 11
.byte $10, $15, $14, $13, $12, $11, $10, $00, $00, $00, $16, $15, $14, $13, $12, $11 ; CPU:$B471 PRG:3471 10 15 14 13 12 11 10 00 00 00 16 15 14 13 12 11
.byte $10, $19, $18, $17, $16, $E7, $22, $52, $45, $47, $49, $4F, $4E, $41, $4C, $20 ; CPU:$B481 PRG:3481 10 19 18 17 16 E7 22 52 45 47 49 4F 4E 41 4C 20
.byte $52, $41, $4E, $4B, $49, $4E, $47, $FF, $E7, $22, $52, $45, $47, $49, $4F, $4E ; CPU:$B491 PRG:3491 52 41 4E 4B 49 4E 47 FF E7 22 52 45 47 49 4F 4E
.byte $41, $4C, $20, $43, $48, $41, $4D, $50, $49, $4F, $4E, $FF, $E7, $22, $41, $4D ; CPU:$B4A1 PRG:34A1 41 4C 20 43 48 41 4D 50 49 4F 4E FF E7 22 41 4D
.byte $45, $52, $49, $43, $41, $4E, $20, $52, $41, $4E, $4B, $49, $4E, $47, $FF, $E7 ; CPU:$B4B1 PRG:34B1 45 52 49 43 41 4E 20 52 41 4E 4B 49 4E 47 FF E7
.byte $22, $41, $4D, $45, $52, $49, $43, $41, $4E, $20, $43, $48, $41, $4D, $50, $49 ; CPU:$B4C1 PRG:34C1 22 41 4D 45 52 49 43 41 4E 20 43 48 41 4D 50 49
.byte $4F, $4E, $FF, $E7, $22, $45, $55, $52, $4F, $50, $45, $41, $4E, $20, $52, $41 ; CPU:$B4D1 PRG:34D1 4F 4E FF E7 22 45 55 52 4F 50 45 41 4E 20 52 41
.byte $4E, $4B, $49, $4E, $47, $FF, $E7, $22, $45, $55, $52, $4F, $50, $45, $41, $4E ; CPU:$B4E1 PRG:34E1 4E 4B 49 4E 47 FF E7 22 45 55 52 4F 50 45 41 4E
.byte $20, $43, $48, $41, $4D, $50, $49, $4F, $4E, $FF, $E7, $22, $57, $4F, $52, $4C ; CPU:$B4F1 PRG:34F1 20 43 48 41 4D 50 49 4F 4E FF E7 22 57 4F 52 4C
.byte $44, $20, $20, $20, $20, $52, $41, $4E, $4B, $49, $4E, $47, $FF, $E7, $22, $57 ; CPU:$B501 PRG:3501 44 20 20 20 20 52 41 4E 4B 49 4E 47 FF E7 22 57
.byte $4F, $52, $4C, $44, $20, $20, $20, $20, $43, $48, $41, $4D, $50, $49, $4F, $4E ; CPU:$B511 PRG:3511 4F 52 4C 44 20 20 20 20 43 48 41 4D 50 49 4F 4E
.byte $FF, $E7, $22, $53, $55, $50, $45, $52, $20, $20, $20, $20, $52, $41, $4E, $4B ; CPU:$B521 PRG:3521 FF E7 22 53 55 50 45 52 20 20 20 20 52 41 4E 4B
.byte $49, $4E, $47, $FF, $E9, $22, $53, $55, $50, $45, $52, $20, $43, $48, $41, $4D ; CPU:$B531 PRG:3531 49 4E 47 FF E9 22 53 55 50 45 52 20 43 48 41 4D
.byte $50, $49, $4F, $4E, $FF, $52, $B5, $66, $B5, $80, $B5, $AA, $B5, $E8, $B5, $30 ; CPU:$B541 PRG:3541 50 49 4F 4E FF 52 B5 66 B5 80 B5 AA B5 E8 B5 30
.byte $B6, $0F, $22, $3C, $3E, $1F, $3F, $40, $1F, $5C, $5C, $1F, $5D, $5D, $1F, $5B ; CPU:$B551 PRG:3551 B6 0F 22 3C 3E 1F 3F 40 1F 5C 5C 1F 5D 5D 1F 5B
.byte $5B, $1F, $5C, $5C, $FF, $CF, $21, $3C, $3E, $1F, $2B, $2C, $1F, $2D, $3B, $1F ; CPU:$B561 PRG:3561 5B 1F 5C 5C FF CF 21 3C 3E 1F 2B 2C 1F 2D 3B 1F
.byte $5C, $5C, $1F, $5D, $5D, $1F, $5B, $5B, $1F, $5C, $5C, $1F, $5C, $5C, $FF, $CE ; CPU:$B571 PRG:3571 5C 5C 1F 5D 5D 1F 5B 5B 1F 5C 5C 1F 5C 5C FF CE
.byte $21, $20, $3C, $3E, $20, $1F, $20, $2B, $2C, $20, $1F, $20, $2D, $3B, $20, $1F ; CPU:$B581 PRG:3581 21 20 3C 3E 20 1F 20 2B 2C 20 1F 20 2D 3B 20 1F
.byte $20, $5C, $5C, $20, $1F, $20, $5D, $5D, $20, $1F, $5D, $5B, $5B, $5D, $1F, $5C ; CPU:$B591 PRG:3591 20 5C 5C 20 1F 20 5D 5D 20 1F 5D 5B 5B 5D 1F 5C
.byte $5C, $5C, $5C, $1F, $5C, $5C, $5C, $5C, $FF, $4E, $21, $20, $3C, $3E, $20, $1F ; CPU:$B5A1 PRG:35A1 5C 5C 5C 1F 5C 5C 5C 5C FF 4E 21 20 3C 3E 20 1F
.byte $20, $2B, $2C, $20, $1F, $20, $2D, $3B, $20, $1F, $20, $5C, $5C, $20, $1F, $20 ; CPU:$B5B1 PRG:35B1 20 2B 2C 20 1F 20 2D 3B 20 1F 20 5C 5C 20 1F 20
.byte $5D, $5D, $20, $1F, $5D, $5D, $5D, $5D, $1F, $5B, $5B, $5B, $5B, $1F, $5B, $5B ; CPU:$B5C1 PRG:35C1 5D 5D 20 1F 5D 5D 5D 5D 1F 5B 5B 5B 5B 1F 5B 5B
.byte $5B, $5B, $1F, $5C, $5C, $5C, $5C, $1F, $5B, $5B, $5B, $5B, $1F, $5C, $5C, $5C ; CPU:$B5D1 PRG:35D1 5B 5B 1F 5C 5C 5C 5C 1F 5B 5B 5B 5B 1F 5C 5C 5C
.byte $5C, $1F, $5C, $5C, $5C, $5C, $FF, $0E, $21, $20, $3C, $3E, $20, $1F, $20, $2B ; CPU:$B5E1 PRG:35E1 5C 1F 5C 5C 5C 5C FF 0E 21 20 3C 3E 20 1F 20 2B
.byte $2C, $20, $1F, $20, $2D, $3B, $20, $1F, $20, $5C, $5C, $20, $1F, $20, $5B, $5B ; CPU:$B5F1 PRG:35F1 2C 20 1F 20 2D 3B 20 1F 20 5C 5C 20 1F 20 5B 5B
.byte $20, $1F, $5D, $5C, $5C, $5D, $1F, $5C, $5C, $5C, $5C, $1F, $5B, $5B, $5B, $5B ; CPU:$B601 PRG:3601 20 1F 5D 5C 5C 5D 1F 5C 5C 5C 5C 1F 5B 5B 5B 5B
.byte $1F, $5D, $5D, $5D, $5D, $1F, $5C, $5C, $5C, $5C, $1F, $5D, $5D, $5D, $5D, $1F ; CPU:$B611 PRG:3611 1F 5D 5D 5D 5D 1F 5C 5C 5C 5C 1F 5D 5D 5D 5D 1F
.byte $5B, $5B, $5B, $5B, $1F, $5C, $5C, $5C, $5C, $1F, $5C, $5C, $5C, $5C, $FF, $CE ; CPU:$B621 PRG:3621 5B 5B 5B 5B 1F 5C 5C 5C 5C 1F 5C 5C 5C 5C FF CE
.byte $20, $20, $3C, $3E, $20, $1F, $20, $2B, $2C, $20, $1F, $20, $2D, $3B, $20, $1F ; CPU:$B631 PRG:3631 20 20 3C 3E 20 1F 20 2B 2C 20 1F 20 2D 3B 20 1F
.byte $20, $5C, $5C, $20, $1F, $20, $5D, $5D, $20, $1F, $5D, $5B, $5B, $5D, $1F, $5C ; CPU:$B641 PRG:3641 20 5C 5C 20 1F 20 5D 5D 20 1F 5D 5B 5B 5D 1F 5C
.byte $5C, $5C, $5C, $1F, $5C, $5C, $5C, $5C, $1F, $5B, $5B, $5B, $5B, $1F, $5D, $5D ; CPU:$B651 PRG:3651 5C 5C 5C 1F 5C 5C 5C 5C 1F 5B 5B 5B 5B 1F 5D 5D
.byte $5D, $5D, $1F, $5C, $5C, $5C, $5C, $1F, $5D, $5D, $5D, $5D, $1F, $5B, $5B, $5B ; CPU:$B661 PRG:3661 5D 5D 1F 5C 5C 5C 5C 1F 5D 5D 5D 5D 1F 5B 5B 5B
.byte $5B, $1F, $5D, $5D, $5D, $5D, $1F, $5C, $5C, $5C, $5C, $1F, $5C, $5C, $5C, $5C ; CPU:$B671 PRG:3671 5B 1F 5D 5D 5D 5D 1F 5C 5C 5C 5C 1F 5C 5C 5C 5C
.byte $FF, $A5, $7B, $10, $08, $A9, $00, $20, $40, $FD, $4C, $62, $B7, $A5, $14, $D0 ; CPU:$B681 PRG:3681 FF A5 7B 10 08 A9 00 20 40 FD 4C 62 B7 A5 14 D0
.byte $13, $A5, $13, $F0, $1B, $C9, $40 ; CPU:$B691 PRG:3691 13 A5 13 F0 1B C9 40
; -----------------------------------------------------------------------------
; Routine: Label_B698
; Global: Branch target inside Label: taken when B698.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B698:
beq Sub_Loop103 ; CPU:$B698 PRG:3698 F0 54
cmp #$80 ; CPU:$B69A PRG:369A C9 80
beq Sub_Loop105 ; CPU:$B69C PRG:369C F0 68
cmp #$C0 ; CPU:$B69E PRG:369E C9 C0
beq Sub_Loop107 ; CPU:$B6A0 PRG:36A0 F0 76
jmp Sub_Loop108 ; CPU:$B6A2 PRG:36A2 4C 24 B7
; -----------------------------------------------------------------------------
; Routine: Label_B6A5
; Global: Branch target inside Label: taken when B6A5.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B6A5:
lda Zp13 ; CPU:$B6A5 PRG:36A5 A5 13
cmp #$FF ; CPU:$B6A7 PRG:36A7 C9 FF
bne Sub_Loop100 ; CPU:$B6A9 PRG:36A9 D0 03
jmp Sub_B73C ; CPU:$B6AB PRG:36AB 4C 3C B7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop100
; Global: Branch target inside Sub: taken when Loop100.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop100:
jmp Sub_Loop108 ; CPU:$B6AE PRG:36AE 4C 24 B7
; -----------------------------------------------------------------------------
; Routine: Label_B6B1
; Global: Branch target inside Label: taken when B6B1.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B6B1:
lda #$89 ; CPU:$B6B1 PRG:36B1 A9 89
jsr Sub_F036 ; CPU:$B6B3 PRG:36B3 20 36 F0
jsr Sub_9BF3 ; CPU:$B6B6 PRG:36B6 20 F3 9B
jsr Sub_FD19 ; CPU:$B6B9 PRG:36B9 20 19 FD
jsr Sub_FD2E ; CPU:$B6BC PRG:36BC 20 2E FD
jsr Sub_F059 ; CPU:$B6BF PRG:36BF 20 59 F0
jsr Sub_FD22 ; CPU:$B6C2 PRG:36C2 20 22 FD
lda Zp7B ; CPU:$B6C5 PRG:36C5 A5 7B
and #$20 ; CPU:$B6C7 PRG:36C7 29 20
beq Sub_Loop101 ; CPU:$B6C9 PRG:36C9 F0 08
inc Zp88 ; CPU:$B6CB PRG:36CB E6 88
jsr Sub_F121 ; CPU:$B6CD PRG:36CD 20 21 F1
jsr Sub_F0BB ; CPU:$B6D0 PRG:36D0 20 BB F0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop101
; Global: Branch target inside Sub: taken when Loop101.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop101:
ldx #$B7 ; CPU:$B6D3 PRG:36D3 A2 B7
ldy #$65 ; CPU:$B6D5 PRG:36D5 A0 65
jsr Sub_FD3A ; CPU:$B6D7 PRG:36D7 20 3A FD
jsr Sub_FD31 ; CPU:$B6DA PRG:36DA 20 31 FD
ldx #$0A ; CPU:$B6DD PRG:36DD A2 0A
lda Zp7B ; CPU:$B6DF PRG:36DF A5 7B
and #$20 ; CPU:$B6E1 PRG:36E1 29 20
bne Sub_Loop102 ; CPU:$B6E3 PRG:36E3 D0 02
ldx #$0B ; CPU:$B6E5 PRG:36E5 A2 0B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop102
; Global: Branch target inside Sub: taken when Loop102.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop102:
txa ; CPU:$B6E7 PRG:36E7 8A
jsr Sub_F036 ; CPU:$B6E8 PRG:36E8 20 36 F0
jmp Sub_Loop108 ; CPU:$B6EB PRG:36EB 4C 24 B7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop103
; Global: Branch target inside Sub: taken when Loop103.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop103:
lda Zp7B ; CPU:$B6EE PRG:36EE A5 7B
and #$20 ; CPU:$B6F0 PRG:36F0 29 20
bne Sub_Loop104 ; CPU:$B6F2 PRG:36F2 D0 03
jmp Sub_Loop108 ; CPU:$B6F4 PRG:36F4 4C 24 B7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop104
; Global: Branch target inside Sub: taken when Loop104.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop104:
jsr Sub_FD1C ; CPU:$B6F7 PRG:36F7 20 1C FD
jsr Sub_F0D5 ; CPU:$B6FA PRG:36FA 20 D5 F0
jsr Sub_9BF0 ; CPU:$B6FD PRG:36FD 20 F0 9B
jsr Sub_9BF0 ; CPU:$B700 PRG:3700 20 F0 9B
jmp Sub_Loop108 ; CPU:$B703 PRG:3703 4C 24 B7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop105
; Global: Branch target inside Sub: taken when Loop105.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop105:
lda Zp7B ; CPU:$B706 PRG:3706 A5 7B
and #$20 ; CPU:$B708 PRG:3708 29 20
bne Sub_Loop106 ; CPU:$B70A PRG:370A D0 03
jmp Sub_Loop108 ; CPU:$B70C PRG:370C 4C 24 B7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop106
; Global: Branch target inside Sub: taken when Loop106.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop106:
jsr Sub_FD1C ; CPU:$B70F PRG:370F 20 1C FD
jsr Sub_9BF0 ; CPU:$B712 PRG:3712 20 F0 9B
jmp Sub_Loop108 ; CPU:$B715 PRG:3715 4C 24 B7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop107
; Global: Branch target inside Sub: taken when Loop107.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop107:
lda Zp7B ; CPU:$B718 PRG:3718 A5 7B
and #$20 ; CPU:$B71A PRG:371A 29 20
beq Sub_Loop108 ; CPU:$B71C PRG:371C F0 06
jsr Sub_FD1C ; CPU:$B71E PRG:371E 20 1C FD
jsr Sub_9BF0 ; CPU:$B721 PRG:3721 20 F0 9B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop108
; Global: Branch target inside Sub: taken when Loop108.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop108:
inc Zp13 ; CPU:$B724 PRG:3724 E6 13
bne Sub_Loop109 ; CPU:$B726 PRG:3726 D0 02
inc Zp14 ; CPU:$B728 PRG:3728 E6 14
; -----------------------------------------------------------------------------
; Routine: Sub_Loop109
; Global: Branch target inside Sub: taken when Loop109.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop109:
lda Zp7B ; CPU:$B72A PRG:372A A5 7B
and #$20 ; CPU:$B72C PRG:372C 29 20
beq Sub_Loop110 ; CPU:$B72E PRG:372E F0 06
lda Zp88 ; CPU:$B730 PRG:3730 A5 88
cmp #$02 ; CPU:$B732 PRG:3732 C9 02
bcc Sub_Loop113 ; CPU:$B734 PRG:3734 90 2C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop110
; Global: Branch target inside Sub: taken when Loop110.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop110:
jsr Sub_F192 ; CPU:$B736 PRG:3736 20 92 F1
jmp Sub_Loop113 ; CPU:$B739 PRG:3739 4C 62 B7
; -----------------------------------------------------------------------------
; Routine: Sub_B73C
; Global: Branch target inside Sub: taken when B73C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B73C:
lda Zp7B ; CPU:$B73C PRG:373C A5 7B
and #$20 ; CPU:$B73E PRG:373E 29 20
bne Sub_Loop111 ; CPU:$B740 PRG:3740 D0 05
ldx #$0F ; CPU:$B742 PRG:3742 A2 0F
jmp Sub_Loop112 ; CPU:$B744 PRG:3744 4C 54 B7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop111
; Global: Branch target inside Sub: taken when Loop111.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop111:
jsr Sub_F1FD ; CPU:$B747 PRG:3747 20 FD F1
ldx #$05 ; CPU:$B74A PRG:374A A2 05
lda Zp88 ; CPU:$B74C PRG:374C A5 88
cmp #$02 ; CPU:$B74E PRG:374E C9 02
bcc Sub_Loop112 ; CPU:$B750 PRG:3750 90 02
ldx #$0F ; CPU:$B752 PRG:3752 A2 0F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop112
; Global: Branch target inside Sub: taken when Loop112.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop112:
txa ; CPU:$B754 PRG:3754 8A
jsr Sub_FD40 ; CPU:$B755 PRG:3755 20 40 FD
lda #$8A ; CPU:$B758 PRG:3758 A9 8A
jsr Sub_F036 ; CPU:$B75A PRG:375A 20 36 F0
lda #$8B ; CPU:$B75D PRG:375D A9 8B
jsr Sub_F036 ; CPU:$B75F PRG:375F 20 36 F0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop113
; Global: Branch target inside Sub: taken when Loop113.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop113:
jmp Sub_FD13 ; CPU:$B762 PRG:3762 4C 13 FD
; ---- data $B765-$B7C6 (98 bytes) ----
.byte $68, $21, $57, $49, $4E, $4E, $45, $52, $20, $49, $53, $1F, $1F, $20, $20, $53 ; CPU:$B765 PRG:3765 68 21 57 49 4E 4E 45 52 20 49 53 1F 1F 20 20 53
.byte $54, $52, $4F, $4E, $47, $20, $42, $41, $44, $53, $FF, $A5, $7B, $10, $08, $A9 ; CPU:$B775 PRG:3775 54 52 4F 4E 47 20 42 41 44 53 FF A5 7B 10 08 A9
.byte $00, $20, $40, $FD, $4C, $3A, $B8, $A5, $13, $F0, $15, $C9, $50, $F0, $17, $C9 ; CPU:$B785 PRG:3785 00 20 40 FD 4C 3A B8 A5 13 F0 15 C9 50 F0 17 C9
.byte $80, $D0, $03, $4C, $21, $B8, $C9, $C0, $B0, $03, $4C, $30, $B8, $4C, $35, $B8 ; CPU:$B795 PRG:3795 80 D0 03 4C 21 B8 C9 C0 B0 03 4C 30 B8 4C 35 B8
.byte $EA, $EA, $EA, $4C, $30, $B8, $A5, $7B, $29, $20, $D0, $18, $A2, $0F, $A5, $41 ; CPU:$B7A5 PRG:37A5 EA EA EA 4C 30 B8 A5 7B 29 20 D0 18 A2 0F A5 41
.byte $29, $30, $A8, $C9, $30, $F0, $09, $A2, $09, $98, $29, $10, $D0, $02, $A2, $0B ; CPU:$B7B5 PRG:37B5 29 30 A8 C9 30 F0 09 A2 09 98 29 10 D0 02 A2 0B
.byte $8A, $4C ; CPU:$B7C5 PRG:37C5 8A 4C
; -----------------------------------------------------------------------------
; Routine: Label_B7C7
; Global: Branch target inside Label: taken when B7C7.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B7C7:
.byte $37, $B8 ; CPU:$B7C7 PRG:37C7 37 B8 -- rla ZpB8,y (undocumented; ca65 cannot encode)
lda Zp41 ; CPU:$B7C9 PRG:37C9 A5 41
and #$20 ; CPU:$B7CB PRG:37CB 29 20
bne Sub_Loop114 ; CPU:$B7CD PRG:37CD D0 05
lda #$09 ; CPU:$B7CF PRG:37CF A9 09
jmp Sub_B837 ; CPU:$B7D1 PRG:37D1 4C 37 B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop114
; Global: Branch target inside Sub: taken when Loop114.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop114:
lda Zp41 ; CPU:$B7D4 PRG:37D4 A5 41
and #$10 ; CPU:$B7D6 PRG:37D6 29 10
bne Sub_Loop115 ; CPU:$B7D8 PRG:37D8 D0 05
lda #$0B ; CPU:$B7DA PRG:37DA A9 0B
jmp Sub_B837 ; CPU:$B7DC PRG:37DC 4C 37 B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop115
; Global: Branch target inside Sub: taken when Loop115.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop115:
lda Zp87 ; CPU:$B7DF PRG:37DF A5 87
ora Zp88 ; CPU:$B7E1 PRG:37E1 05 88
bne Sub_Loop116 ; CPU:$B7E3 PRG:37E3 D0 0F
inc Zp87 ; CPU:$B7E5 PRG:37E5 E6 87
inc Zp88 ; CPU:$B7E7 PRG:37E7 E6 88
jsr Sub_F1FD ; CPU:$B7E9 PRG:37E9 20 FD F1
jsr Sub_F1FD ; CPU:$B7EC PRG:37EC 20 FD F1
lda #$05 ; CPU:$B7EF PRG:37EF A9 05
jmp Sub_B837 ; CPU:$B7F1 PRG:37F1 4C 37 B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop116
; Global: Branch target inside Sub: taken when Loop116.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop116:
lda Zp87 ; CPU:$B7F4 PRG:37F4 A5 87
beq Sub_Loop117 ; CPU:$B7F6 PRG:37F6 F0 04
lda Zp88 ; CPU:$B7F8 PRG:37F8 A5 88
bne Sub_Loop120 ; CPU:$B7FA PRG:37FA D0 39
; -----------------------------------------------------------------------------
; Routine: Sub_Loop117
; Global: Branch target inside Sub: taken when Loop117.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop117:
jsr Sub_FD2E ; CPU:$B7FC PRG:37FC 20 2E FD
jsr Sub_F059 ; CPU:$B7FF PRG:37FF 20 59 F0
jsr Sub_FD22 ; CPU:$B802 PRG:3802 20 22 FD
ldx #$B2 ; CPU:$B805 PRG:3805 A2 B2
ldy #$E5 ; CPU:$B807 PRG:3807 A0 E5
lda Zp87 ; CPU:$B809 PRG:3809 A5 87
bne Sub_Loop118 ; CPU:$B80B PRG:380B D0 04
ldx #$B7 ; CPU:$B80D PRG:380D A2 B7
ldy #$65 ; CPU:$B80F PRG:380F A0 65
; -----------------------------------------------------------------------------
; Routine: Sub_Loop118
; Global: Branch target inside Sub: taken when Loop118.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop118:
jsr Sub_FD3A ; CPU:$B811 PRG:3811 20 3A FD
inc Zp87 ; CPU:$B814 PRG:3814 E6 87
inc Zp88 ; CPU:$B816 PRG:3816 E6 88
jsr Sub_F121 ; CPU:$B818 PRG:3818 20 21 F1
jsr Sub_FD31 ; CPU:$B81B PRG:381B 20 31 FD
jmp Sub_B830 ; CPU:$B81E PRG:381E 4C 30 B8
; -----------------------------------------------------------------------------
; Routine: Label_B821
; Global: Branch target inside Label: taken when B821.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B821:
lda Zp87 ; CPU:$B821 PRG:3821 A5 87
cmp #$02 ; CPU:$B823 PRG:3823 C9 02
bcc Sub_Loop119 ; CPU:$B825 PRG:3825 90 06
jsr Sub_F15A ; CPU:$B827 PRG:3827 20 5A F1
jmp Sub_B830 ; CPU:$B82A PRG:382A 4C 30 B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop119
; Global: Branch target inside Sub: taken when Loop119.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop119:
jsr Sub_F192 ; CPU:$B82D PRG:382D 20 92 F1
; -----------------------------------------------------------------------------
; Routine: Sub_B830
; Global: Branch target inside Sub: taken when B830.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B830:
inc Zp13 ; CPU:$B830 PRG:3830 E6 13
jmp Sub_B83A ; CPU:$B832 PRG:3832 4C 3A B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop120
; Global: Branch target inside Sub: taken when Loop120.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop120:
lda #$0F ; CPU:$B835 PRG:3835 A9 0F
; -----------------------------------------------------------------------------
; Routine: Sub_B837
; Global: Branch target inside Sub: taken when B837.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B837:
jsr Sub_FD40 ; CPU:$B837 PRG:3837 20 40 FD
; -----------------------------------------------------------------------------
; Routine: Sub_B83A
; Global: Branch target inside Sub: taken when B83A.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B83A:
jmp Sub_FD13 ; CPU:$B83A PRG:383A 4C 13 FD
; -----------------------------------------------------------------------------
; Routine: Label_B83D
; Global: Branch target inside Label: taken when B83D.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B83D:
lda Zp13 ; CPU:$B83D PRG:383D A5 13
bne Sub_Loop121 ; CPU:$B83F PRG:383F D0 06
nop ; CPU:$B841 PRG:3841 EA
nop ; CPU:$B842 PRG:3842 EA
nop ; CPU:$B843 PRG:3843 EA
jmp Sub_Loop125 ; CPU:$B844 PRG:3844 4C 86 B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop121
; Global: Branch target inside Sub: taken when Loop121.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop121:
lda Zp13 ; CPU:$B847 PRG:3847 A5 13
cmp #$50 ; CPU:$B849 PRG:3849 C9 50
bcc Sub_Loop125 ; CPU:$B84B PRG:384B 90 39
ldx #$0F ; CPU:$B84D PRG:384D A2 0F
lda Zp7B ; CPU:$B84F PRG:384F A5 7B
and #$20 ; CPU:$B851 PRG:3851 29 20
beq Sub_Loop124 ; CPU:$B853 PRG:3853 F0 2A
lda Zp87 ; CPU:$B855 PRG:3855 A5 87
ora Zp88 ; CPU:$B857 PRG:3857 05 88
bne Sub_Loop122 ; CPU:$B859 PRG:3859 D0 0F
inc Zp87 ; CPU:$B85B PRG:385B E6 87
inc Zp88 ; CPU:$B85D PRG:385D E6 88
jsr Sub_F1FD ; CPU:$B85F PRG:385F 20 FD F1
jsr Sub_F1FD ; CPU:$B862 PRG:3862 20 FD F1
ldx #$05 ; CPU:$B865 PRG:3865 A2 05
jmp Sub_Loop124 ; CPU:$B867 PRG:3867 4C 7F B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop122
; Global: Branch target inside Sub: taken when Loop122.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop122:
lda Zp87 ; CPU:$B86A PRG:386A A5 87
beq Sub_Loop123 ; CPU:$B86C PRG:386C F0 09
lda Zp88 ; CPU:$B86E PRG:386E A5 88
beq Sub_Loop123 ; CPU:$B870 PRG:3870 F0 05
ldx #$0F ; CPU:$B872 PRG:3872 A2 0F
jmp Sub_Loop124 ; CPU:$B874 PRG:3874 4C 7F B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop123
; Global: Branch target inside Sub: taken when Loop123.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop123:
ldx #$09 ; CPU:$B877 PRG:3877 A2 09
lda Zp87 ; CPU:$B879 PRG:3879 A5 87
bne Sub_Loop124 ; CPU:$B87B PRG:387B D0 02
ldx #$0B ; CPU:$B87D PRG:387D A2 0B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop124
; Global: Branch target inside Sub: taken when Loop124.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop124:
txa ; CPU:$B87F PRG:387F 8A
jsr Sub_FD40 ; CPU:$B880 PRG:3880 20 40 FD
jmp Sub_FD13 ; CPU:$B883 PRG:3883 4C 13 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop125
; Global: Branch target inside Sub: taken when Loop125.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop125:
inc Zp13 ; CPU:$B886 PRG:3886 E6 13
jmp Sub_FD13 ; CPU:$B888 PRG:3888 4C 13 FD
; -----------------------------------------------------------------------------
; Routine: Label_B88B
; Global: Branch target inside Label: taken when B88B.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B88B:
lda Zp7B ; CPU:$B88B PRG:388B A5 7B
bpl Sub_Loop126 ; CPU:$B88D PRG:388D 10 08
lda #$00 ; CPU:$B88F PRG:388F A9 00
jsr Sub_FD40 ; CPU:$B891 PRG:3891 20 40 FD
jmp Sub_B8B0 ; CPU:$B894 PRG:3894 4C B0 B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop126
; Global: Branch target inside Sub: taken when Loop126.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop126:
lda Zp13 ; CPU:$B897 PRG:3897 A5 13
cmp #$50 ; CPU:$B899 PRG:3899 C9 50
bcc Sub_Loop128 ; CPU:$B89B PRG:389B 90 11
ldx #$09 ; CPU:$B89D PRG:389D A2 09
lda Zp3B ; CPU:$B89F PRG:389F A5 3B
and #$20 ; CPU:$B8A1 PRG:38A1 29 20
beq Sub_Loop127 ; CPU:$B8A3 PRG:38A3 F0 02
ldx #$0B ; CPU:$B8A5 PRG:38A5 A2 0B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop127
; Global: Branch target inside Sub: taken when Loop127.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop127:
txa ; CPU:$B8A7 PRG:38A7 8A
jsr Sub_FD40 ; CPU:$B8A8 PRG:38A8 20 40 FD
jmp Sub_B8B0 ; CPU:$B8AB PRG:38AB 4C B0 B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop128
; Global: Branch target inside Sub: taken when Loop128.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop128:
inc Zp13 ; CPU:$B8AE PRG:38AE E6 13
; -----------------------------------------------------------------------------
; Routine: Sub_B8B0
; Global: Branch target inside Sub: taken when B8B0.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B8B0:
jmp Sub_FD13 ; CPU:$B8B0 PRG:38B0 4C 13 FD
; -----------------------------------------------------------------------------
; Routine: Label_B8B3
; Global: Branch target inside Label: taken when B8B3.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B8B3:
jmp ($4721) ; CPU:$B8B3 PRG:38B3 6C 21 47
; -----------------------------------------------------------------------------
; Routine: Label_B8B6
; Global: Branch target inside Label: taken when B8B6.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B8B6:
eor #$56 ; CPU:$B8B6 PRG:38B6 49 56
eor Zp20 ; CPU:$B8B8 PRG:38B8 45 20
eor Zp50,x ; CPU:$B8BA PRG:38BA 55 50
and (ZpFF,x) ; CPU:$B8BC PRG:38BC 21 FF
lda Zp13 ; CPU:$B8BE PRG:38BE A5 13
beq Sub_Loop129 ; CPU:$B8C0 PRG:38C0 F0 0B
cmp #$20 ; CPU:$B8C2 PRG:38C2 C9 20
bcc Sub_Loop131 ; CPU:$B8C4 PRG:38C4 90 36
cmp #$80 ; CPU:$B8C6 PRG:38C6 C9 80
beq Sub_Loop130 ; CPU:$B8C8 PRG:38C8 F0 2D
jmp Sub_B8EE ; CPU:$B8CA PRG:38CA 4C EE B8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop129
; Global: Branch target inside Sub: taken when Loop129.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop129:
jsr Sub_FD2E ; CPU:$B8CD PRG:38CD 20 2E FD
jsr Sub_FD1F ; CPU:$B8D0 PRG:38D0 20 1F FD
ldx #$B9 ; CPU:$B8D3 PRG:38D3 A2 B9
ldy #$01 ; CPU:$B8D5 PRG:38D5 A0 01
jsr Sub_FD3A ; CPU:$B8D7 PRG:38D7 20 3A FD
jsr Sub_FD31 ; CPU:$B8DA PRG:38DA 20 31 FD
lda Zp7B ; CPU:$B8DD PRG:38DD A5 7B
and #$20 ; CPU:$B8DF PRG:38DF 29 20
beq Sub_Loop131 ; CPU:$B8E1 PRG:38E1 F0 19
lda #$01 ; CPU:$B8E3 PRG:38E3 A9 01
sta Zp83 ; CPU:$B8E5 PRG:38E5 85 83
lda #$00 ; CPU:$B8E7 PRG:38E7 A9 00
sta Zp84 ; CPU:$B8E9 PRG:38E9 85 84
jmp Sub_Loop131 ; CPU:$B8EB PRG:38EB 4C FC B8
; -----------------------------------------------------------------------------
; Routine: Sub_B8EE
; Global: Branch target inside Sub: taken when B8EE.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B8EE:
jsr Sub_FD2B ; CPU:$B8EE PRG:38EE 20 2B FD
lda Zp18 ; CPU:$B8F1 PRG:38F1 A5 18
and #$0C ; CPU:$B8F3 PRG:38F3 29 0C
beq Sub_Loop131 ; CPU:$B8F5 PRG:38F5 F0 05
; -----------------------------------------------------------------------------
; Routine: Sub_Loop130
; Global: Branch target inside Sub: taken when Loop130.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop130:
lda #$00 ; CPU:$B8F7 PRG:38F7 A9 00
jsr Sub_FD40 ; CPU:$B8F9 PRG:38F9 20 40 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop131
; Global: Branch target inside Sub: taken when Loop131.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop131:
inc Zp13 ; CPU:$B8FC PRG:38FC E6 13
jmp Sub_FD13 ; CPU:$B8FE PRG:38FE 4C 13 FD
; ---- data $B901-$B90C (12 bytes) ----
.byte $CC, $21, $47, $41, $4D, $45, $20, $4F, $56, $45, $52, $FF ; CPU:$B901 PRG:3901 CC 21 47 41 4D 45 20 4F 56 45 52 FF
; -----------------------------------------------------------------------------
; Routine: Sub_B90D
; Global: Branch target inside Sub: taken when B90D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B90D:
jsr Sub_F028 ; CPU:$B90D PRG:390D 20 28 F0
sta PlayerState ; CPU:$B910 PRG:3910 85 1A
ldx #$00 ; CPU:$B912 PRG:3912 A2 00
cmp #$05 ; CPU:$B914 PRG:3914 C9 05
bcc Sub_Loop132 ; CPU:$B916 PRG:3916 90 10
inx ; CPU:$B918 PRG:3918 E8
cmp #$0A ; CPU:$B919 PRG:3919 C9 0A
bcc Sub_Loop132 ; CPU:$B91B PRG:391B 90 0B
inx ; CPU:$B91D PRG:391D E8
cmp #$11 ; CPU:$B91E PRG:391E C9 11
bcc Sub_Loop132 ; CPU:$B920 PRG:3920 90 06
inx ; CPU:$B922 PRG:3922 E8
cmp #$1B ; CPU:$B923 PRG:3923 C9 1B
bcc Sub_Loop132 ; CPU:$B925 PRG:3925 90 01
inx ; CPU:$B927 PRG:3927 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop132
; Global: Branch target inside Sub: taken when Loop132.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop132:
stx Zp1B ; CPU:$B928 PRG:3928 86 1B
txa ; CPU:$B92A PRG:392A 8A
asl a ; CPU:$B92B PRG:392B 0A
tax ; CPU:$B92C PRG:392C AA
ldy $B97B,x ; CPU:$B92D PRG:392D BC 7B B9
lda $B97C,x ; CPU:$B930 PRG:3930 BD 7C B9
tax ; CPU:$B933 PRG:3933 AA
jsr Sub_FD3A ; CPU:$B934 PRG:3934 20 3A FD
lda PlayerState ; CPU:$B937 PRG:3937 A5 1A
cmp #$24 ; CPU:$B939 PRG:3939 C9 24
bcs Sub_Loop133 ; CPU:$B93B PRG:393B B0 10
cmp #$04 ; CPU:$B93D PRG:393D C9 04
beq Sub_Loop133 ; CPU:$B93F PRG:393F F0 0C
cmp #$09 ; CPU:$B941 PRG:3941 C9 09
beq Sub_Loop133 ; CPU:$B943 PRG:3943 F0 08
cmp #$10 ; CPU:$B945 PRG:3945 C9 10
beq Sub_Loop133 ; CPU:$B947 PRG:3947 F0 04
cmp #$1A ; CPU:$B949 PRG:3949 C9 1A
bne Sub_Loop134 ; CPU:$B94B PRG:394B D0 0A
; -----------------------------------------------------------------------------
; Routine: Sub_Loop133
; Global: Branch target inside Sub: taken when Loop133.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop133:
ldx #$B9 ; CPU:$B94D PRG:394D A2 B9
ldy #$A9 ; CPU:$B94F PRG:394F A0 A9
jsr Sub_FD3A ; CPU:$B951 PRG:3951 20 3A FD
jmp Sub_B97A ; CPU:$B954 PRG:3954 4C 7A B9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop134
; Global: Branch target inside Sub: taken when Loop134.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop134:
lda Zp1B ; CPU:$B957 PRG:3957 A5 1B
asl a ; CPU:$B959 PRG:3959 0A
tax ; CPU:$B95A PRG:395A AA
lda $B9B1,x ; CPU:$B95B PRG:395B BD B1 B9
sta Zp22 ; CPU:$B95E PRG:395E 85 22
lda $B9B2,x ; CPU:$B960 PRG:3960 BD B2 B9
sta Zp23 ; CPU:$B963 PRG:3963 85 23
ldx #$20 ; CPU:$B965 PRG:3965 A2 20
ldy #$91 ; CPU:$B967 PRG:3967 A0 91
jsr Sub_FD34 ; CPU:$B969 PRG:3969 20 34 FD
lda Zp83 ; CPU:$B96C PRG:396C A5 83
tay ; CPU:$B96E PRG:396E A8
lda (Zp22),y ; CPU:$B96F PRG:396F B1 22
clc ; CPU:$B971 PRG:3971 18
adc #$01 ; CPU:$B972 PRG:3972 69 01
sta PPUDATA ; CPU:$B974 PRG:3974 8D 07 20
jsr Sub_FD37 ; CPU:$B977 PRG:3977 20 37 FD
; -----------------------------------------------------------------------------
; Routine: Sub_B97A
; Global: Branch target inside Sub: taken when B97A.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_B97A:
rts ; CPU:$B97A PRG:397A 60
; ---- data $B97B-$B9BF (69 bytes) ----
; referenced by `ldy $B97B,x` at $B92D (operand $B97B falls inside this region)
; referenced by `lda $B97C,x` at $B930 (operand $B97C falls inside this region)
; referenced by `lda $B9B1,x` at $B95B (operand $B9B1 falls inside this region)
; referenced by `lda $B9B2,x` at $B960 (operand $B9B2 falls inside this region)
.byte $85, $B9, $8B, $B9, $91, $B9, $99, $B9, $A1, $B9, $8C, $20, $52, $45, $47, $FF ; CPU:$B97B PRG:397B 85 B9 8B B9 91 B9 99 B9 A1 B9 8C 20 52 45 47 FF
.byte $8C, $20, $55, $53, $41, $FF, $8C, $20, $45, $55, $52, $4F, $50, $FF, $8C, $20 ; CPU:$B98B PRG:398B 8C 20 55 53 41 FF 8C 20 45 55 52 4F 50 FF 8C 20
.byte $57, $4F, $52, $4C, $44, $FF, $8C, $20, $53, $55, $50, $45, $52, $FF, $AD, $20 ; CPU:$B99B PRG:399B 57 4F 52 4C 44 FF 8C 20 53 55 50 45 52 FF AD 20
.byte $43, $48, $41, $4D, $50, $FF, $65, $B4, $69, $B4, $72, $B4, $7C, $B4, $7C, $B4 ; CPU:$B9AB PRG:39AB 43 48 41 4D 50 FF 65 B4 69 B4 72 B4 7C B4 7C B4
.byte $A9, $01, $20, $67, $EA ; CPU:$B9BB PRG:39BB A9 01 20 67 EA
; -----------------------------------------------------------------------------
; Routine: Label_B9C0
; Global: Branch target inside Label: taken when B9C0.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_B9C0:
lda ZpAA ; CPU:$B9C0 PRG:39C0 A5 AA
beq Sub_Loop135 ; CPU:$B9C2 PRG:39C2 F0 1A
lda #$00 ; CPU:$B9C4 PRG:39C4 A9 00
sta PlayerState ; CPU:$B9C6 PRG:39C6 85 1A
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero9
; Global: Branch target inside Sub: taken when OnNonzero9.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero9:
lda PlayerState ; CPU:$B9C8 PRG:39C8 A5 1A
asl a ; CPU:$B9CA PRG:39CA 0A
tax ; CPU:$B9CB PRG:39CB AA
ldy $B9E2,x ; CPU:$B9CC PRG:39CC BC E2 B9
lda $B9E3,x ; CPU:$B9CF PRG:39CF BD E3 B9
tax ; CPU:$B9D2 PRG:39D2 AA
jsr Sub_FD3A ; CPU:$B9D3 PRG:39D3 20 3A FD
inc PlayerState ; CPU:$B9D6 PRG:39D6 E6 1A
lda PlayerState ; CPU:$B9D8 PRG:39D8 A5 1A
cmp #$0B ; CPU:$B9DA PRG:39DA C9 0B
bne Sub_OnNonzero9 ; CPU:$B9DC PRG:39DC D0 EA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop135
; Global: Branch target inside Sub: taken when Loop135.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop135:
jsr Sub_FD22 ; CPU:$B9DE PRG:39DE 20 22 FD
rts ; CPU:$B9E1 PRG:39E1 60
; ---- data $B9E2-$BA6F (142 bytes) ----
; referenced by `ldy $B9E2,x` at $B9CC (operand $B9E2 falls inside this region)
; referenced by `lda $B9E3,x` at $B9CF (operand $B9E3 falls inside this region)
.byte $F6, $B9, $FD, $B9, $0A, $BA, $17, $BA, $2A, $BA, $3D, $BA, $4C, $BA, $5B, $BA ; CPU:$B9E2 PRG:39E2 F6 B9 FD B9 0A BA 17 BA 2A BA 3D BA 4C BA 5B BA
.byte $64, $BA, $6B, $BA, $8E, $21, $C5, $C4, $DA, $D8, $FF, $AB, $21, $6E, $64, $64 ; CPU:$B9F2 PRG:39F2 64 BA 6B BA 8E 21 C5 C4 DA D8 FF AB 21 6E 64 64
.byte $64, $64, $64, $64, $64, $64, $78, $FF, $CB, $21, $C6, $64, $64, $64, $64, $64 ; CPU:$BA02 PRG:3A02 64 64 64 64 64 64 78 FF CB 21 C6 64 64 64 64 64
.byte $64, $64, $64, $D9, $FF, $E8, $21, $CA, $C8, $C7, $64, $64, $64, $64, $64, $64 ; CPU:$BA12 PRG:3A12 64 64 64 D9 FF E8 21 CA C8 C7 64 64 64 64 64 64
.byte $64, $64, $64, $64, $D2, $D6, $D4, $FF, $08, $22, $CB, $C9, $C1, $64, $64, $64 ; CPU:$BA22 PRG:3A22 64 64 64 64 D2 D6 D4 FF 08 22 CB C9 C1 64 64 64
.byte $64, $64, $64, $64, $64, $64, $64, $D3, $D7, $D5, $FF, $2A, $22, $C2, $64, $64 ; CPU:$BA32 PRG:3A32 64 64 64 64 64 64 64 D3 D7 D5 FF 2A 22 C2 64 64
.byte $64, $64, $64, $64, $64, $64, $64, $64, $D0, $FF, $4A, $22, $C3, $64, $64, $64 ; CPU:$BA42 PRG:3A42 64 64 64 64 64 64 64 64 D0 FF 4A 22 C3 64 64 64
.byte $64, $64, $64, $64, $64, $64, $64, $D1, $FF, $6D, $22, $CC, $CD, $64, $64, $CF ; CPU:$BA52 PRG:3A52 64 64 64 64 64 64 64 D1 FF 6D 22 CC CD 64 64 CF
.byte $CE, $FF, $8E, $22, $CC, $CD, $CF, $CE, $FF, $AF, $22, $CC, $CE, $FF ; CPU:$BA62 PRG:3A62 CE FF 8E 22 CC CD CF CE FF AF 22 CC CE FF
; -----------------------------------------------------------------------------
; Routine: Sub_BA70
; Global: Branch target inside Sub: taken when BA70.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BA70:
lda #$02 ; CPU:$BA70 PRG:3A70 A9 02
jsr Sub_EA67 ; CPU:$BA72 PRG:3A72 20 67 EA
lda Zp41 ; CPU:$BA75 PRG:3A75 A5 41
and #$30 ; CPU:$BA77 PRG:3A77 29 30
cmp #$30 ; CPU:$BA79 PRG:3A79 C9 30
bne Sub_Loop136 ; CPU:$BA7B PRG:3A7B D0 0B
lda #$FF ; CPU:$BA7D PRG:3A7D A9 FF
sta ZpA1 ; CPU:$BA7F PRG:3A7F 85 A1
ldx #$80 ; CPU:$BA81 PRG:3A81 A2 80
ldy #$C8 ; CPU:$BA83 PRG:3A83 A0 C8
jsr Sub_EF3B ; CPU:$BA85 PRG:3A85 20 3B EF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop136
; Global: Branch target inside Sub: taken when Loop136.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop136:
rts ; CPU:$BA88 PRG:3A88 60
; -----------------------------------------------------------------------------
; Routine: Sub_BA89
; Global: Branch target inside Sub: taken when BA89.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BA89:
lda Zp3E ; CPU:$BA89 PRG:3A89 A5 3E
bpl Sub_Loop137 ; CPU:$BA8B PRG:3A8B 10 03
jmp Sub_BACE ; CPU:$BA8D PRG:3A8D 4C CE BA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop137
; Global: Branch target inside Sub: taken when Loop137.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop137:
lda Zp18 ; CPU:$BA90 PRG:3A90 A5 18
tax ; CPU:$BA92 PRG:3A92 AA
eor ZpB0 ; CPU:$BA93 PRG:3A93 45 B0
stx ZpB0 ; CPU:$BA95 PRG:3A95 86 B0
sta PlayerState ; CPU:$BA97 PRG:3A97 85 1A
txa ; CPU:$BA99 PRG:3A99 8A
and PlayerState ; CPU:$BA9A PRG:3A9A 25 1A
and #$08 ; CPU:$BA9C PRG:3A9C 29 08
bne Sub_Loop138 ; CPU:$BA9E PRG:3A9E D0 03
jmp Sub_BACE ; CPU:$BAA0 PRG:3AA0 4C CE BA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop138
; Global: Branch target inside Sub: taken when Loop138.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop138:
lda #$8C ; CPU:$BAA3 PRG:3AA3 A9 8C
jsr Sub_F036 ; CPU:$BAA5 PRG:3AA5 20 36 F0
jsr Sub_9BF3 ; CPU:$BAA8 PRG:3AA8 20 F3 9B
jsr Sub_FD19 ; CPU:$BAAB PRG:3AAB 20 19 FD
lda #$0D ; CPU:$BAAE PRG:3AAE A9 0D
jsr Sub_F036 ; CPU:$BAB0 PRG:3AB0 20 36 F0
; -----------------------------------------------------------------------------
; Routine: Sub_OnZero2
; Global: Branch target inside Sub: taken when OnZero2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnZero2:
jsr Sub_FD19 ; CPU:$BAB3 PRG:3AB3 20 19 FD
jsr Sub_FD2B ; CPU:$BAB6 PRG:3AB6 20 2B FD
lda Zp18 ; CPU:$BAB9 PRG:3AB9 A5 18
tax ; CPU:$BABB PRG:3ABB AA
eor ZpB0 ; CPU:$BABC PRG:3ABC 45 B0
stx ZpB0 ; CPU:$BABE PRG:3ABE 86 B0
sta PlayerState ; CPU:$BAC0 PRG:3AC0 85 1A
txa ; CPU:$BAC2 PRG:3AC2 8A
and PlayerState ; CPU:$BAC3 PRG:3AC3 25 1A
and #$08 ; CPU:$BAC5 PRG:3AC5 29 08
beq Sub_OnZero2 ; CPU:$BAC7 PRG:3AC7 F0 EA
lda #$0C ; CPU:$BAC9 PRG:3AC9 A9 0C
jsr Sub_F036 ; CPU:$BACB PRG:3ACB 20 36 F0
; -----------------------------------------------------------------------------
; Routine: Sub_BACE
; Global: Branch target inside Sub: taken when BACE.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BACE:
rts ; CPU:$BACE PRG:3ACE 60
; -----------------------------------------------------------------------------
; Routine: Sub_BACF
; Global: Branch target inside Sub: taken when BACF.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BACF:
inc ZpAC ; CPU:$BACF PRG:3ACF E6 AC
rts ; CPU:$BAD1 PRG:3AD1 60
; -----------------------------------------------------------------------------
; Routine: Sub_BAD2
; Global: Branch target inside Sub: taken when BAD2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BAD2:
lda ZpA7 ; CPU:$BAD2 PRG:3AD2 A5 A7
bne Sub_Loop139 ; CPU:$BAD4 PRG:3AD4 D0 04
lda GameState ; CPU:$BAD6 PRG:3AD6 A5 36
bpl Sub_Loop140 ; CPU:$BAD8 PRG:3AD8 10 03
; -----------------------------------------------------------------------------
; Routine: Sub_Loop139
; Global: Branch target inside Sub: taken when Loop139.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop139:
jmp Sub_Loop151 ; CPU:$BADA PRG:3ADA 4C AC BB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop140
; Global: Branch target inside Sub: taken when Loop140.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop140:
ldx WrestlerIndex ; CPU:$BADD PRG:3ADD A6 85
lda PlayerTile,x ; CPU:$BADF PRG:3ADF B5 32
and #$3F ; CPU:$BAE1 PRG:3AE1 29 3F
cmp #$03 ; CPU:$BAE3 PRG:3AE3 C9 03
bcs Sub_Loop141 ; CPU:$BAE5 PRG:3AE5 B0 1B
ldx WrestlerIndex2 ; CPU:$BAE7 PRG:3AE7 A6 86
lda PlayerTile,x ; CPU:$BAE9 PRG:3AE9 B5 32
and #$1F ; CPU:$BAEB PRG:3AEB 29 1F
cmp #$07 ; CPU:$BAED PRG:3AED C9 07
bne Sub_Loop141 ; CPU:$BAEF PRG:3AEF D0 11
lda Zp18 ; CPU:$BAF1 PRG:3AF1 A5 18
and #$01 ; CPU:$BAF3 PRG:3AF3 29 01
beq Sub_Loop141 ; CPU:$BAF5 PRG:3AF5 F0 0B
lda #$80 ; CPU:$BAF7 PRG:3AF7 A9 80
sta Zp3E ; CPU:$BAF9 PRG:3AF9 85 3E
ldx Zp1B ; CPU:$BAFB PRG:3AFB A6 1B
lda Zp18 ; CPU:$BAFD PRG:3AFD A5 18
jmp Sub_BB3C ; CPU:$BAFF PRG:3AFF 4C 3C BB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop141
; Global: Branch target inside Sub: taken when Loop141.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop141:
ldx WrestlerIndex2 ; CPU:$BB02 PRG:3B02 A6 86
lda PlayerTile,x ; CPU:$BB04 PRG:3B04 B5 32
and #$3F ; CPU:$BB06 PRG:3B06 29 3F
cmp #$03 ; CPU:$BB08 PRG:3B08 C9 03
bcs Sub_Loop143 ; CPU:$BB0A PRG:3B0A B0 1B
ldx WrestlerIndex ; CPU:$BB0C PRG:3B0C A6 85
lda PlayerTile,x ; CPU:$BB0E PRG:3B0E B5 32
and #$1F ; CPU:$BB10 PRG:3B10 29 1F
cmp #$07 ; CPU:$BB12 PRG:3B12 C9 07
beq Sub_Loop142 ; CPU:$BB14 PRG:3B14 F0 03
jmp Sub_Loop151 ; CPU:$BB16 PRG:3B16 4C AC BB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop142
; Global: Branch target inside Sub: taken when Loop142.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop142:
lda Zp7B ; CPU:$BB19 PRG:3B19 A5 7B
and #$20 ; CPU:$BB1B PRG:3B1B 29 20
bne Sub_Loop144 ; CPU:$BB1D PRG:3B1D D0 0B
ldx WrestlerIndex ; CPU:$BB1F PRG:3B1F A6 85
lda Zp35,x ; CPU:$BB21 PRG:3B21 B5 35
and #$F8 ; CPU:$BB23 PRG:3B23 29 F8
beq Sub_Loop145 ; CPU:$BB25 PRG:3B25 F0 09
; -----------------------------------------------------------------------------
; Routine: Sub_Loop143
; Global: Branch target inside Sub: taken when Loop143.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop143:
jmp Sub_Loop151 ; CPU:$BB27 PRG:3B27 4C AC BB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop144
; Global: Branch target inside Sub: taken when Loop144.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop144:
lda Zp19 ; CPU:$BB2A PRG:3B2A A5 19
and #$01 ; CPU:$BB2C PRG:3B2C 29 01
beq Sub_Loop151 ; CPU:$BB2E PRG:3B2E F0 7C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop145
; Global: Branch target inside Sub: taken when Loop145.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop145:
lda #$A0 ; CPU:$BB30 PRG:3B30 A9 A0
sta Zp3E ; CPU:$BB32 PRG:3B32 85 3E
lda Zp19 ; CPU:$BB34 PRG:3B34 A5 19
sta Zp3A ; CPU:$BB36 PRG:3B36 85 3A
lda #$00 ; CPU:$BB38 PRG:3B38 A9 00
sta Zp39 ; CPU:$BB3A PRG:3B3A 85 39
; -----------------------------------------------------------------------------
; Routine: Sub_BB3C
; Global: Branch target inside Sub: taken when BB3C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BB3C:
lda #$FF ; CPU:$BB3C PRG:3B3C A9 FF
sta ZpA7 ; CPU:$BB3E PRG:3B3E 85 A7
ldx WrestlerIndex2 ; CPU:$BB40 PRG:3B40 A6 86
lda Zp3E ; CPU:$BB42 PRG:3B42 A5 3E
and #$20 ; CPU:$BB44 PRG:3B44 29 20
beq Sub_Loop146 ; CPU:$BB46 PRG:3B46 F0 02
ldx WrestlerIndex ; CPU:$BB48 PRG:3B48 A6 85
; -----------------------------------------------------------------------------
; Routine: Sub_Loop146
; Global: Branch target inside Sub: taken when Loop146.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop146:
lda #$80 ; CPU:$BB4A PRG:3B4A A9 80
sta PlayerState ; CPU:$BB4C PRG:3B4C 85 1A
lda PlayerX,x ; CPU:$BB4E PRG:3B4E B5 33
cmp #$78 ; CPU:$BB50 PRG:3B50 C9 78
bcs Sub_Loop148 ; CPU:$BB52 PRG:3B52 B0 18
clc ; CPU:$BB54 PRG:3B54 18
adc #$10 ; CPU:$BB55 PRG:3B55 69 10
sta Zp66 ; CPU:$BB57 PRG:3B57 85 66
ldy #$98 ; CPU:$BB59 PRG:3B59 A0 98
lda PlayerY,x ; CPU:$BB5B PRG:3B5B B5 34
cmp #$80 ; CPU:$BB5D PRG:3B5D C9 80
bcc Sub_Loop147 ; CPU:$BB5F PRG:3B5F 90 06
ldy #$60 ; CPU:$BB61 PRG:3B61 A0 60
lda #$C0 ; CPU:$BB63 PRG:3B63 A9 C0
sta PlayerState ; CPU:$BB65 PRG:3B65 85 1A
; -----------------------------------------------------------------------------
; Routine: Sub_Loop147
; Global: Branch target inside Sub: taken when Loop147.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop147:
sty Zp67 ; CPU:$BB67 PRG:3B67 84 67
jmp Sub_BB74 ; CPU:$BB69 PRG:3B69 4C 74 BB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop148
; Global: Branch target inside Sub: taken when Loop148.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop148:
lda #$60 ; CPU:$BB6C PRG:3B6C A9 60
sta Zp66 ; CPU:$BB6E PRG:3B6E 85 66
lda PlayerY,x ; CPU:$BB70 PRG:3B70 B5 34
sta Zp67 ; CPU:$BB72 PRG:3B72 85 67
; -----------------------------------------------------------------------------
; Routine: Sub_BB74
; Global: Branch target inside Sub: taken when BB74.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BB74:
lda PlayerState ; CPU:$BB74 PRG:3B74 A5 1A
sta Zp65 ; CPU:$BB76 PRG:3B76 85 65
lda #$00 ; CPU:$BB78 PRG:3B78 A9 00
sta Zp3F ; CPU:$BB7A PRG:3B7A 85 3F
lda #$A0 ; CPU:$BB7C PRG:3B7C A9 A0
sta Zp40 ; CPU:$BB7E PRG:3B7E 85 40
lda #$20 ; CPU:$BB80 PRG:3B80 A9 20
sta Zp68 ; CPU:$BB82 PRG:3B82 85 68
lda Zp66 ; CPU:$BB84 PRG:3B84 A5 66
cmp #$78 ; CPU:$BB86 PRG:3B86 C9 78
bne Sub_Loop149 ; CPU:$BB88 PRG:3B88 D0 07
ldy #$EF ; CPU:$BB8A PRG:3B8A A0 EF
ldx #$21 ; CPU:$BB8C PRG:3B8C A2 21
jmp Sub_Loop150 ; CPU:$BB8E PRG:3B8E 4C 9D BB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop149
; Global: Branch target inside Sub: taken when Loop149.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop149:
ldx #$22 ; CPU:$BB91 PRG:3B91 A2 22
ldy #$49 ; CPU:$BB93 PRG:3B93 A0 49
lda Zp67 ; CPU:$BB95 PRG:3B95 A5 67
cmp #$80 ; CPU:$BB97 PRG:3B97 C9 80
bcc Sub_Loop150 ; CPU:$BB99 PRG:3B99 90 02
ldy #$56 ; CPU:$BB9B PRG:3B9B A0 56
; -----------------------------------------------------------------------------
; Routine: Sub_Loop150
; Global: Branch target inside Sub: taken when Loop150.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop150:
sty Zp6B ; CPU:$BB9D PRG:3B9D 84 6B
stx Zp6C ; CPU:$BB9F PRG:3B9F 86 6C
lda GameState ; CPU:$BBA1 PRG:3BA1 A5 36
and #$FB ; CPU:$BBA3 PRG:3BA3 29 FB
sta GameState ; CPU:$BBA5 PRG:3BA5 85 36
lda #$FF ; CPU:$BBA7 PRG:3BA7 A9 FF
jmp Sub_BBAE ; CPU:$BBA9 PRG:3BA9 4C AE BB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop151
; Global: Branch target inside Sub: taken when Loop151.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop151:
lda #$00 ; CPU:$BBAC PRG:3BAC A9 00
; -----------------------------------------------------------------------------
; Routine: Sub_BBAE
; Global: Branch target inside Sub: taken when BBAE.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BBAE:
rts ; CPU:$BBAE PRG:3BAE 60
; -----------------------------------------------------------------------------
; Routine: Sub_BBAF
; Global: Branch target inside Sub: taken when BBAF.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BBAF:
ldx WrestlerIndex2 ; CPU:$BBAF PRG:3BAF A6 86
lda PlayerX,x ; CPU:$BBB1 PRG:3BB1 B5 33
sta Zp97 ; CPU:$BBB3 PRG:3BB3 85 97
lda PlayerY,x ; CPU:$BBB5 PRG:3BB5 B5 34
sta SpriteY ; CPU:$BBB7 PRG:3BB7 85 98
ldx WrestlerIndex ; CPU:$BBB9 PRG:3BB9 A6 85
lda PlayerX,x ; CPU:$BBBB PRG:3BBB B5 33
sta Zp95 ; CPU:$BBBD PRG:3BBD 85 95
lda PlayerY,x ; CPU:$BBBF PRG:3BBF B5 34
sta SpriteX ; CPU:$BBC1 PRG:3BC1 85 96
lda PlayerTile,x ; CPU:$BBC3 PRG:3BC3 B5 32
and #$3F ; CPU:$BBC5 PRG:3BC5 29 3F
cmp #$03 ; CPU:$BBC7 PRG:3BC7 C9 03
bcc Sub_Loop152 ; CPU:$BBC9 PRG:3BC9 90 03
jmp Sub_BD2B ; CPU:$BBCB PRG:3BCB 4C 2B BD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop152
; Global: Branch target inside Sub: taken when Loop152.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop152:
ldx WrestlerIndex2 ; CPU:$BBCE PRG:3BCE A6 86
lda PlayerTile,x ; CPU:$BBD0 PRG:3BD0 B5 32
and #$3F ; CPU:$BBD2 PRG:3BD2 29 3F
cmp #$03 ; CPU:$BBD4 PRG:3BD4 C9 03
bcc Sub_Loop153 ; CPU:$BBD6 PRG:3BD6 90 03
jmp Sub_BD2B ; CPU:$BBD8 PRG:3BD8 4C 2B BD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop153
; Global: Branch target inside Sub: taken when Loop153.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop153:
lda Zp95 ; CPU:$BBDB PRG:3BDB A5 95
clc ; CPU:$BBDD PRG:3BDD 18
adc #$08 ; CPU:$BBDE PRG:3BDE 69 08
sec ; CPU:$BBE0 PRG:3BE0 38
sbc Zp97 ; CPU:$BBE1 PRG:3BE1 E5 97
cmp #$11 ; CPU:$BBE3 PRG:3BE3 C9 11
bcc Sub_Loop154 ; CPU:$BBE5 PRG:3BE5 90 03
jmp Sub_BD2B ; CPU:$BBE7 PRG:3BE7 4C 2B BD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop154
; Global: Branch target inside Sub: taken when Loop154.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop154:
lda SpriteX ; CPU:$BBEA PRG:3BEA A5 96
clc ; CPU:$BBEC PRG:3BEC 18
adc #$0C ; CPU:$BBED PRG:3BED 69 0C
sec ; CPU:$BBEF PRG:3BEF 38
sbc SpriteY ; CPU:$BBF0 PRG:3BF0 E5 98
cmp #$18 ; CPU:$BBF2 PRG:3BF2 C9 18
bcc Sub_Loop155 ; CPU:$BBF4 PRG:3BF4 90 03
jmp Sub_BD2B ; CPU:$BBF6 PRG:3BF6 4C 2B BD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop155
; Global: Branch target inside Sub: taken when Loop155.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop155:
lda Zp6D ; CPU:$BBF9 PRG:3BF9 A5 6D
bpl Sub_Loop158 ; CPU:$BBFB PRG:3BFB 10 24
lda Zp70 ; CPU:$BBFD PRG:3BFD A5 70
bpl Sub_Loop156 ; CPU:$BBFF PRG:3BFF 10 03
jmp Sub_BD2B ; CPU:$BC01 PRG:3C01 4C 2B BD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop156
; Global: Branch target inside Sub: taken when Loop156.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop156:
ldx WrestlerIndex ; CPU:$BC04 PRG:3C04 A6 85
lda PlayerTile,x ; CPU:$BC06 PRG:3C06 B5 32
and #$C0 ; CPU:$BC08 PRG:3C08 29 C0
tay ; CPU:$BC0A PRG:3C0A A8
lda SpriteX ; CPU:$BC0B PRG:3C0B A5 96
cmp SpriteY ; CPU:$BC0D PRG:3C0D C5 98
bcs Sub_Loop157 ; CPU:$BC0F PRG:3C0F B0 07
cpy #$C0 ; CPU:$BC11 PRG:3C11 C0 C0
bne Sub_Loop160 ; CPU:$BC13 PRG:3C13 D0 2E
jmp Sub_BC1C ; CPU:$BC15 PRG:3C15 4C 1C BC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop157
; Global: Branch target inside Sub: taken when Loop157.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop157:
cpy #$80 ; CPU:$BC18 PRG:3C18 C0 80
bne Sub_Loop160 ; CPU:$BC1A PRG:3C1A D0 27
; -----------------------------------------------------------------------------
; Routine: Sub_BC1C
; Global: Branch target inside Sub: taken when BC1C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BC1C:
lda #$80 ; CPU:$BC1C PRG:3C1C A9 80
jmp Sub_BC48 ; CPU:$BC1E PRG:3C1E 4C 48 BC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop158
; Global: Branch target inside Sub: taken when Loop158.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop158:
lda Zp70 ; CPU:$BC21 PRG:3C21 A5 70
bpl Sub_Loop160 ; CPU:$BC23 PRG:3C23 10 1E
lda GameState ; CPU:$BC25 PRG:3C25 A5 36
and #$04 ; CPU:$BC27 PRG:3C27 29 04
bne Sub_Loop161 ; CPU:$BC29 PRG:3C29 D0 1B
ldx WrestlerIndex2 ; CPU:$BC2B PRG:3C2B A6 86
lda PlayerTile,x ; CPU:$BC2D PRG:3C2D B5 32
and #$C0 ; CPU:$BC2F PRG:3C2F 29 C0
tay ; CPU:$BC31 PRG:3C31 A8
lda SpriteY ; CPU:$BC32 PRG:3C32 A5 98
cmp SpriteX ; CPU:$BC34 PRG:3C34 C5 96
bcc Sub_Loop159 ; CPU:$BC36 PRG:3C36 90 07
cpy #$80 ; CPU:$BC38 PRG:3C38 C0 80
bne Sub_Loop160 ; CPU:$BC3A PRG:3C3A D0 07
jmp Sub_Loop161 ; CPU:$BC3C PRG:3C3C 4C 46 BC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop159
; Global: Branch target inside Sub: taken when Loop159.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop159:
cpy #$C0 ; CPU:$BC3F PRG:3C3F C0 C0
beq Sub_Loop161 ; CPU:$BC41 PRG:3C41 F0 03
; -----------------------------------------------------------------------------
; Routine: Sub_Loop160
; Global: Branch target inside Sub: taken when Loop160.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop160:
jmp Sub_BD2B ; CPU:$BC43 PRG:3C43 4C 2B BD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop161
; Global: Branch target inside Sub: taken when Loop161.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop161:
lda #$A0 ; CPU:$BC46 PRG:3C46 A9 A0
; -----------------------------------------------------------------------------
; Routine: Sub_BC48
; Global: Branch target inside Sub: taken when BC48.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BC48:
sta Zp37 ; CPU:$BC48 PRG:3C48 85 37
lda Zp95 ; CPU:$BC4A PRG:3C4A A5 95
cmp Zp97 ; CPU:$BC4C PRG:3C4C C5 97
bcc Sub_Loop162 ; CPU:$BC4E PRG:3C4E 90 05
sta Zp97 ; CPU:$BC50 PRG:3C50 85 97
jmp Sub_BC59 ; CPU:$BC52 PRG:3C52 4C 59 BC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop162
; Global: Branch target inside Sub: taken when Loop162.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop162:
lda Zp97 ; CPU:$BC55 PRG:3C55 A5 97
sta Zp95 ; CPU:$BC57 PRG:3C57 85 95
; -----------------------------------------------------------------------------
; Routine: Sub_BC59
; Global: Branch target inside Sub: taken when BC59.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BC59:
cmp #$50 ; CPU:$BC59 PRG:3C59 C9 50
bcs Sub_Loop163 ; CPU:$BC5B PRG:3C5B B0 04
ldx #$FF ; CPU:$BC5D PRG:3C5D A2 FF
stx Zp9F ; CPU:$BC5F PRG:3C5F 86 9F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop163
; Global: Branch target inside Sub: taken when Loop163.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop163:
ldx #$00 ; CPU:$BC61 PRG:3C61 A2 00
cmp #$78 ; CPU:$BC63 PRG:3C63 C9 78
bcs Sub_Loop164 ; CPU:$BC65 PRG:3C65 B0 02
ldx #$FF ; CPU:$BC67 PRG:3C67 A2 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop164
; Global: Branch target inside Sub: taken when Loop164.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop164:
stx ZpA4 ; CPU:$BC69 PRG:3C69 86 A4
lda SpriteX ; CPU:$BC6B PRG:3C6B A5 96
cmp #$80 ; CPU:$BC6D PRG:3C6D C9 80
bcs Sub_Loop166 ; CPU:$BC6F PRG:3C6F B0 1C
cmp SpriteY ; CPU:$BC71 PRG:3C71 C5 98
bcs Sub_Loop165 ; CPU:$BC73 PRG:3C73 B0 0C
lda SpriteX ; CPU:$BC75 PRG:3C75 A5 96
clc ; CPU:$BC77 PRG:3C77 18
adc #$18 ; CPU:$BC78 PRG:3C78 69 18
sta SpriteY ; CPU:$BC7A PRG:3C7A 85 98
ldy #$40 ; CPU:$BC7C PRG:3C7C A0 40
jmp Sub_BCA6 ; CPU:$BC7E PRG:3C7E 4C A6 BC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop165
; Global: Branch target inside Sub: taken when Loop165.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop165:
lda SpriteY ; CPU:$BC81 PRG:3C81 A5 98
clc ; CPU:$BC83 PRG:3C83 18
adc #$18 ; CPU:$BC84 PRG:3C84 69 18
sta SpriteX ; CPU:$BC86 PRG:3C86 85 96
ldy #$00 ; CPU:$BC88 PRG:3C88 A0 00
jmp Sub_BCA6 ; CPU:$BC8A PRG:3C8A 4C A6 BC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop166
; Global: Branch target inside Sub: taken when Loop166.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop166:
cmp SpriteY ; CPU:$BC8D PRG:3C8D C5 98
bcs Sub_Loop167 ; CPU:$BC8F PRG:3C8F B0 0C
lda SpriteY ; CPU:$BC91 PRG:3C91 A5 98
sec ; CPU:$BC93 PRG:3C93 38
sbc #$18 ; CPU:$BC94 PRG:3C94 E9 18
sta SpriteX ; CPU:$BC96 PRG:3C96 85 96
ldy #$40 ; CPU:$BC98 PRG:3C98 A0 40
jmp Sub_BCA6 ; CPU:$BC9A PRG:3C9A 4C A6 BC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop167
; Global: Branch target inside Sub: taken when Loop167.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop167:
lda SpriteX ; CPU:$BC9D PRG:3C9D A5 96
sec ; CPU:$BC9F PRG:3C9F 38
sbc #$18 ; CPU:$BCA0 PRG:3CA0 E9 18
sta SpriteY ; CPU:$BCA2 PRG:3CA2 85 98
ldy #$00 ; CPU:$BCA4 PRG:3CA4 A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_BCA6
; Global: Branch target inside Sub: taken when BCA6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BCA6:
ldx WrestlerIndex ; CPU:$BCA6 PRG:3CA6 A6 85
lda Zp95 ; CPU:$BCA8 PRG:3CA8 A5 95
sta PlayerX,x ; CPU:$BCAA PRG:3CAA 95 33
lda SpriteX ; CPU:$BCAC PRG:3CAC A5 96
sta PlayerY,x ; CPU:$BCAE PRG:3CAE 95 34
ldx WrestlerIndex2 ; CPU:$BCB0 PRG:3CB0 A6 86
lda Zp97 ; CPU:$BCB2 PRG:3CB2 A5 97
sta PlayerX,x ; CPU:$BCB4 PRG:3CB4 95 33
lda SpriteY ; CPU:$BCB6 PRG:3CB6 A5 98
sta PlayerY,x ; CPU:$BCB8 PRG:3CB8 95 34
tya ; CPU:$BCBA PRG:3CBA 98
ora Zp37 ; CPU:$BCBB PRG:3CBB 05 37
sta Zp37 ; CPU:$BCBD PRG:3CBD 85 37
ldx #$80 ; CPU:$BCBF PRG:3CBF A2 80
lda Zp37 ; CPU:$BCC1 PRG:3CC1 A5 37
and #$20 ; CPU:$BCC3 PRG:3CC3 29 20
beq Sub_Loop168 ; CPU:$BCC5 PRG:3CC5 F0 08
lda Zp7B ; CPU:$BCC7 PRG:3CC7 A5 7B
and #$20 ; CPU:$BCC9 PRG:3CC9 29 20
bne Sub_Loop168 ; CPU:$BCCB PRG:3CCB D0 02
ldx #$20 ; CPU:$BCCD PRG:3CCD A2 20
; -----------------------------------------------------------------------------
; Routine: Sub_Loop168
; Global: Branch target inside Sub: taken when Loop168.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop168:
stx Zp38 ; CPU:$BCCF PRG:3CCF 86 38
lda #$00 ; CPU:$BCD1 PRG:3CD1 A9 00
sta Zp39 ; CPU:$BCD3 PRG:3CD3 85 39
ldx Zp18 ; CPU:$BCD5 PRG:3CD5 A6 18
lda Zp37 ; CPU:$BCD7 PRG:3CD7 A5 37
and #$20 ; CPU:$BCD9 PRG:3CD9 29 20
beq Sub_Loop169 ; CPU:$BCDB PRG:3CDB F0 02
ldx Zp19 ; CPU:$BCDD PRG:3CDD A6 19
; -----------------------------------------------------------------------------
; Routine: Sub_Loop169
; Global: Branch target inside Sub: taken when Loop169.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop169:
stx Zp3A ; CPU:$BCDF PRG:3CDF 86 3A
lda Zp89 ; CPU:$BCE1 PRG:3CE1 A5 89
ora #$80 ; CPU:$BCE3 PRG:3CE3 09 80
sta Zp89 ; CPU:$BCE5 PRG:3CE5 85 89
lda #$00 ; CPU:$BCE7 PRG:3CE7 A9 00
sta ZpA7 ; CPU:$BCE9 PRG:3CE9 85 A7
lda #$00 ; CPU:$BCEB PRG:3CEB A9 00
sta Zp6D ; CPU:$BCED PRG:3CED 85 6D
sta Zp6E ; CPU:$BCEF PRG:3CEF 85 6E
sta Zp6F ; CPU:$BCF1 PRG:3CF1 85 6F
sta Zp70 ; CPU:$BCF3 PRG:3CF3 85 70
sta Zp71 ; CPU:$BCF5 PRG:3CF5 85 71
sta Zp72 ; CPU:$BCF7 PRG:3CF7 85 72
ldx #$23 ; CPU:$BCF9 PRG:3CF9 A2 23
ldy #$28 ; CPU:$BCFB PRG:3CFB A0 28
lda GameState ; CPU:$BCFD PRG:3CFD A5 36
bpl Sub_Loop170 ; CPU:$BCFF PRG:3CFF 10 04
ldx #$22 ; CPU:$BD01 PRG:3D01 A2 22
ldy #$87 ; CPU:$BD03 PRG:3D03 A0 87
; -----------------------------------------------------------------------------
; Routine: Sub_Loop170
; Global: Branch target inside Sub: taken when Loop170.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop170:
lda Zp37 ; CPU:$BD05 PRG:3D05 A5 37
and #$20 ; CPU:$BD07 PRG:3D07 29 20
beq Sub_Loop171 ; CPU:$BD09 PRG:3D09 F0 0C
ldx #$21 ; CPU:$BD0B PRG:3D0B A2 21
ldy #$4F ; CPU:$BD0D PRG:3D0D A0 4F
lda GameState ; CPU:$BD0F PRG:3D0F A5 36
bpl Sub_Loop171 ; CPU:$BD11 PRG:3D11 10 04
ldx #$22 ; CPU:$BD13 PRG:3D13 A2 22
ldy #$8F ; CPU:$BD15 PRG:3D15 A0 8F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop171
; Global: Branch target inside Sub: taken when Loop171.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop171:
stx Zp6A ; CPU:$BD17 PRG:3D17 86 6A
sty Zp69 ; CPU:$BD19 PRG:3D19 84 69
lda #$0F ; CPU:$BD1B PRG:3D1B A9 0F
jsr Sub_F036 ; CPU:$BD1D PRG:3D1D 20 36 F0
lda GameState ; CPU:$BD20 PRG:3D20 A5 36
and #$FB ; CPU:$BD22 PRG:3D22 29 FB
sta GameState ; CPU:$BD24 PRG:3D24 85 36
lda #$FF ; CPU:$BD26 PRG:3D26 A9 FF
jmp Sub_BD2D ; CPU:$BD28 PRG:3D28 4C 2D BD
; -----------------------------------------------------------------------------
; Routine: Sub_BD2B
; Global: Branch target inside Sub: taken when BD2B.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BD2B:
lda #$00 ; CPU:$BD2B PRG:3D2B A9 00
; -----------------------------------------------------------------------------
; Routine: Sub_BD2D
; Global: Branch target inside Sub: taken when BD2D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BD2D:
rts ; CPU:$BD2D PRG:3D2D 60
; -----------------------------------------------------------------------------
; Routine: Sub_BD2E
; Global: Branch target inside Sub: taken when BD2E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BD2E:
lda GameState ; CPU:$BD2E PRG:3D2E A5 36
bpl Sub_Loop174 ; CPU:$BD30 PRG:3D30 10 63
lda ZpA1 ; CPU:$BD32 PRG:3D32 A5 A1
beq Sub_Loop174 ; CPU:$BD34 PRG:3D34 F0 5F
ldx WrestlerIndex ; CPU:$BD36 PRG:3D36 A6 85
lda PlayerTile,x ; CPU:$BD38 PRG:3D38 B5 32
and #$1F ; CPU:$BD3A PRG:3D3A 29 1F
cmp #$05 ; CPU:$BD3C PRG:3D3C C9 05
beq Sub_Loop174 ; CPU:$BD3E PRG:3D3E F0 55
cmp #$06 ; CPU:$BD40 PRG:3D40 C9 06
beq Sub_Loop174 ; CPU:$BD42 PRG:3D42 F0 51
cmp #$03 ; CPU:$BD44 PRG:3D44 C9 03
bcs Sub_Loop174 ; CPU:$BD46 PRG:3D46 B0 4D
ldx WrestlerIndex2 ; CPU:$BD48 PRG:3D48 A6 86
lda PlayerTile,x ; CPU:$BD4A PRG:3D4A B5 32
and #$1F ; CPU:$BD4C PRG:3D4C 29 1F
cmp #$05 ; CPU:$BD4E PRG:3D4E C9 05
beq Sub_Loop174 ; CPU:$BD50 PRG:3D50 F0 43
cmp #$06 ; CPU:$BD52 PRG:3D52 C9 06
beq Sub_Loop174 ; CPU:$BD54 PRG:3D54 F0 3F
cmp #$03 ; CPU:$BD56 PRG:3D56 C9 03
bcs Sub_Loop174 ; CPU:$BD58 PRG:3D58 B0 3B
ldx WrestlerIndex ; CPU:$BD5A PRG:3D5A A6 85
lda PlayerY,x ; CPU:$BD5C PRG:3D5C B5 34
cmp #$80 ; CPU:$BD5E PRG:3D5E C9 80
bne Sub_Loop172 ; CPU:$BD60 PRG:3D60 D0 05
ldy #$00 ; CPU:$BD62 PRG:3D62 A0 00
jmp Sub_BD71 ; CPU:$BD64 PRG:3D64 4C 71 BD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop172
; Global: Branch target inside Sub: taken when Loop172.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop172:
ldx WrestlerIndex2 ; CPU:$BD67 PRG:3D67 A6 86
lda PlayerY,x ; CPU:$BD69 PRG:3D69 B5 34
cmp #$80 ; CPU:$BD6B PRG:3D6B C9 80
bne Sub_Loop174 ; CPU:$BD6D PRG:3D6D D0 26
ldy #$20 ; CPU:$BD6F PRG:3D6F A0 20
; -----------------------------------------------------------------------------
; Routine: Sub_BD71
; Global: Branch target inside Sub: taken when BD71.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BD71:
tya ; CPU:$BD71 PRG:3D71 98
ora #$8D ; CPU:$BD72 PRG:3D72 09 8D
sta Zp3B ; CPU:$BD74 PRG:3D74 85 3B
ldx WrestlerIndex ; CPU:$BD76 PRG:3D76 A6 85
lda PlayerY,x ; CPU:$BD78 PRG:3D78 B5 34
ldx WrestlerIndex2 ; CPU:$BD7A PRG:3D7A A6 86
cmp PlayerY,x ; CPU:$BD7C PRG:3D7C D5 34
bcs Sub_Loop173 ; CPU:$BD7E PRG:3D7E B0 06
lda Zp3B ; CPU:$BD80 PRG:3D80 A5 3B
ora #$40 ; CPU:$BD82 PRG:3D82 09 40
sta Zp3B ; CPU:$BD84 PRG:3D84 85 3B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop173
; Global: Branch target inside Sub: taken when Loop173.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop173:
lda #$00 ; CPU:$BD86 PRG:3D86 A9 00
sta Zp3C ; CPU:$BD88 PRG:3D88 85 3C
lda Zp3B ; CPU:$BD8A PRG:3D8A A5 3B
and #$7F ; CPU:$BD8C PRG:3D8C 29 7F
sta Zp37 ; CPU:$BD8E PRG:3D8E 85 37
lda #$FF ; CPU:$BD90 PRG:3D90 A9 FF
jmp Sub_BD97 ; CPU:$BD92 PRG:3D92 4C 97 BD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop174
; Global: Branch target inside Sub: taken when Loop174.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop174:
lda #$00 ; CPU:$BD95 PRG:3D95 A9 00
; -----------------------------------------------------------------------------
; Routine: Sub_BD97
; Global: Branch target inside Sub: taken when BD97.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BD97:
rts ; CPU:$BD97 PRG:3D97 60
; -----------------------------------------------------------------------------
; Routine: Sub_BD98
; Global: Branch target inside Sub: taken when BD98.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BD98:
ldx #$13 ; CPU:$BD98 PRG:3D98 A2 13
lda GameState ; CPU:$BD9A PRG:3D9A A5 36
and #$40 ; CPU:$BD9C PRG:3D9C 29 40
beq Sub_Loop175 ; CPU:$BD9E PRG:3D9E F0 02
ldx #$18 ; CPU:$BDA0 PRG:3DA0 A2 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop175
; Global: Branch target inside Sub: taken when Loop175.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop175:
stx PlayerState ; CPU:$BDA2 PRG:3DA2 86 1A
ldy #$23 ; CPU:$BDA4 PRG:3DA4 A0 23
lda GameState ; CPU:$BDA6 PRG:3DA6 A5 36
and #$20 ; CPU:$BDA8 PRG:3DA8 29 20
beq Sub_Loop176 ; CPU:$BDAA PRG:3DAA F0 02
ldy #$28 ; CPU:$BDAC PRG:3DAC A0 28
; -----------------------------------------------------------------------------
; Routine: Sub_Loop176
; Global: Branch target inside Sub: taken when Loop176.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop176:
sty Zp1B ; CPU:$BDAE PRG:3DAE 84 1B
lda PlayerTile,x ; CPU:$BDB0 PRG:3DB0 B5 32
and #$3F ; CPU:$BDB2 PRG:3DB2 29 3F
asl a ; CPU:$BDB4 PRG:3DB4 0A
tax ; CPU:$BDB5 PRG:3DB5 AA
lda $BFF3,x ; CPU:$BDB6 PRG:3DB6 BD F3 BF
sta Zp22 ; CPU:$BDB9 PRG:3DB9 85 22
lda $BFF4,x ; CPU:$BDBB PRG:3DBB BD F4 BF
sta Zp23 ; CPU:$BDBE PRG:3DBE 85 23
jmp (Zp22) ; CPU:$BDC0 PRG:3DC0 6C 22 00
; -----------------------------------------------------------------------------
; Routine: Label_BDC3
; Global: Branch target inside Label: taken when BDC3.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_BDC3:
lda Zp7B ; CPU:$BDC3 PRG:3DC3 A5 7B
and #$20 ; CPU:$BDC5 PRG:3DC5 29 20
bne Sub_Loop178 ; CPU:$BDC7 PRG:3DC7 D0 30
lda GameState ; CPU:$BDC9 PRG:3DC9 A5 36
and #$10 ; CPU:$BDCB PRG:3DCB 29 10
bne Sub_Loop178 ; CPU:$BDCD PRG:3DCD D0 2A
lda Zp89 ; CPU:$BDCF PRG:3DCF A5 89
bmi Sub_Loop178 ; CPU:$BDD1 PRG:3DD1 30 26
ldx #$00 ; CPU:$BDD3 PRG:3DD3 A2 00
jsr Sub_F028 ; CPU:$BDD5 PRG:3DD5 20 28 F0
cmp #$05 ; CPU:$BDD8 PRG:3DD8 C9 05
beq Sub_Loop177 ; CPU:$BDDA PRG:3DDA F0 0E
inx ; CPU:$BDDC PRG:3DDC E8
cmp #$0B ; CPU:$BDDD PRG:3DDD C9 0B
beq Sub_Loop177 ; CPU:$BDDF PRG:3DDF F0 09
inx ; CPU:$BDE1 PRG:3DE1 E8
cmp #$12 ; CPU:$BDE2 PRG:3DE2 C9 12
beq Sub_Loop177 ; CPU:$BDE4 PRG:3DE4 F0 04
cmp #$1C ; CPU:$BDE6 PRG:3DE6 C9 1C
bne Sub_Loop178 ; CPU:$BDE8 PRG:3DE8 D0 0F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop177
; Global: Branch target inside Sub: taken when Loop177.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop177:
lda Zp89 ; CPU:$BDEA PRG:3DEA A5 89
and #$0F ; CPU:$BDEC PRG:3DEC 29 0F
cmp $BFF0,x ; CPU:$BDEE PRG:3DEE DD F0 BF
bne Sub_Loop178 ; CPU:$BDF1 PRG:3DF1 D0 06
lda GameState ; CPU:$BDF3 PRG:3DF3 A5 36
ora #$10 ; CPU:$BDF5 PRG:3DF5 09 10
sta GameState ; CPU:$BDF7 PRG:3DF7 85 36
; -----------------------------------------------------------------------------
; Routine: Sub_Loop178
; Global: Branch target inside Sub: taken when Loop178.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop178:
lda Zp6E ; CPU:$BDF9 PRG:3DF9 A5 6E
bne Sub_Loop181 ; CPU:$BDFB PRG:3DFB D0 3F
ldx Zp6D ; CPU:$BDFD PRG:3DFD A6 6D
lda #$00 ; CPU:$BDFF PRG:3DFF A9 00
sta Zp6D ; CPU:$BE01 PRG:3E01 85 6D
txa ; CPU:$BE03 PRG:3E03 8A
bpl Sub_Loop179 ; CPU:$BE04 PRG:3E04 10 07
lda #$40 ; CPU:$BE06 PRG:3E06 A9 40
ldx #$08 ; CPU:$BE08 PRG:3E08 A2 08
jmp Sub_BE35 ; CPU:$BE0A PRG:3E0A 4C 35 BE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop179
; Global: Branch target inside Sub: taken when Loop179.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop179:
ldx PlayerState ; CPU:$BE0D PRG:3E0D A6 1A
lda PlayerTile,x ; CPU:$BE0F PRG:3E0F B5 32
and #$C0 ; CPU:$BE11 PRG:3E11 29 C0
bpl Sub_Loop182 ; CPU:$BE13 PRG:3E13 10 29
lda Zp7B ; CPU:$BE15 PRG:3E15 A5 7B
bpl Sub_Loop180 ; CPU:$BE17 PRG:3E17 10 09
lda ZpAC ; CPU:$BE19 PRG:3E19 A5 AC
and #$40 ; CPU:$BE1B PRG:3E1B 29 40
beq Sub_Loop182 ; CPU:$BE1D PRG:3E1D F0 1F
jmp Sub_BE2C ; CPU:$BE1F PRG:3E1F 4C 2C BE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop180
; Global: Branch target inside Sub: taken when Loop180.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop180:
lda Zp6F ; CPU:$BE22 PRG:3E22 A5 6F
eor #$FF ; CPU:$BE24 PRG:3E24 49 FF
and Zp18 ; CPU:$BE26 PRG:3E26 25 18
and #$01 ; CPU:$BE28 PRG:3E28 29 01
beq Sub_Loop182 ; CPU:$BE2A PRG:3E2A F0 12
; -----------------------------------------------------------------------------
; Routine: Sub_BE2C
; Global: Branch target inside Sub: taken when BE2C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BE2C:
lda #$02 ; CPU:$BE2C PRG:3E2C A9 02
jsr Sub_F036 ; CPU:$BE2E PRG:3E2E 20 36 F0
lda #$80 ; CPU:$BE31 PRG:3E31 A9 80
ldx #$10 ; CPU:$BE33 PRG:3E33 A2 10
; -----------------------------------------------------------------------------
; Routine: Sub_BE35
; Global: Branch target inside Sub: taken when BE35.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BE35:
sta Zp6D ; CPU:$BE35 PRG:3E35 85 6D
stx Zp6E ; CPU:$BE37 PRG:3E37 86 6E
jmp Sub_BE42 ; CPU:$BE39 PRG:3E39 4C 42 BE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop181
; Global: Branch target inside Sub: taken when Loop181.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop181:
dec Zp6E ; CPU:$BE3C PRG:3E3C C6 6E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop182
; Global: Branch target inside Sub: taken when Loop182.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop182:
lda Zp18 ; CPU:$BE3E PRG:3E3E A5 18
sta Zp6F ; CPU:$BE40 PRG:3E40 85 6F
; -----------------------------------------------------------------------------
; Routine: Sub_BE42
; Global: Branch target inside Sub: taken when BE42.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BE42:
lda GameState ; CPU:$BE42 PRG:3E42 A5 36
bpl Sub_Loop183 ; CPU:$BE44 PRG:3E44 10 03
jmp Sub_BEB8 ; CPU:$BE46 PRG:3E46 4C B8 BE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop183
; Global: Branch target inside Sub: taken when Loop183.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop183:
ldx WrestlerIndex2 ; CPU:$BE49 PRG:3E49 A6 86
lda PlayerTile,x ; CPU:$BE4B PRG:3E4B B5 32
and #$3F ; CPU:$BE4D PRG:3E4D 29 3F
cmp #$0B ; CPU:$BE4F PRG:3E4F C9 0B
bne Sub_Loop184 ; CPU:$BE51 PRG:3E51 D0 03
jmp Sub_BF3E ; CPU:$BE53 PRG:3E53 4C 3E BF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop184
; Global: Branch target inside Sub: taken when Loop184.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop184:
lda Zp18 ; CPU:$BE56 PRG:3E56 A5 18
and #$02 ; CPU:$BE58 PRG:3E58 29 02
beq Sub_Loop187 ; CPU:$BE5A PRG:3E5A F0 57
ldx PlayerState ; CPU:$BE5C PRG:3E5C A6 1A
lda PlayerX,x ; CPU:$BE5E PRG:3E5E B5 33
cmp #$90 ; CPU:$BE60 PRG:3E60 C9 90
bcc Sub_Loop187 ; CPU:$BE62 PRG:3E62 90 4F
cmp #$A0 ; CPU:$BE64 PRG:3E64 C9 A0
bcs Sub_Loop187 ; CPU:$BE66 PRG:3E66 B0 4B
lda PlayerY,x ; CPU:$BE68 PRG:3E68 B5 34
cmp #$3A ; CPU:$BE6A PRG:3E6A C9 3A
bcs Sub_Loop187 ; CPU:$BE6C PRG:3E6C B0 45
ldx #$13 ; CPU:$BE6E PRG:3E6E A2 13
lda GameState ; CPU:$BE70 PRG:3E70 A5 36
and #$40 ; CPU:$BE72 PRG:3E72 29 40
bne Sub_Loop185 ; CPU:$BE74 PRG:3E74 D0 02
ldx #$18 ; CPU:$BE76 PRG:3E76 A2 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop185
; Global: Branch target inside Sub: taken when Loop185.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop185:
lda PlayerX,x ; CPU:$BE78 PRG:3E78 B5 33
cmp #$B0 ; CPU:$BE7A PRG:3E7A C9 B0
bne Sub_Loop187 ; CPU:$BE7C PRG:3E7C D0 35
lda PlayerY,x ; CPU:$BE7E PRG:3E7E B5 34
cmp #$2A ; CPU:$BE80 PRG:3E80 C9 2A
bne Sub_Loop187 ; CPU:$BE82 PRG:3E82 D0 2F
lda #$0B ; CPU:$BE84 PRG:3E84 A9 0B
ldx PlayerState ; CPU:$BE86 PRG:3E86 A6 1A
sta PlayerTile,x ; CPU:$BE88 PRG:3E88 95 32
lda #$20 ; CPU:$BE8A PRG:3E8A A9 20
sta GameState,x ; CPU:$BE8C PRG:3E8C 95 36
lda #$13 ; CPU:$BE8E PRG:3E8E A9 13
cpx #$18 ; CPU:$BE90 PRG:3E90 E0 18
beq Sub_Loop186 ; CPU:$BE92 PRG:3E92 F0 02
lda #$18 ; CPU:$BE94 PRG:3E94 A9 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop186
; Global: Branch target inside Sub: taken when Loop186.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop186:
tax ; CPU:$BE96 PRG:3E96 AA
lda #$42 ; CPU:$BE97 PRG:3E97 A9 42
sta PlayerTile,x ; CPU:$BE99 PRG:3E99 95 32
lda #$20 ; CPU:$BE9B PRG:3E9B A9 20
sta GameState,x ; CPU:$BE9D PRG:3E9D 95 36
lda #$80 ; CPU:$BE9F PRG:3E9F A9 80
sta ZpA3 ; CPU:$BEA1 PRG:3EA1 85 A3
lda #$07 ; CPU:$BEA3 PRG:3EA3 A9 07
jsr Sub_F036 ; CPU:$BEA5 PRG:3EA5 20 36 F0
inc Zp89 ; CPU:$BEA8 PRG:3EA8 E6 89
lda Zp89 ; CPU:$BEAA PRG:3EAA A5 89
and #$8F ; CPU:$BEAC PRG:3EAC 29 8F
sta Zp89 ; CPU:$BEAE PRG:3EAE 85 89
jmp Sub_BF3E ; CPU:$BEB0 PRG:3EB0 4C 3E BF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop187
; Global: Branch target inside Sub: taken when Loop187.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop187:
lda Zp16 ; CPU:$BEB3 PRG:3EB3 A5 16
jmp Sub_C479 ; CPU:$BEB5 PRG:3EB5 4C 79 C4
; -----------------------------------------------------------------------------
; Routine: Sub_BEB8
; Global: Branch target inside Sub: taken when BEB8.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BEB8:
lda Zp41 ; CPU:$BEB8 PRG:3EB8 A5 41
and #$20 ; CPU:$BEBA PRG:3EBA 29 20
beq Sub_Loop188 ; CPU:$BEBC PRG:3EBC F0 14
lda Zp7B ; CPU:$BEBE PRG:3EBE A5 7B
and #$20 ; CPU:$BEC0 PRG:3EC0 29 20
bne Sub_Loop188 ; CPU:$BEC2 PRG:3EC2 D0 0E
lda Zp35 ; CPU:$BEC4 PRG:3EC4 A5 35
bne Sub_Loop188 ; CPU:$BEC6 PRG:3EC6 D0 0A
ldx PlayerState ; CPU:$BEC8 PRG:3EC8 A6 1A
lda Zp35,x ; CPU:$BECA PRG:3ECA B5 35
cmp #$16 ; CPU:$BECC PRG:3ECC C9 16
beq Sub_Loop188 ; CPU:$BECE PRG:3ECE F0 02
inc Zp35,x ; CPU:$BED0 PRG:3ED0 F6 35
; -----------------------------------------------------------------------------
; Routine: Sub_Loop188
; Global: Branch target inside Sub: taken when Loop188.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop188:
lda Zp16 ; CPU:$BED2 PRG:3ED2 A5 16
cmp #$00 ; CPU:$BED4 PRG:3ED4 C9 00
beq Sub_Loop189 ; CPU:$BED6 PRG:3ED6 F0 13
cmp #$01 ; CPU:$BED8 PRG:3ED8 C9 01
beq Sub_Loop191 ; CPU:$BEDA PRG:3EDA F0 24
cmp #$03 ; CPU:$BEDC PRG:3EDC C9 03
beq Sub_Loop194 ; CPU:$BEDE PRG:3EDE F0 30
cmp #$05 ; CPU:$BEE0 PRG:3EE0 C9 05
beq Sub_Loop195 ; CPU:$BEE2 PRG:3EE2 F0 31
cmp #$07 ; CPU:$BEE4 PRG:3EE4 C9 07
beq Sub_Loop197 ; CPU:$BEE6 PRG:3EE6 F0 51
jmp Sub_BF3E ; CPU:$BEE8 PRG:3EE8 4C 3E BF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop189
; Global: Branch target inside Sub: taken when Loop189.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop189:
ldx PlayerState ; CPU:$BEEB PRG:3EEB A6 1A
lda PlayerTile,x ; CPU:$BEED PRG:3EED B5 32
and #$C0 ; CPU:$BEEF PRG:3EEF 29 C0
sta PlayerTile,x ; CPU:$BEF1 PRG:3EF1 95 32
lda Zp41 ; CPU:$BEF3 PRG:3EF3 A5 41
and #$20 ; CPU:$BEF5 PRG:3EF5 29 20
bne Sub_Loop190 ; CPU:$BEF7 PRG:3EF7 D0 04
lda #$00 ; CPU:$BEF9 PRG:3EF9 A9 00
sta PlayerTile,x ; CPU:$BEFB PRG:3EFB 95 32
; -----------------------------------------------------------------------------
; Routine: Sub_Loop190
; Global: Branch target inside Sub: taken when Loop190.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop190:
jmp Sub_BF3E ; CPU:$BEFD PRG:3EFD 4C 3E BF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop191
; Global: Branch target inside Sub: taken when Loop191.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop191:
lda Zp41 ; CPU:$BF00 PRG:3F00 A5 41
and #$20 ; CPU:$BF02 PRG:3F02 29 20
beq Sub_Loop192 ; CPU:$BF04 PRG:3F04 F0 04
lda ZpA1 ; CPU:$BF06 PRG:3F06 A5 A1
beq Sub_Loop193 ; CPU:$BF08 PRG:3F08 F0 03
; -----------------------------------------------------------------------------
; Routine: Sub_Loop192
; Global: Branch target inside Sub: taken when Loop192.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop192:
jmp Sub_BF3E ; CPU:$BF0A PRG:3F0A 4C 3E BF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop193
; Global: Branch target inside Sub: taken when Loop193.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop193:
jmp Sub_Loop269 ; CPU:$BF0D PRG:3F0D 4C 1B C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop194
; Global: Branch target inside Sub: taken when Loop194.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop194:
ldy #$20 ; CPU:$BF10 PRG:3F10 A0 20
jmp Sub_C53F ; CPU:$BF12 PRG:3F12 4C 3F C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop195
; Global: Branch target inside Sub: taken when Loop195.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop195:
ldy #$00 ; CPU:$BF15 PRG:3F15 A0 00
lda Zp41 ; CPU:$BF17 PRG:3F17 A5 41
and #$10 ; CPU:$BF19 PRG:3F19 29 10
beq Sub_Loop196 ; CPU:$BF1B PRG:3F1B F0 12
ldx Zp1B ; CPU:$BF1D PRG:3F1D A6 1B
lda PlayerTile,x ; CPU:$BF1F PRG:3F1F B5 32
and #$3F ; CPU:$BF21 PRG:3F21 29 3F
cmp #$05 ; CPU:$BF23 PRG:3F23 C9 05
beq Sub_Loop196 ; CPU:$BF25 PRG:3F25 F0 08
lda Zp41 ; CPU:$BF27 PRG:3F27 A5 41
and #$20 ; CPU:$BF29 PRG:3F29 29 20
bne Sub_Loop196 ; CPU:$BF2B PRG:3F2B D0 02
ldy #$03 ; CPU:$BF2D PRG:3F2D A0 03
; -----------------------------------------------------------------------------
; Routine: Sub_Loop196
; Global: Branch target inside Sub: taken when Loop196.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop196:
tya ; CPU:$BF2F PRG:3F2F 98
ldx PlayerState ; CPU:$BF30 PRG:3F30 A6 1A
sta PlayerTile,x ; CPU:$BF32 PRG:3F32 95 32
lda #$0C ; CPU:$BF34 PRG:3F34 A9 0C
jmp Sub_BFED ; CPU:$BF36 PRG:3F36 4C ED BF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop197
; Global: Branch target inside Sub: taken when Loop197.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop197:
ldy #$20 ; CPU:$BF39 PRG:3F39 A0 20
jmp Sub_C59D ; CPU:$BF3B PRG:3F3B 4C 9D C5
; -----------------------------------------------------------------------------
; Routine: Sub_BF3E
; Global: Branch target inside Sub: taken when BF3E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BF3E:
rts ; CPU:$BF3E PRG:3F3E 60
; -----------------------------------------------------------------------------
; Routine: Label_BF3F
; Global: Branch target inside Label: taken when BF3F.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_BF3F:
ldx PlayerState ; CPU:$BF3F PRG:3F3F A6 1A
ldy GameState,x ; CPU:$BF41 PRG:3F41 B4 36
lda $C69A,y ; CPU:$BF43 PRG:3F43 B9 9A C6
sta PlayerX,x ; CPU:$BF46 PRG:3F46 95 33
cpy #$00 ; CPU:$BF48 PRG:3F48 C0 00
beq Sub_Loop198 ; CPU:$BF4A PRG:3F4A F0 03
dec GameState,x ; CPU:$BF4C PRG:3F4C D6 36
rts ; CPU:$BF4E PRG:3F4E 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop198
; Global: Branch target inside Sub: taken when Loop198.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop198:
lda Zp41 ; CPU:$BF4F PRG:3F4F A5 41
ora #$20 ; CPU:$BF51 PRG:3F51 09 20
sta Zp41 ; CPU:$BF53 PRG:3F53 85 41
lda #$02 ; CPU:$BF55 PRG:3F55 A9 02
jsr Sub_F036 ; CPU:$BF57 PRG:3F57 20 36 F0
ldx PlayerState ; CPU:$BF5A PRG:3F5A A6 1A
lda #$04 ; CPU:$BF5C PRG:3F5C A9 04
jmp Sub_BFE9 ; CPU:$BF5E PRG:3F5E 4C E9 BF
; -----------------------------------------------------------------------------
; Routine: Label_BF61
; Global: Branch target inside Label: taken when BF61.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_BF61:
ldx PlayerState ; CPU:$BF61 PRG:3F61 A6 1A
lda #$00 ; CPU:$BF63 PRG:3F63 A9 00
jmp Sub_BFE9 ; CPU:$BF65 PRG:3F65 4C E9 BF
; -----------------------------------------------------------------------------
; Routine: Label_BF68
; Global: Branch target inside Label: taken when BF68.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_BF68:
ldx PlayerState ; CPU:$BF68 PRG:3F68 A6 1A
ldy GameState,x ; CPU:$BF6A PRG:3F6A B4 36
lda $C6A7,y ; CPU:$BF6C PRG:3F6C B9 A7 C6
sta PlayerX,x ; CPU:$BF6F PRG:3F6F 95 33
cpy #$00 ; CPU:$BF71 PRG:3F71 C0 00
beq Sub_Loop199 ; CPU:$BF73 PRG:3F73 F0 03
dec GameState,x ; CPU:$BF75 PRG:3F75 D6 36
rts ; CPU:$BF77 PRG:3F77 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop199
; Global: Branch target inside Sub: taken when Loop199.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop199:
lda Zp41 ; CPU:$BF78 PRG:3F78 A5 41
and #$90 ; CPU:$BF7A PRG:3F7A 29 90
sta Zp41 ; CPU:$BF7C PRG:3F7C 85 41
lda #$02 ; CPU:$BF7E PRG:3F7E A9 02
jsr Sub_F036 ; CPU:$BF80 PRG:3F80 20 36 F0
ldx PlayerState ; CPU:$BF83 PRG:3F83 A6 1A
lda #$46 ; CPU:$BF85 PRG:3F85 A9 46
jmp Sub_BFE9 ; CPU:$BF87 PRG:3F87 4C E9 BF
; -----------------------------------------------------------------------------
; Routine: Label_BF8A
; Global: Branch target inside Label: taken when BF8A.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_BF8A:
lda Zp41 ; CPU:$BF8A PRG:3F8A A5 41
and #$10 ; CPU:$BF8C PRG:3F8C 29 10
bne Sub_Loop200 ; CPU:$BF8E PRG:3F8E D0 14
ldx Zp1B ; CPU:$BF90 PRG:3F90 A6 1B
lda PlayerTile,x ; CPU:$BF92 PRG:3F92 B5 32
and #$3F ; CPU:$BF94 PRG:3F94 29 3F
cmp #$06 ; CPU:$BF96 PRG:3F96 C9 06
beq Sub_Loop200 ; CPU:$BF98 PRG:3F98 F0 0A
lda GameState ; CPU:$BF9A PRG:3F9A A5 36
and #$7F ; CPU:$BF9C PRG:3F9C 29 7F
sta GameState ; CPU:$BF9E PRG:3F9E 85 36
lda #$80 ; CPU:$BFA0 PRG:3FA0 A9 80
sta Zp8B ; CPU:$BFA2 PRG:3FA2 85 8B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop200
; Global: Branch target inside Sub: taken when Loop200.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop200:
ldx PlayerState ; CPU:$BFA4 PRG:3FA4 A6 1A
lda #$00 ; CPU:$BFA6 PRG:3FA6 A9 00
jmp Sub_BFE9 ; CPU:$BFA8 PRG:3FA8 4C E9 BF
; -----------------------------------------------------------------------------
; Routine: Label_BFAB
; Global: Branch target inside Label: taken when BFAB.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_BFAB:
ldx PlayerState ; CPU:$BFAB PRG:3FAB A6 1A
dec GameState,x ; CPU:$BFAD PRG:3FAD D6 36
beq Sub_Loop201 ; CPU:$BFAF PRG:3FAF F0 01
rts ; CPU:$BFB1 PRG:3FB1 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop201
; Global: Branch target inside Sub: taken when Loop201.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop201:
lda PlayerX,x ; CPU:$BFB2 PRG:3FB2 B5 33
sec ; CPU:$BFB4 PRG:3FB4 38
sbc #$10 ; CPU:$BFB5 PRG:3FB5 E9 10
sta PlayerX,x ; CPU:$BFB7 PRG:3FB7 95 33
lda PlayerTile,x ; CPU:$BFB9 PRG:3FB9 B5 32
and #$C0 ; CPU:$BFBB PRG:3FBB 29 C0
jmp Sub_BFE9 ; CPU:$BFBD PRG:3FBD 4C E9 BF
; -----------------------------------------------------------------------------
; Routine: Label_BFC0
; Global: Branch target inside Label: taken when BFC0.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_BFC0:
ldx PlayerState ; CPU:$BFC0 PRG:3FC0 A6 1A
dec GameState,x ; CPU:$BFC2 PRG:3FC2 D6 36
beq Sub_Loop202 ; CPU:$BFC4 PRG:3FC4 F0 01
rts ; CPU:$BFC6 PRG:3FC6 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop202
; Global: Branch target inside Sub: taken when Loop202.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop202:
lda #$B0 ; CPU:$BFC7 PRG:3FC7 A9 B0
sta PlayerX,x ; CPU:$BFC9 PRG:3FC9 95 33
lda #$2A ; CPU:$BFCB PRG:3FCB A9 2A
sta PlayerY,x ; CPU:$BFCD PRG:3FCD 95 34
lda GameState ; CPU:$BFCF PRG:3FCF A5 36
eor #$FF ; CPU:$BFD1 PRG:3FD1 49 FF
and #$40 ; CPU:$BFD3 PRG:3FD3 29 40
sta Zp1C ; CPU:$BFD5 PRG:3FD5 85 1C
lda GameState ; CPU:$BFD7 PRG:3FD7 A5 36
and #$BF ; CPU:$BFD9 PRG:3FD9 29 BF
ora Zp1C ; CPU:$BFDB PRG:3FDB 05 1C
sta GameState ; CPU:$BFDD PRG:3FDD 85 36
lda #$00 ; CPU:$BFDF PRG:3FDF A9 00
sta ZpA3 ; CPU:$BFE1 PRG:3FE1 85 A3
lda #$40 ; CPU:$BFE3 PRG:3FE3 A9 40
jmp Sub_BFE9 ; CPU:$BFE5 PRG:3FE5 4C E9 BF
; -----------------------------------------------------------------------------
; Routine: Label_BFE8
; Global: Branch target inside Label: taken when BFE8.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_BFE8:
rts ; CPU:$BFE8 PRG:3FE8 60
; -----------------------------------------------------------------------------
; Routine: Sub_BFE9
; Global: Branch target inside Sub: taken when BFE9.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BFE9:
sta PlayerTile,x ; CPU:$BFE9 PRG:3FE9 95 32
lda #$20 ; CPU:$BFEB PRG:3FEB A9 20
; -----------------------------------------------------------------------------
; Routine: Sub_BFED
; Global: Branch target inside Sub: taken when BFED.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_BFED:
sta GameState,x ; CPU:$BFED PRG:3FED 95 36
rts ; CPU:$BFEF PRG:3FEF 60
; ---- data $BFF0-$C00C (29 bytes) ----
; referenced by `lda $BFF3,x` at $BDB6 (operand $BFF3 falls inside this region)
; referenced by `lda $BFF4,x` at $BDBB (operand $BFF4 falls inside this region)
; referenced by `cmp $BFF0,x` at $BDEE (operand $BFF0 falls inside this region)
.byte $01, $02, $03, $C3, $BD, $F9, $BD, $F9, $BD, $3F, $BF, $61, $BF, $68, $BF, $8A ; CPU:$BFF0 PRG:3FF0 01 02 03 C3 BD F9 BD F9 BD 3F BF 61 BF 68 BF 8A
.byte $BF, $AB, $BF, $E8, $BF, $E8, $BF, $E8, $BF, $C0, $BF, $E8, $BF ; CPU:$C000 PRG:4000 BF AB BF E8 BF E8 BF E8 BF C0 BF E8 BF
; -----------------------------------------------------------------------------
; Routine: Sub_C00D
; Global: Branch target inside Sub: taken when C00D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C00D:
ldx #$23 ; CPU:$C00D PRG:400D A2 23
lda GameState ; CPU:$C00F PRG:400F A5 36
and #$20 ; CPU:$C011 PRG:4011 29 20
beq Sub_Loop203 ; CPU:$C013 PRG:4013 F0 02
ldx #$28 ; CPU:$C015 PRG:4015 A2 28
; -----------------------------------------------------------------------------
; Routine: Sub_Loop203
; Global: Branch target inside Sub: taken when Loop203.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop203:
stx PlayerState ; CPU:$C017 PRG:4017 86 1A
lda PlayerTile,x ; CPU:$C019 PRG:4019 B5 32
and #$3F ; CPU:$C01B PRG:401B 29 3F
asl a ; CPU:$C01D PRG:401D 0A
tax ; CPU:$C01E PRG:401E AA
lda $C385,x ; CPU:$C01F PRG:401F BD 85 C3
sta Zp22 ; CPU:$C022 PRG:4022 85 22
lda $C386,x ; CPU:$C024 PRG:4024 BD 86 C3
sta Zp23 ; CPU:$C027 PRG:4027 85 23
jmp (Zp22) ; CPU:$C029 PRG:4029 6C 22 00
; -----------------------------------------------------------------------------
; Routine: Label_C02C
; Global: Branch target inside Label: taken when C02C.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C02C:
lda GameState ; CPU:$C02C PRG:402C A5 36
and #$10 ; CPU:$C02E PRG:402E 29 10
bne Sub_Loop209 ; CPU:$C030 PRG:4030 D0 50
lda GameState ; CPU:$C032 PRG:4032 A5 36
and #$04 ; CPU:$C034 PRG:4034 29 04
bne Sub_Loop207 ; CPU:$C036 PRG:4036 D0 38
lda Zp71 ; CPU:$C038 PRG:4038 A5 71
bne Sub_Loop208 ; CPU:$C03A PRG:403A D0 44
ldx Zp70 ; CPU:$C03C PRG:403C A6 70
lda #$00 ; CPU:$C03E PRG:403E A9 00
; -----------------------------------------------------------------------------
; Routine: Label_C040
; Global: Branch target inside Label: taken when C040.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C040:
sta Zp70 ; CPU:$C040 PRG:4040 85 70
txa ; CPU:$C042 PRG:4042 8A
bpl Sub_Loop204 ; CPU:$C043 PRG:4043 10 07
lda #$40 ; CPU:$C045 PRG:4045 A9 40
ldx #$08 ; CPU:$C047 PRG:4047 A2 08
jmp Sub_C079 ; CPU:$C049 PRG:4049 4C 79 C0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop204
; Global: Branch target inside Sub: taken when Loop204.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop204:
ldx PlayerState ; CPU:$C04C PRG:404C A6 1A
lda PlayerTile,x ; CPU:$C04E PRG:404E B5 32
bpl Sub_Loop209 ; CPU:$C050 PRG:4050 10 30
ldx #$80 ; CPU:$C052 PRG:4052 A2 80
lda Zp84 ; CPU:$C054 PRG:4054 A5 84
bne Sub_Loop205 ; CPU:$C056 PRG:4056 D0 06
lda Zp83 ; CPU:$C058 PRG:4058 A5 83
cmp #$05 ; CPU:$C05A PRG:405A C9 05
bcc Sub_Loop206 ; CPU:$C05C PRG:405C 90 0A
; -----------------------------------------------------------------------------
; Routine: Sub_Loop205
; Global: Branch target inside Sub: taken when Loop205.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop205:
ldx #$40 ; CPU:$C05E PRG:405E A2 40
; -----------------------------------------------------------------------------
; Routine: Label_C060
; Global: Branch target inside Label: taken when C060.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C060:
lda Zp84 ; CPU:$C060 PRG:4060 A5 84
cmp #$02 ; CPU:$C062 PRG:4062 C9 02
bcc Sub_Loop206 ; CPU:$C064 PRG:4064 90 02
ldx #$20 ; CPU:$C066 PRG:4066 A2 20
; -----------------------------------------------------------------------------
; Routine: Sub_Loop206
; Global: Branch target inside Sub: taken when Loop206.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop206:
stx Zp1B ; CPU:$C068 PRG:4068 86 1B
lda ZpAC ; CPU:$C06A PRG:406A A5 AC
and Zp1B ; CPU:$C06C PRG:406C 25 1B
beq Sub_Loop209 ; CPU:$C06E PRG:406E F0 12
; -----------------------------------------------------------------------------
; Routine: Sub_Loop207
; Global: Branch target inside Sub: taken when Loop207.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop207:
lda #$02 ; CPU:$C070 PRG:4070 A9 02
jsr Sub_F036 ; CPU:$C072 PRG:4072 20 36 F0
lda #$80 ; CPU:$C075 PRG:4075 A9 80
ldx #$10 ; CPU:$C077 PRG:4077 A2 10
; -----------------------------------------------------------------------------
; Routine: Sub_C079
; Global: Branch target inside Sub: taken when C079.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C079:
sta Zp70 ; CPU:$C079 PRG:4079 85 70
stx Zp71 ; CPU:$C07B PRG:407B 86 71
jmp Sub_Loop209 ; CPU:$C07D PRG:407D 4C 82 C0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop208
; Global: Branch target inside Sub: taken when Loop208.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop208:
dec Zp71 ; CPU:$C080 PRG:4080 C6 71
; -----------------------------------------------------------------------------
; Routine: Sub_Loop209
; Global: Branch target inside Sub: taken when Loop209.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop209:
ldx PlayerState ; CPU:$C082 PRG:4082 A6 1A
lda PlayerX,x ; CPU:$C084 PRG:4084 B5 33
sta Zp1B ; CPU:$C086 PRG:4086 85 1B
lda PlayerY,x ; CPU:$C088 PRG:4088 B5 34
sta Zp1C ; CPU:$C08A PRG:408A 85 1C
ldx WrestlerIndex ; CPU:$C08C PRG:408C A6 85
lda PlayerX,x ; CPU:$C08E PRG:408E B5 33
sta Zp1D ; CPU:$C090 PRG:4090 85 1D
lda PlayerY,x ; CPU:$C092 PRG:4092 B5 34
sta Zp1E ; CPU:$C094 PRG:4094 85 1E
lda GameState ; CPU:$C096 PRG:4096 A5 36
bpl Sub_Loop210 ; CPU:$C098 PRG:4098 10 03
jmp Sub_C1C2 ; CPU:$C09A PRG:409A 4C C2 C1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop210
; Global: Branch target inside Sub: taken when Loop210.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop210:
lda GameState ; CPU:$C09D PRG:409D A5 36
and #$02 ; CPU:$C09F PRG:409F 29 02
bne Sub_Loop212 ; CPU:$C0A1 PRG:40A1 D0 2D
ldx PlayerState ; CPU:$C0A3 PRG:40A3 A6 1A
lda Zp35,x ; CPU:$C0A5 PRG:40A5 B5 35
and #$FC ; CPU:$C0A7 PRG:40A7 29 FC
bne Sub_Loop214 ; CPU:$C0A9 PRG:40A9 D0 6C
ldx #$28 ; CPU:$C0AB PRG:40AB A2 28
lda PlayerState ; CPU:$C0AD PRG:40AD A5 1A
cmp #$23 ; CPU:$C0AF PRG:40AF C9 23
beq Sub_Loop211 ; CPU:$C0B1 PRG:40B1 F0 02
ldx #$23 ; CPU:$C0B3 PRG:40B3 A2 23
; -----------------------------------------------------------------------------
; Routine: Sub_Loop211
; Global: Branch target inside Sub: taken when Loop211.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop211:
lda Zp35,x ; CPU:$C0B5 PRG:40B5 B5 35
and #$FC ; CPU:$C0B7 PRG:40B7 29 FC
beq Sub_Loop214 ; CPU:$C0B9 PRG:40B9 F0 5C
lda PlayerX,x ; CPU:$C0BB PRG:40BB B5 33
cmp #$30 ; CPU:$C0BD PRG:40BD C9 30
bne Sub_Loop214 ; CPU:$C0BF PRG:40BF D0 56
lda PlayerY,x ; CPU:$C0C1 PRG:40C1 B5 34
cmp #$B4 ; CPU:$C0C3 PRG:40C3 C9 B4
bne Sub_Loop214 ; CPU:$C0C5 PRG:40C5 D0 50
lda GameState ; CPU:$C0C7 PRG:40C7 A5 36
ora #$02 ; CPU:$C0C9 PRG:40C9 09 02
sta GameState ; CPU:$C0CB PRG:40CB 85 36
jmp Sub_C2BD ; CPU:$C0CD PRG:40CD 4C BD C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop212
; Global: Branch target inside Sub: taken when Loop212.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop212:
lda Zp1B ; CPU:$C0D0 PRG:40D0 A5 1B
cmp #$40 ; CPU:$C0D2 PRG:40D2 C9 40
; -----------------------------------------------------------------------------
; Routine: Label_C0D4
; Global: Branch target inside Label: taken when C0D4.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C0D4:
bcc Sub_Loop214 ; CPU:$C0D4 PRG:40D4 90 41
cmp #$48 ; CPU:$C0D6 PRG:40D6 C9 48
bcs Sub_Loop214 ; CPU:$C0D8 PRG:40D8 B0 3D
lda Zp1C ; CPU:$C0DA PRG:40DA A5 1C
cmp #$B8 ; CPU:$C0DC PRG:40DC C9 B8
bcc Sub_Loop214 ; CPU:$C0DE PRG:40DE 90 37
lda #$0B ; CPU:$C0E0 PRG:40E0 A9 0B
ldx PlayerState ; CPU:$C0E2 PRG:40E2 A6 1A
sta PlayerTile,x ; CPU:$C0E4 PRG:40E4 95 32
lda #$20 ; CPU:$C0E6 PRG:40E6 A9 20
sta GameState,x ; CPU:$C0E8 PRG:40E8 95 36
lda #$23 ; CPU:$C0EA PRG:40EA A9 23
cpx #$28 ; CPU:$C0EC PRG:40EC E0 28
beq Sub_Loop213 ; CPU:$C0EE PRG:40EE F0 02
lda #$28 ; CPU:$C0F0 PRG:40F0 A9 28
; -----------------------------------------------------------------------------
; Routine: Sub_Loop213
; Global: Branch target inside Sub: taken when Loop213.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop213:
tax ; CPU:$C0F2 PRG:40F2 AA
lda #$02 ; CPU:$C0F3 PRG:40F3 A9 02
sta PlayerTile,x ; CPU:$C0F5 PRG:40F5 95 32
lda #$20 ; CPU:$C0F7 PRG:40F7 A9 20
sta GameState,x ; CPU:$C0F9 PRG:40F9 95 36
lda #$00 ; CPU:$C0FB PRG:40FB A9 00
sta Zp93 ; CPU:$C0FD PRG:40FD 85 93
lda GameState ; CPU:$C0FF PRG:40FF A5 36
and #$FC ; CPU:$C101 PRG:4101 29 FC
sta GameState ; CPU:$C103 PRG:4103 85 36
lda #$81 ; CPU:$C105 PRG:4105 A9 81
sta ZpA3 ; CPU:$C107 PRG:4107 85 A3
lda #$07 ; CPU:$C109 PRG:4109 A9 07
jsr Sub_F036 ; CPU:$C10B PRG:410B 20 36 F0
lda GameState ; CPU:$C10E PRG:410E A5 36
and #$EF ; CPU:$C110 PRG:4110 29 EF
sta GameState ; CPU:$C112 PRG:4112 85 36
jmp Sub_C2BD ; CPU:$C114 PRG:4114 4C BD C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop214
; Global: Branch target inside Sub: taken when Loop214.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop214:
lda Zp94 ; CPU:$C117 PRG:4117 A5 94
cmp #$01 ; CPU:$C119 PRG:4119 C9 01
beq Sub_Loop217 ; CPU:$C11B PRG:411B F0 2D
cmp #$02 ; CPU:$C11D PRG:411D C9 02
beq Sub_Loop217 ; CPU:$C11F PRG:411F F0 29
cmp #$03 ; CPU:$C121 PRG:4121 C9 03
beq Sub_Loop219 ; CPU:$C123 PRG:4123 F0 39
cmp #$04 ; CPU:$C125 PRG:4125 C9 04
beq Sub_Loop221 ; CPU:$C127 PRG:4127 F0 49
cmp #$05 ; CPU:$C129 PRG:4129 C9 05
beq Sub_Loop221 ; CPU:$C12B PRG:412B F0 45
cmp #$06 ; CPU:$C12D PRG:412D C9 06
bne Sub_Loop215 ; CPU:$C12F PRG:412F D0 03
jmp Sub_Loop221 ; CPU:$C131 PRG:4131 4C 72 C1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop215
; Global: Branch target inside Sub: taken when Loop215.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop215:
cmp #$07 ; CPU:$C134 PRG:4134 C9 07
bne Sub_Loop216 ; CPU:$C136 PRG:4136 D0 03
jmp Sub_C186 ; CPU:$C138 PRG:4138 4C 86 C1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop216
; Global: Branch target inside Sub: taken when Loop216.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop216:
cmp #$08 ; CPU:$C13B PRG:413B C9 08
beq Sub_Loop217 ; CPU:$C13D PRG:413D F0 0B
ldx PlayerState ; CPU:$C13F PRG:413F A6 1A
lda PlayerTile,x ; CPU:$C141 PRG:4141 B5 32
and #$C0 ; CPU:$C143 PRG:4143 29 C0
sta PlayerTile,x ; CPU:$C145 PRG:4145 95 32
jmp Sub_C2BD ; CPU:$C147 PRG:4147 4C BD C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop217
; Global: Branch target inside Sub: taken when Loop217.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop217:
ldx #$40 ; CPU:$C14A PRG:414A A2 40
lda GameState ; CPU:$C14C PRG:414C A5 36
and #$06 ; CPU:$C14E PRG:414E 29 06
bne Sub_Loop218 ; CPU:$C150 PRG:4150 D0 08
lda Zp1B ; CPU:$C152 PRG:4152 A5 1B
cmp Zp1D ; CPU:$C154 PRG:4154 C5 1D
bcs Sub_Loop218 ; CPU:$C156 PRG:4156 B0 02
ldx #$00 ; CPU:$C158 PRG:4158 A2 00
; -----------------------------------------------------------------------------
; Routine: Sub_Loop218
; Global: Branch target inside Sub: taken when Loop218.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop218:
txa ; CPU:$C15A PRG:415A 8A
jmp Sub_C197 ; CPU:$C15B PRG:415B 4C 97 C1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop219
; Global: Branch target inside Sub: taken when Loop219.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop219:
ldx #$C0 ; CPU:$C15E PRG:415E A2 C0
lda GameState ; CPU:$C160 PRG:4160 A5 36
and #$06 ; CPU:$C162 PRG:4162 29 06
bne Sub_Loop220 ; CPU:$C164 PRG:4164 D0 08
lda Zp1C ; CPU:$C166 PRG:4166 A5 1C
cmp Zp1E ; CPU:$C168 PRG:4168 C5 1E
bcc Sub_Loop220 ; CPU:$C16A PRG:416A 90 02
ldx #$80 ; CPU:$C16C PRG:416C A2 80
; -----------------------------------------------------------------------------
; Routine: Sub_Loop220
; Global: Branch target inside Sub: taken when Loop220.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop220:
txa ; CPU:$C16E PRG:416E 8A
jmp Sub_C197 ; CPU:$C16F PRG:416F 4C 97 C1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop221
; Global: Branch target inside Sub: taken when Loop221.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop221:
ldx #$00 ; CPU:$C172 PRG:4172 A2 00
lda GameState ; CPU:$C174 PRG:4174 A5 36
and #$06 ; CPU:$C176 PRG:4176 29 06
bne Sub_Loop222 ; CPU:$C178 PRG:4178 D0 08
lda Zp1B ; CPU:$C17A PRG:417A A5 1B
cmp Zp1D ; CPU:$C17C PRG:417C C5 1D
bcc Sub_Loop222 ; CPU:$C17E PRG:417E 90 02
ldx #$40 ; CPU:$C180 PRG:4180 A2 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop222
; Global: Branch target inside Sub: taken when Loop222.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop222:
txa ; CPU:$C182 PRG:4182 8A
jmp Sub_C197 ; CPU:$C183 PRG:4183 4C 97 C1
; -----------------------------------------------------------------------------
; Routine: Sub_C186
; Global: Branch target inside Sub: taken when C186.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C186:
ldx #$80 ; CPU:$C186 PRG:4186 A2 80
lda GameState ; CPU:$C188 PRG:4188 A5 36
and #$06 ; CPU:$C18A PRG:418A 29 06
bne Sub_Loop223 ; CPU:$C18C PRG:418C D0 08
lda Zp1C ; CPU:$C18E PRG:418E A5 1C
cmp Zp1E ; CPU:$C190 PRG:4190 C5 1E
bcs Sub_Loop223 ; CPU:$C192 PRG:4192 B0 02
ldx #$C0 ; CPU:$C194 PRG:4194 A2 C0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop223
; Global: Branch target inside Sub: taken when Loop223.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop223:
txa ; CPU:$C196 PRG:4196 8A
; -----------------------------------------------------------------------------
; Routine: Sub_C197
; Global: Branch target inside Sub: taken when C197.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C197:
pha ; CPU:$C197 PRG:4197 48
ldx PlayerState ; CPU:$C198 PRG:4198 A6 1A
lda PlayerTile,x ; CPU:$C19A PRG:419A B5 32
and #$3F ; CPU:$C19C PRG:419C 29 3F
sta Zp1B ; CPU:$C19E PRG:419E 85 1B
pla ; CPU:$C1A0 PRG:41A0 68
ora Zp1B ; CPU:$C1A1 PRG:41A1 05 1B
sta PlayerTile,x ; CPU:$C1A3 PRG:41A3 95 32
ldx PlayerState ; CPU:$C1A5 PRG:41A5 A6 1A
ldy #$13 ; CPU:$C1A7 PRG:41A7 A0 13
lda GameState ; CPU:$C1A9 PRG:41A9 A5 36
and #$40 ; CPU:$C1AB PRG:41AB 29 40
beq Sub_Loop224 ; CPU:$C1AD PRG:41AD F0 02
ldy #$18 ; CPU:$C1AF PRG:41AF A0 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop224
; Global: Branch target inside Sub: taken when Loop224.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop224:
lda Zp94 ; CPU:$C1B1 PRG:41B1 A5 94
jsr Sub_ED4D ; CPU:$C1B3 PRG:41B3 20 4D ED
txa ; CPU:$C1B6 PRG:41B6 8A
pha ; CPU:$C1B7 PRG:41B7 48
ldx PlayerState ; CPU:$C1B8 PRG:41B8 A6 1A
sty PlayerX,x ; CPU:$C1BA PRG:41BA 94 33
pla ; CPU:$C1BC PRG:41BC 68
sta PlayerY,x ; CPU:$C1BD PRG:41BD 95 34
jmp Sub_Loop241 ; CPU:$C1BF PRG:41BF 4C A7 C2
; -----------------------------------------------------------------------------
; Routine: Sub_C1C2
; Global: Branch target inside Sub: taken when C1C2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C1C2:
lda Zp41 ; CPU:$C1C2 PRG:41C2 A5 41
and #$10 ; CPU:$C1C4 PRG:41C4 29 10
bne Sub_Loop226 ; CPU:$C1C6 PRG:41C6 D0 30
ldy #$00 ; CPU:$C1C8 PRG:41C8 A0 00
lda Zp41 ; CPU:$C1CA PRG:41CA A5 41
and #$20 ; CPU:$C1CC PRG:41CC 29 20
beq Sub_Loop225 ; CPU:$C1CE PRG:41CE F0 1D
lda Zp43 ; CPU:$C1D0 PRG:41D0 A5 43
bne Sub_Loop225 ; CPU:$C1D2 PRG:41D2 D0 19
lda ZpAC ; CPU:$C1D4 PRG:41D4 A5 AC
cmp #$80 ; CPU:$C1D6 PRG:41D6 C9 80
bcc Sub_Loop225 ; CPU:$C1D8 PRG:41D8 90 13
ldx WrestlerIndex ; CPU:$C1DA PRG:41DA A6 85
lda PlayerTile,x ; CPU:$C1DC PRG:41DC B5 32
and #$3F ; CPU:$C1DE PRG:41DE 29 3F
bne Sub_Loop225 ; CPU:$C1E0 PRG:41E0 D0 0B
ldx PlayerState ; CPU:$C1E2 PRG:41E2 A6 1A
lda #$03 ; CPU:$C1E4 PRG:41E4 A9 03
sta PlayerTile,x ; CPU:$C1E6 PRG:41E6 95 32
lda #$0C ; CPU:$C1E8 PRG:41E8 A9 0C
jmp Sub_C1F3 ; CPU:$C1EA PRG:41EA 4C F3 C1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop225
; Global: Branch target inside Sub: taken when Loop225.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop225:
ldx PlayerState ; CPU:$C1ED PRG:41ED A6 1A
sty PlayerTile,x ; CPU:$C1EF PRG:41EF 94 32
lda #$20 ; CPU:$C1F1 PRG:41F1 A9 20
; -----------------------------------------------------------------------------
; Routine: Sub_C1F3
; Global: Branch target inside Sub: taken when C1F3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C1F3:
sta GameState,x ; CPU:$C1F3 PRG:41F3 95 36
jmp Sub_C2BD ; CPU:$C1F5 PRG:41F5 4C BD C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop226
; Global: Branch target inside Sub: taken when Loop226.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop226:
lda Zp43 ; CPU:$C1F8 PRG:41F8 A5 43
beq Sub_Loop227 ; CPU:$C1FA PRG:41FA F0 06
lda Zp42 ; CPU:$C1FC PRG:41FC A5 42
cmp #$07 ; CPU:$C1FE PRG:41FE C9 07
bcs Sub_Loop228 ; CPU:$C200 PRG:4200 B0 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop227
; Global: Branch target inside Sub: taken when Loop227.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop227:
lda Zp41 ; CPU:$C202 PRG:4202 A5 41
and #$20 ; CPU:$C204 PRG:4204 29 20
bne Sub_Loop234 ; CPU:$C206 PRG:4206 D0 4B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop228
; Global: Branch target inside Sub: taken when Loop228.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop228:
lda ZpA1 ; CPU:$C208 PRG:4208 A5 A1
bne Sub_Loop229 ; CPU:$C20A PRG:420A D0 0A
ldx WrestlerIndex ; CPU:$C20C PRG:420C A6 85
lda PlayerTile,x ; CPU:$C20E PRG:420E B5 32
and #$3F ; CPU:$C210 PRG:4210 29 3F
cmp #$05 ; CPU:$C212 PRG:4212 C9 05
bne Sub_Loop230 ; CPU:$C214 PRG:4214 D0 03
; -----------------------------------------------------------------------------
; Routine: Sub_Loop229
; Global: Branch target inside Sub: taken when Loop229.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop229:
jmp Sub_Loop241 ; CPU:$C216 PRG:4216 4C A7 C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop230
; Global: Branch target inside Sub: taken when Loop230.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop230:
lda Zp1C ; CPU:$C219 PRG:4219 A5 1C
cmp #$40 ; CPU:$C21B PRG:421B C9 40
bcs Sub_Loop231 ; CPU:$C21D PRG:421D B0 07
inc Zp1C ; CPU:$C21F PRG:421F E6 1C
ldy #$C0 ; CPU:$C221 PRG:4221 A0 C0
jmp Sub_C22E ; CPU:$C223 PRG:4223 4C 2E C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop231
; Global: Branch target inside Sub: taken when Loop231.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop231:
cmp #$B0 ; CPU:$C226 PRG:4226 C9 B0
bcc Sub_Loop232 ; CPU:$C228 PRG:4228 90 0F
dec Zp1C ; CPU:$C22A PRG:422A C6 1C
ldy #$80 ; CPU:$C22C PRG:422C A0 80
; -----------------------------------------------------------------------------
; Routine: Sub_C22E
; Global: Branch target inside Sub: taken when C22E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C22E:
ldx PlayerState ; CPU:$C22E PRG:422E A6 1A
sty PlayerTile,x ; CPU:$C230 PRG:4230 94 32
lda Zp1C ; CPU:$C232 PRG:4232 A5 1C
sta PlayerY,x ; CPU:$C234 PRG:4234 95 34
jmp Sub_Loop241 ; CPU:$C236 PRG:4236 4C A7 C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop232
; Global: Branch target inside Sub: taken when Loop232.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop232:
lda #$40 ; CPU:$C239 PRG:4239 A9 40
ldx PlayerState ; CPU:$C23B PRG:423B A6 1A
sta PlayerTile,x ; CPU:$C23D PRG:423D 95 32
lda Zp42 ; CPU:$C23F PRG:423F A5 42
cmp #$07 ; CPU:$C241 PRG:4241 C9 07
bcs Sub_Loop233 ; CPU:$C243 PRG:4243 B0 03
jmp Sub_Loop241 ; CPU:$C245 PRG:4245 4C A7 C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop233
; Global: Branch target inside Sub: taken when Loop233.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop233:
lda #$45 ; CPU:$C248 PRG:4248 A9 45
ldx PlayerState ; CPU:$C24A PRG:424A A6 1A
sta PlayerTile,x ; CPU:$C24C PRG:424C 95 32
lda #$0C ; CPU:$C24E PRG:424E A9 0C
jmp Sub_C382 ; CPU:$C250 PRG:4250 4C 82 C3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop234
; Global: Branch target inside Sub: taken when Loop234.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop234:
lda ZpA1 ; CPU:$C253 PRG:4253 A5 A1
beq Sub_Loop235 ; CPU:$C255 PRG:4255 F0 09
lda Zp1C ; CPU:$C257 PRG:4257 A5 1C
cmp #$80 ; CPU:$C259 PRG:4259 C9 80
bcc Sub_Loop237 ; CPU:$C25B PRG:425B 90 12
jmp Sub_Loop238 ; CPU:$C25D PRG:425D 4C 7F C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop235
; Global: Branch target inside Sub: taken when Loop235.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop235:
lda Zp1D ; CPU:$C260 PRG:4260 A5 1D
cmp #$A8 ; CPU:$C262 PRG:4262 C9 A8
beq Sub_Loop236 ; CPU:$C264 PRG:4264 F0 03
jmp Sub_C2BD ; CPU:$C266 PRG:4266 4C BD C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop236
; Global: Branch target inside Sub: taken when Loop236.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop236:
lda Zp1C ; CPU:$C269 PRG:4269 A5 1C
cmp Zp1E ; CPU:$C26B PRG:426B C5 1E
bcs Sub_Loop238 ; CPU:$C26D PRG:426D B0 10
; -----------------------------------------------------------------------------
; Routine: Sub_Loop237
; Global: Branch target inside Sub: taken when Loop237.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop237:
ldy #$C0 ; CPU:$C26F PRG:426F A0 C0
lda Zp1E ; CPU:$C271 PRG:4271 A5 1E
sec ; CPU:$C273 PRG:4273 38
sbc Zp1C ; CPU:$C274 PRG:4274 E5 1C
cmp #$08 ; CPU:$C276 PRG:4276 C9 08
bcc Sub_Loop239 ; CPU:$C278 PRG:4278 90 12
inc Zp1C ; CPU:$C27A PRG:427A E6 1C
jmp Sub_Loop239 ; CPU:$C27C PRG:427C 4C 8C C2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop238
; Global: Branch target inside Sub: taken when Loop238.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop238:
ldy #$80 ; CPU:$C27F PRG:427F A0 80
lda Zp1C ; CPU:$C281 PRG:4281 A5 1C
sec ; CPU:$C283 PRG:4283 38
sbc Zp1E ; CPU:$C284 PRG:4284 E5 1E
cmp #$08 ; CPU:$C286 PRG:4286 C9 08
bcc Sub_Loop239 ; CPU:$C288 PRG:4288 90 02
dec Zp1C ; CPU:$C28A PRG:428A C6 1C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop239
; Global: Branch target inside Sub: taken when Loop239.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop239:
ldx PlayerState ; CPU:$C28C PRG:428C A6 1A
sty PlayerTile,x ; CPU:$C28E PRG:428E 94 32
ldx Zp45 ; CPU:$C290 PRG:4290 A6 45
lda GameState ; CPU:$C292 PRG:4292 A5 36
and #$40 ; CPU:$C294 PRG:4294 29 40
beq Sub_Loop240 ; CPU:$C296 PRG:4296 F0 02
ldx Zp4A ; CPU:$C298 PRG:4298 A6 4A
; -----------------------------------------------------------------------------
; Routine: Sub_Loop240
; Global: Branch target inside Sub: taken when Loop240.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop240:
txa ; CPU:$C29A PRG:429A 8A
and #$1F ; CPU:$C29B PRG:429B 29 1F
cmp #$03 ; CPU:$C29D PRG:429D C9 03
bcs Sub_Loop241 ; CPU:$C29F PRG:429F B0 06
ldx PlayerState ; CPU:$C2A1 PRG:42A1 A6 1A
lda Zp1C ; CPU:$C2A3 PRG:42A3 A5 1C
sta PlayerY,x ; CPU:$C2A5 PRG:42A5 95 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop241
; Global: Branch target inside Sub: taken when Loop241.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop241:
ldy #$01 ; CPU:$C2A7 PRG:42A7 A0 01
lda ZpAC ; CPU:$C2A9 PRG:42A9 A5 AC
and #$08 ; CPU:$C2AB PRG:42AB 29 08
beq Sub_Loop242 ; CPU:$C2AD PRG:42AD F0 02
ldy #$02 ; CPU:$C2AF PRG:42AF A0 02
; -----------------------------------------------------------------------------
; Routine: Sub_Loop242
; Global: Branch target inside Sub: taken when Loop242.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop242:
sty Zp1B ; CPU:$C2B1 PRG:42B1 84 1B
ldx PlayerState ; CPU:$C2B3 PRG:42B3 A6 1A
lda PlayerTile,x ; CPU:$C2B5 PRG:42B5 B5 32
and #$C0 ; CPU:$C2B7 PRG:42B7 29 C0
ora Zp1B ; CPU:$C2B9 PRG:42B9 05 1B
sta PlayerTile,x ; CPU:$C2BB PRG:42BB 95 32
; -----------------------------------------------------------------------------
; Routine: Sub_C2BD
; Global: Branch target inside Sub: taken when C2BD.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C2BD:
rts ; CPU:$C2BD PRG:42BD 60
; -----------------------------------------------------------------------------
; Routine: Label_C2BE
; Global: Branch target inside Label: taken when C2BE.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C2BE:
ldx PlayerState ; CPU:$C2BE PRG:42BE A6 1A
ldy GameState,x ; CPU:$C2C0 PRG:42C0 B4 36
lda $C69A,y ; CPU:$C2C2 PRG:42C2 B9 9A C6
sta PlayerX,x ; CPU:$C2C5 PRG:42C5 95 33
cpy #$00 ; CPU:$C2C7 PRG:42C7 C0 00
beq Sub_Loop243 ; CPU:$C2C9 PRG:42C9 F0 03
dec GameState,x ; CPU:$C2CB PRG:42CB D6 36
rts ; CPU:$C2CD PRG:42CD 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop243
; Global: Branch target inside Sub: taken when Loop243.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop243:
lda Zp41 ; CPU:$C2CE PRG:42CE A5 41
ora #$10 ; CPU:$C2D0 PRG:42D0 09 10
sta Zp41 ; CPU:$C2D2 PRG:42D2 85 41
lda #$02 ; CPU:$C2D4 PRG:42D4 A9 02
jsr Sub_F036 ; CPU:$C2D6 PRG:42D6 20 36 F0
ldx PlayerState ; CPU:$C2D9 PRG:42D9 A6 1A
lda #$04 ; CPU:$C2DB PRG:42DB A9 04
jmp Sub_C37E ; CPU:$C2DD PRG:42DD 4C 7E C3
; -----------------------------------------------------------------------------
; Routine: Label_C2E0
; Global: Branch target inside Label: taken when C2E0.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C2E0:
ldx PlayerState ; CPU:$C2E0 PRG:42E0 A6 1A
lda #$00 ; CPU:$C2E2 PRG:42E2 A9 00
jmp Sub_C37E ; CPU:$C2E4 PRG:42E4 4C 7E C3
; -----------------------------------------------------------------------------
; Routine: Label_C2E7
; Global: Branch target inside Label: taken when C2E7.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C2E7:
ldx PlayerState ; CPU:$C2E7 PRG:42E7 A6 1A
ldy GameState,x ; CPU:$C2E9 PRG:42E9 B4 36
lda $C6A7,y ; CPU:$C2EB PRG:42EB B9 A7 C6
sta PlayerX,x ; CPU:$C2EE PRG:42EE 95 33
cpy #$00 ; CPU:$C2F0 PRG:42F0 C0 00
beq Sub_Loop244 ; CPU:$C2F2 PRG:42F2 F0 03
dec GameState,x ; CPU:$C2F4 PRG:42F4 D6 36
rts ; CPU:$C2F6 PRG:42F6 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop244
; Global: Branch target inside Sub: taken when Loop244.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop244:
lda Zp41 ; CPU:$C2F7 PRG:42F7 A5 41
and #$A0 ; CPU:$C2F9 PRG:42F9 29 A0
sta Zp41 ; CPU:$C2FB PRG:42FB 85 41
lda #$02 ; CPU:$C2FD PRG:42FD A9 02
jsr Sub_F036 ; CPU:$C2FF PRG:42FF 20 36 F0
ldx PlayerState ; CPU:$C302 PRG:4302 A6 1A
lda #$46 ; CPU:$C304 PRG:4304 A9 46
jmp Sub_C37E ; CPU:$C306 PRG:4306 4C 7E C3
; -----------------------------------------------------------------------------
; Routine: Label_C309
; Global: Branch target inside Label: taken when C309.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C309:
lda Zp41 ; CPU:$C309 PRG:4309 A5 41
and #$20 ; CPU:$C30B PRG:430B 29 20
bne Sub_Loop246 ; CPU:$C30D PRG:430D D0 2B
ldx WrestlerIndex ; CPU:$C30F PRG:430F A6 85
lda PlayerTile,x ; CPU:$C311 PRG:4311 B5 32
and #$3F ; CPU:$C313 PRG:4313 29 3F
cmp #$06 ; CPU:$C315 PRG:4315 C9 06
beq Sub_Loop246 ; CPU:$C317 PRG:4317 F0 21
ldx PlayerState ; CPU:$C319 PRG:4319 A6 1A
lda #$70 ; CPU:$C31B PRG:431B A9 70
sta PlayerX,x ; CPU:$C31D PRG:431D 95 33
ldy #$40 ; CPU:$C31F PRG:431F A0 40
lda ZpAC ; CPU:$C321 PRG:4321 A5 AC
lsr a ; CPU:$C323 PRG:4323 4A
bcc Sub_Loop245 ; CPU:$C324 PRG:4324 90 02
ldy #$C0 ; CPU:$C326 PRG:4326 A0 C0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop245
; Global: Branch target inside Sub: taken when Loop245.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop245:
sty PlayerY,x ; CPU:$C328 PRG:4328 94 34
lda Zp41 ; CPU:$C32A PRG:432A A5 41
and #$7F ; CPU:$C32C PRG:432C 29 7F
sta Zp41 ; CPU:$C32E PRG:432E 85 41
lda GameState ; CPU:$C330 PRG:4330 A5 36
and #$7F ; CPU:$C332 PRG:4332 29 7F
sta GameState ; CPU:$C334 PRG:4334 85 36
lda #$80 ; CPU:$C336 PRG:4336 A9 80
sta Zp8B ; CPU:$C338 PRG:4338 85 8B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop246
; Global: Branch target inside Sub: taken when Loop246.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop246:
ldx PlayerState ; CPU:$C33A PRG:433A A6 1A
lda #$00 ; CPU:$C33C PRG:433C A9 00
jmp Sub_C37E ; CPU:$C33E PRG:433E 4C 7E C3
; -----------------------------------------------------------------------------
; Routine: Label_C341
; Global: Branch target inside Label: taken when C341.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C341:
ldx PlayerState ; CPU:$C341 PRG:4341 A6 1A
dec GameState,x ; CPU:$C343 PRG:4343 D6 36
beq Sub_Loop247 ; CPU:$C345 PRG:4345 F0 01
rts ; CPU:$C347 PRG:4347 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop247
; Global: Branch target inside Sub: taken when Loop247.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop247:
lda PlayerX,x ; CPU:$C348 PRG:4348 B5 33
sec ; CPU:$C34A PRG:434A 38
sbc #$10 ; CPU:$C34B PRG:434B E9 10
sta PlayerX,x ; CPU:$C34D PRG:434D 95 33
lda PlayerTile,x ; CPU:$C34F PRG:434F B5 32
and #$C0 ; CPU:$C351 PRG:4351 29 C0
jmp Sub_C37E ; CPU:$C353 PRG:4353 4C 7E C3
; -----------------------------------------------------------------------------
; Routine: Label_C356
; Global: Branch target inside Label: taken when C356.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C356:
ldx PlayerState ; CPU:$C356 PRG:4356 A6 1A
dec GameState,x ; CPU:$C358 PRG:4358 D6 36
beq Sub_Loop248 ; CPU:$C35A PRG:435A F0 01
rts ; CPU:$C35C PRG:435C 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop248
; Global: Branch target inside Sub: taken when Loop248.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop248:
lda #$30 ; CPU:$C35D PRG:435D A9 30
sta PlayerX,x ; CPU:$C35F PRG:435F 95 33
lda #$B4 ; CPU:$C361 PRG:4361 A9 B4
sta PlayerY,x ; CPU:$C363 PRG:4363 95 34
lda GameState ; CPU:$C365 PRG:4365 A5 36
eor #$FF ; CPU:$C367 PRG:4367 49 FF
and #$20 ; CPU:$C369 PRG:4369 29 20
sta Zp1B ; CPU:$C36B PRG:436B 85 1B
lda GameState ; CPU:$C36D PRG:436D A5 36
and #$DF ; CPU:$C36F PRG:436F 29 DF
ora Zp1B ; CPU:$C371 PRG:4371 05 1B
sta GameState ; CPU:$C373 PRG:4373 85 36
lda #$00 ; CPU:$C375 PRG:4375 A9 00
sta ZpA3 ; CPU:$C377 PRG:4377 85 A3
lda #$00 ; CPU:$C379 PRG:4379 A9 00
jmp Sub_C37E ; CPU:$C37B PRG:437B 4C 7E C3
; -----------------------------------------------------------------------------
; Routine: Sub_C37E
; Global: Branch target inside Sub: taken when C37E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C37E:
sta PlayerTile,x ; CPU:$C37E PRG:437E 95 32
lda #$20 ; CPU:$C380 PRG:4380 A9 20
; -----------------------------------------------------------------------------
; Routine: Sub_C382
; Global: Branch target inside Sub: taken when C382.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C382:
sta GameState,x ; CPU:$C382 PRG:4382 95 36
rts ; CPU:$C384 PRG:4384 60
; ---- data $C385-$C39E (26 bytes) ----
; referenced by `lda $C385,x` at $C01F (operand $C385 falls inside this region)
; referenced by `lda $C386,x` at $C024 (operand $C386 falls inside this region)
.byte $2C, $C0, $2C, $C0, $2C, $C0, $BE, $C2, $E0, $C2, $E7, $C2, $09, $C3, $41, $C3 ; CPU:$C385 PRG:4385 2C C0 2C C0 2C C0 BE C2 E0 C2 E7 C2 09 C3 41 C3
.byte $7E, $C3, $7E, $C3, $7E, $C3, $56, $C3, $7E, $C3 ; CPU:$C395 PRG:4395 7E C3 7E C3 7E C3 56 C3 7E C3
; -----------------------------------------------------------------------------
; Routine: Sub_C39F
; Global: Branch target inside Sub: taken when C39F.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C39F:
ldx #$23 ; CPU:$C39F PRG:439F A2 23
lda GameState ; CPU:$C3A1 PRG:43A1 A5 36
and #$20 ; CPU:$C3A3 PRG:43A3 29 20
beq Sub_Loop249 ; CPU:$C3A5 PRG:43A5 F0 02
ldx #$28 ; CPU:$C3A7 PRG:43A7 A2 28
; -----------------------------------------------------------------------------
; Routine: Sub_Loop249
; Global: Branch target inside Sub: taken when Loop249.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop249:
stx PlayerState ; CPU:$C3A9 PRG:43A9 86 1A
ldy #$13 ; CPU:$C3AB PRG:43AB A0 13
lda GameState ; CPU:$C3AD PRG:43AD A5 36
and #$40 ; CPU:$C3AF PRG:43AF 29 40
beq Sub_Loop250 ; CPU:$C3B1 PRG:43B1 F0 02
ldy #$18 ; CPU:$C3B3 PRG:43B3 A0 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop250
; Global: Branch target inside Sub: taken when Loop250.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop250:
sty Zp1B ; CPU:$C3B5 PRG:43B5 84 1B
lda PlayerTile,x ; CPU:$C3B7 PRG:43B7 B5 32
and #$3F ; CPU:$C3B9 PRG:43B9 29 3F
asl a ; CPU:$C3BB PRG:43BB 0A
tax ; CPU:$C3BC PRG:43BC AA
lda $C6B4,x ; CPU:$C3BD PRG:43BD BD B4 C6
sta Zp22 ; CPU:$C3C0 PRG:43C0 85 22
lda $C6B5,x ; CPU:$C3C2 PRG:43C2 BD B5 C6
sta Zp23 ; CPU:$C3C5 PRG:43C5 85 23
jmp (Zp22) ; CPU:$C3C7 PRG:43C7 6C 22 00
; -----------------------------------------------------------------------------
; Routine: Label_C3CA
; Global: Branch target inside Label: taken when C3CA.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C3CA:
jmp Sub_C3D0 ; CPU:$C3CA PRG:43CA 4C D0 C3
; -----------------------------------------------------------------------------
; Routine: Label_C3CD
; Global: Branch target inside Label: taken when C3CD.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C3CD:
jmp Sub_C3D0 ; CPU:$C3CD PRG:43CD 4C D0 C3
; -----------------------------------------------------------------------------
; Routine: Sub_C3D0
; Global: Branch target inside Sub: taken when C3D0.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C3D0:
lda Zp71 ; CPU:$C3D0 PRG:43D0 A5 71
bne Sub_Loop252 ; CPU:$C3D2 PRG:43D2 D0 32
ldx Zp70 ; CPU:$C3D4 PRG:43D4 A6 70
lda #$00 ; CPU:$C3D6 PRG:43D6 A9 00
sta Zp70 ; CPU:$C3D8 PRG:43D8 85 70
txa ; CPU:$C3DA PRG:43DA 8A
bpl Sub_Loop251 ; CPU:$C3DB PRG:43DB 10 07
lda #$40 ; CPU:$C3DD PRG:43DD A9 40
ldx #$08 ; CPU:$C3DF PRG:43DF A2 08
jmp Sub_C3FF ; CPU:$C3E1 PRG:43E1 4C FF C3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop251
; Global: Branch target inside Sub: taken when Loop251.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop251:
ldx PlayerState ; CPU:$C3E4 PRG:43E4 A6 1A
lda PlayerTile,x ; CPU:$C3E6 PRG:43E6 B5 32
and #$C0 ; CPU:$C3E8 PRG:43E8 29 C0
bpl Sub_Loop253 ; CPU:$C3EA PRG:43EA 10 1C
lda Zp72 ; CPU:$C3EC PRG:43EC A5 72
eor #$FF ; CPU:$C3EE PRG:43EE 49 FF
and Zp19 ; CPU:$C3F0 PRG:43F0 25 19
and #$01 ; CPU:$C3F2 PRG:43F2 29 01
beq Sub_Loop253 ; CPU:$C3F4 PRG:43F4 F0 12
lda #$02 ; CPU:$C3F6 PRG:43F6 A9 02
jsr Sub_F036 ; CPU:$C3F8 PRG:43F8 20 36 F0
lda #$80 ; CPU:$C3FB PRG:43FB A9 80
ldx #$10 ; CPU:$C3FD PRG:43FD A2 10
; -----------------------------------------------------------------------------
; Routine: Sub_C3FF
; Global: Branch target inside Sub: taken when C3FF.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C3FF:
sta Zp70 ; CPU:$C3FF PRG:43FF 85 70
stx Zp71 ; CPU:$C401 PRG:4401 86 71
jmp Sub_C40C ; CPU:$C403 PRG:4403 4C 0C C4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop252
; Global: Branch target inside Sub: taken when Loop252.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop252:
dec Zp71 ; CPU:$C406 PRG:4406 C6 71
; -----------------------------------------------------------------------------
; Routine: Sub_Loop253
; Global: Branch target inside Sub: taken when Loop253.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop253:
lda Zp19 ; CPU:$C408 PRG:4408 A5 19
sta Zp72 ; CPU:$C40A PRG:440A 85 72
; -----------------------------------------------------------------------------
; Routine: Sub_C40C
; Global: Branch target inside Sub: taken when C40C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C40C:
lda GameState ; CPU:$C40C PRG:440C A5 36
and #$80 ; CPU:$C40E PRG:440E 29 80
beq Sub_Loop254 ; CPU:$C410 PRG:4410 F0 03
jmp Sub_C4DA ; CPU:$C412 PRG:4412 4C DA C4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop254
; Global: Branch target inside Sub: taken when Loop254.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop254:
ldx WrestlerIndex ; CPU:$C415 PRG:4415 A6 85
lda PlayerTile,x ; CPU:$C417 PRG:4417 B5 32
and #$3F ; CPU:$C419 PRG:4419 29 3F
cmp #$0B ; CPU:$C41B PRG:441B C9 0B
bne Sub_Loop255 ; CPU:$C41D PRG:441D D0 03
jmp Sub_Loop280 ; CPU:$C41F PRG:441F 4C E8 C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop255
; Global: Branch target inside Sub: taken when Loop255.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop255:
lda Zp19 ; CPU:$C422 PRG:4422 A5 19
and #$02 ; CPU:$C424 PRG:4424 29 02
beq Sub_Loop258 ; CPU:$C426 PRG:4426 F0 4F
ldx PlayerState ; CPU:$C428 PRG:4428 A6 1A
lda PlayerX,x ; CPU:$C42A PRG:442A B5 33
cmp #$40 ; CPU:$C42C PRG:442C C9 40
bcc Sub_Loop258 ; CPU:$C42E PRG:442E 90 47
cmp #$48 ; CPU:$C430 PRG:4430 C9 48
bcs Sub_Loop258 ; CPU:$C432 PRG:4432 B0 43
lda PlayerY,x ; CPU:$C434 PRG:4434 B5 34
cmp #$B8 ; CPU:$C436 PRG:4436 C9 B8
bcc Sub_Loop258 ; CPU:$C438 PRG:4438 90 3D
ldx #$23 ; CPU:$C43A PRG:443A A2 23
lda GameState ; CPU:$C43C PRG:443C A5 36
and #$20 ; CPU:$C43E PRG:443E 29 20
bne Sub_Loop256 ; CPU:$C440 PRG:4440 D0 02
ldx #$28 ; CPU:$C442 PRG:4442 A2 28
; -----------------------------------------------------------------------------
; Routine: Sub_Loop256
; Global: Branch target inside Sub: taken when Loop256.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop256:
lda PlayerX,x ; CPU:$C444 PRG:4444 B5 33
cmp #$30 ; CPU:$C446 PRG:4446 C9 30
bne Sub_Loop258 ; CPU:$C448 PRG:4448 D0 2D
lda PlayerY,x ; CPU:$C44A PRG:444A B5 34
cmp #$B4 ; CPU:$C44C PRG:444C C9 B4
bne Sub_Loop258 ; CPU:$C44E PRG:444E D0 27
lda #$0B ; CPU:$C450 PRG:4450 A9 0B
ldx PlayerState ; CPU:$C452 PRG:4452 A6 1A
sta PlayerTile,x ; CPU:$C454 PRG:4454 95 32
lda #$20 ; CPU:$C456 PRG:4456 A9 20
sta GameState,x ; CPU:$C458 PRG:4458 95 36
lda #$23 ; CPU:$C45A PRG:445A A9 23
cpx #$28 ; CPU:$C45C PRG:445C E0 28
beq Sub_Loop257 ; CPU:$C45E PRG:445E F0 02
lda #$28 ; CPU:$C460 PRG:4460 A9 28
; -----------------------------------------------------------------------------
; Routine: Sub_Loop257
; Global: Branch target inside Sub: taken when Loop257.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop257:
tax ; CPU:$C462 PRG:4462 AA
lda #$02 ; CPU:$C463 PRG:4463 A9 02
sta PlayerTile,x ; CPU:$C465 PRG:4465 95 32
lda #$20 ; CPU:$C467 PRG:4467 A9 20
sta GameState,x ; CPU:$C469 PRG:4469 95 36
lda #$81 ; CPU:$C46B PRG:446B A9 81
sta ZpA3 ; CPU:$C46D PRG:446D 85 A3
lda #$07 ; CPU:$C46F PRG:446F A9 07
jsr Sub_F036 ; CPU:$C471 PRG:4471 20 36 F0
jmp Sub_Loop280 ; CPU:$C474 PRG:4474 4C E8 C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop258
; Global: Branch target inside Sub: taken when Loop258.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop258:
lda Zp17 ; CPU:$C477 PRG:4477 A5 17
; -----------------------------------------------------------------------------
; Routine: Sub_C479
; Global: Branch target inside Sub: taken when C479.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C479:
sta Zp1C ; CPU:$C479 PRG:4479 85 1C
cmp #$01 ; CPU:$C47B PRG:447B C9 01
beq Sub_Loop259 ; CPU:$C47D PRG:447D F0 27
cmp #$02 ; CPU:$C47F PRG:447F C9 02
beq Sub_Loop259 ; CPU:$C481 PRG:4481 F0 23
cmp #$03 ; CPU:$C483 PRG:4483 C9 03
beq Sub_Loop260 ; CPU:$C485 PRG:4485 F0 24
cmp #$04 ; CPU:$C487 PRG:4487 C9 04
beq Sub_Loop261 ; CPU:$C489 PRG:4489 F0 25
cmp #$05 ; CPU:$C48B PRG:448B C9 05
beq Sub_Loop261 ; CPU:$C48D PRG:448D F0 21
cmp #$06 ; CPU:$C48F PRG:448F C9 06
beq Sub_Loop261 ; CPU:$C491 PRG:4491 F0 1D
cmp #$07 ; CPU:$C493 PRG:4493 C9 07
beq Sub_Loop262 ; CPU:$C495 PRG:4495 F0 1E
cmp #$08 ; CPU:$C497 PRG:4497 C9 08
beq Sub_Loop259 ; CPU:$C499 PRG:4499 F0 0B
ldx PlayerState ; CPU:$C49B PRG:449B A6 1A
lda PlayerTile,x ; CPU:$C49D PRG:449D B5 32
and #$C0 ; CPU:$C49F PRG:449F 29 C0
sta PlayerTile,x ; CPU:$C4A1 PRG:44A1 95 32
jmp Sub_Loop280 ; CPU:$C4A3 PRG:44A3 4C E8 C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop259
; Global: Branch target inside Sub: taken when Loop259.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop259:
lda #$40 ; CPU:$C4A6 PRG:44A6 A9 40
jmp Sub_C4B7 ; CPU:$C4A8 PRG:44A8 4C B7 C4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop260
; Global: Branch target inside Sub: taken when Loop260.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop260:
lda #$C0 ; CPU:$C4AB PRG:44AB A9 C0
jmp Sub_C4B7 ; CPU:$C4AD PRG:44AD 4C B7 C4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop261
; Global: Branch target inside Sub: taken when Loop261.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop261:
lda #$00 ; CPU:$C4B0 PRG:44B0 A9 00
jmp Sub_C4B7 ; CPU:$C4B2 PRG:44B2 4C B7 C4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop262
; Global: Branch target inside Sub: taken when Loop262.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop262:
lda #$80 ; CPU:$C4B5 PRG:44B5 A9 80
; -----------------------------------------------------------------------------
; Routine: Sub_C4B7
; Global: Branch target inside Sub: taken when C4B7.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C4B7:
pha ; CPU:$C4B7 PRG:44B7 48
ldx PlayerState ; CPU:$C4B8 PRG:44B8 A6 1A
lda PlayerTile,x ; CPU:$C4BA PRG:44BA B5 32
and #$3F ; CPU:$C4BC PRG:44BC 29 3F
sta Zp1D ; CPU:$C4BE PRG:44BE 85 1D
pla ; CPU:$C4C0 PRG:44C0 68
ora Zp1D ; CPU:$C4C1 PRG:44C1 05 1D
sta PlayerTile,x ; CPU:$C4C3 PRG:44C3 95 32
ldx PlayerState ; CPU:$C4C5 PRG:44C5 A6 1A
ldy Zp1B ; CPU:$C4C7 PRG:44C7 A4 1B
lda Zp1C ; CPU:$C4C9 PRG:44C9 A5 1C
jsr Sub_ED4D ; CPU:$C4CB PRG:44CB 20 4D ED
txa ; CPU:$C4CE PRG:44CE 8A
pha ; CPU:$C4CF PRG:44CF 48
ldx PlayerState ; CPU:$C4D0 PRG:44D0 A6 1A
sty PlayerX,x ; CPU:$C4D2 PRG:44D2 94 33
pla ; CPU:$C4D4 PRG:44D4 68
sta PlayerY,x ; CPU:$C4D5 PRG:44D5 95 34
jmp Sub_C5D6 ; CPU:$C4D7 PRG:44D7 4C D6 C5
; -----------------------------------------------------------------------------
; Routine: Sub_C4DA
; Global: Branch target inside Sub: taken when C4DA.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C4DA:
lda Zp17 ; CPU:$C4DA PRG:44DA A5 17
cmp #$00 ; CPU:$C4DC PRG:44DC C9 00
beq Sub_Loop265 ; CPU:$C4DE PRG:44DE F0 19
cmp #$01 ; CPU:$C4E0 PRG:44E0 C9 01
beq Sub_Loop267 ; CPU:$C4E2 PRG:44E2 F0 2A
cmp #$03 ; CPU:$C4E4 PRG:44E4 C9 03
beq Sub_Loop272 ; CPU:$C4E6 PRG:44E6 F0 55
cmp #$05 ; CPU:$C4E8 PRG:44E8 C9 05
bne Sub_Loop263 ; CPU:$C4EA PRG:44EA D0 03
jmp Sub_C577 ; CPU:$C4EC PRG:44EC 4C 77 C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop263
; Global: Branch target inside Sub: taken when Loop263.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop263:
cmp #$07 ; CPU:$C4EF PRG:44EF C9 07
bne Sub_Loop264 ; CPU:$C4F1 PRG:44F1 D0 03
jmp Sub_C59B ; CPU:$C4F3 PRG:44F3 4C 9B C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop264
; Global: Branch target inside Sub: taken when Loop264.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop264:
jmp Sub_Loop280 ; CPU:$C4F6 PRG:44F6 4C E8 C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop265
; Global: Branch target inside Sub: taken when Loop265.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop265:
ldx PlayerState ; CPU:$C4F9 PRG:44F9 A6 1A
lda PlayerTile,x ; CPU:$C4FB PRG:44FB B5 32
and #$C0 ; CPU:$C4FD PRG:44FD 29 C0
sta PlayerTile,x ; CPU:$C4FF PRG:44FF 95 32
lda Zp41 ; CPU:$C501 PRG:4501 A5 41
and #$10 ; CPU:$C503 PRG:4503 29 10
bne Sub_Loop266 ; CPU:$C505 PRG:4505 D0 04
lda #$00 ; CPU:$C507 PRG:4507 A9 00
sta PlayerTile,x ; CPU:$C509 PRG:4509 95 32
; -----------------------------------------------------------------------------
; Routine: Sub_Loop266
; Global: Branch target inside Sub: taken when Loop266.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop266:
jmp Sub_Loop280 ; CPU:$C50B PRG:450B 4C E8 C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop267
; Global: Branch target inside Sub: taken when Loop267.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop267:
lda Zp41 ; CPU:$C50E PRG:450E A5 41
and #$10 ; CPU:$C510 PRG:4510 29 10
beq Sub_Loop268 ; CPU:$C512 PRG:4512 F0 04
lda ZpA1 ; CPU:$C514 PRG:4514 A5 A1
beq Sub_Loop269 ; CPU:$C516 PRG:4516 F0 03
; -----------------------------------------------------------------------------
; Routine: Sub_Loop268
; Global: Branch target inside Sub: taken when Loop268.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop268:
jmp Sub_Loop280 ; CPU:$C518 PRG:4518 4C E8 C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop269
; Global: Branch target inside Sub: taken when Loop269.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop269:
ldx Zp1B ; CPU:$C51B PRG:451B A6 1B
lda PlayerTile,x ; CPU:$C51D PRG:451D B5 32
and #$3F ; CPU:$C51F PRG:451F 29 3F
cmp #$03 ; CPU:$C521 PRG:4521 C9 03
beq Sub_Loop270 ; CPU:$C523 PRG:4523 F0 0C
ldx PlayerState ; CPU:$C525 PRG:4525 A6 1A
lda PlayerY,x ; CPU:$C527 PRG:4527 B5 34
cmp #$30 ; CPU:$C529 PRG:4529 C9 30
bcc Sub_Loop270 ; CPU:$C52B PRG:452B 90 04
cmp #$C0 ; CPU:$C52D PRG:452D C9 C0
bcc Sub_Loop271 ; CPU:$C52F PRG:452F 90 03
; -----------------------------------------------------------------------------
; Routine: Sub_Loop270
; Global: Branch target inside Sub: taken when Loop270.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop270:
jmp Sub_Loop280 ; CPU:$C531 PRG:4531 4C E8 C5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop271
; Global: Branch target inside Sub: taken when Loop271.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop271:
lda #$45 ; CPU:$C534 PRG:4534 A9 45
sta PlayerTile,x ; CPU:$C536 PRG:4536 95 32
lda #$0C ; CPU:$C538 PRG:4538 A9 0C
jmp Sub_C697 ; CPU:$C53A PRG:453A 4C 97 C6
; -----------------------------------------------------------------------------
; Routine: Sub_Loop272
; Global: Branch target inside Sub: taken when Loop272.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop272:
ldy #$10 ; CPU:$C53D PRG:453D A0 10
; -----------------------------------------------------------------------------
; Routine: Sub_C53F
; Global: Branch target inside Sub: taken when C53F.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C53F:
lda Zp41 ; CPU:$C53F PRG:453F A5 41
and #$20 ; CPU:$C541 PRG:4541 29 20
beq Sub_Loop273 ; CPU:$C543 PRG:4543 F0 15
lda Zp41 ; CPU:$C545 PRG:4545 A5 41
and #$10 ; CPU:$C547 PRG:4547 29 10
beq Sub_Loop273 ; CPU:$C549 PRG:4549 F0 0F
ldx Zp1B ; CPU:$C54B PRG:454B A6 1B
lda PlayerY,x ; CPU:$C54D PRG:454D B5 34
ldx PlayerState ; CPU:$C54F PRG:454F A6 1A
sec ; CPU:$C551 PRG:4551 38
sbc PlayerY,x ; CPU:$C552 PRG:4552 F5 34
bmi Sub_Loop273 ; CPU:$C554 PRG:4554 30 04
cmp #$08 ; CPU:$C556 PRG:4556 C9 08
bcc Sub_Loop275 ; CPU:$C558 PRG:4558 90 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop273
; Global: Branch target inside Sub: taken when Loop273.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop273:
sty Zp1C ; CPU:$C55A PRG:455A 84 1C
ldx #$C0 ; CPU:$C55C PRG:455C A2 C0
lda Zp41 ; CPU:$C55E PRG:455E A5 41
and Zp1C ; CPU:$C560 PRG:4560 25 1C
beq Sub_Loop274 ; CPU:$C562 PRG:4562 F0 02
ldx #$E8 ; CPU:$C564 PRG:4564 A2 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop274
; Global: Branch target inside Sub: taken when Loop274.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop274:
stx Zp1C ; CPU:$C566 PRG:4566 86 1C
ldx PlayerState ; CPU:$C568 PRG:4568 A6 1A
lda PlayerY,x ; CPU:$C56A PRG:456A B5 34
cmp Zp1C ; CPU:$C56C PRG:456C C5 1C
bcs Sub_Loop275 ; CPU:$C56E PRG:456E B0 02
inc PlayerY,x ; CPU:$C570 PRG:4570 F6 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop275
; Global: Branch target inside Sub: taken when Loop275.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop275:
lda #$C0 ; CPU:$C572 PRG:4572 A9 C0
jmp Sub_C5D2 ; CPU:$C574 PRG:4574 4C D2 C5
; -----------------------------------------------------------------------------
; Routine: Sub_C577
; Global: Branch target inside Sub: taken when C577.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C577:
ldy #$00 ; CPU:$C577 PRG:4577 A0 00
lda Zp41 ; CPU:$C579 PRG:4579 A5 41
and #$20 ; CPU:$C57B PRG:457B 29 20
beq Sub_Loop276 ; CPU:$C57D PRG:457D F0 12
ldx Zp1B ; CPU:$C57F PRG:457F A6 1B
lda PlayerTile,x ; CPU:$C581 PRG:4581 B5 32
and #$3F ; CPU:$C583 PRG:4583 29 3F
cmp #$05 ; CPU:$C585 PRG:4585 C9 05
beq Sub_Loop276 ; CPU:$C587 PRG:4587 F0 08
lda Zp41 ; CPU:$C589 PRG:4589 A5 41
and #$10 ; CPU:$C58B PRG:458B 29 10
bne Sub_Loop276 ; CPU:$C58D PRG:458D D0 02
ldy #$03 ; CPU:$C58F PRG:458F A0 03
; -----------------------------------------------------------------------------
; Routine: Sub_Loop276
; Global: Branch target inside Sub: taken when Loop276.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop276:
tya ; CPU:$C591 PRG:4591 98
ldx PlayerState ; CPU:$C592 PRG:4592 A6 1A
sta PlayerTile,x ; CPU:$C594 PRG:4594 95 32
lda #$0C ; CPU:$C596 PRG:4596 A9 0C
jmp Sub_C697 ; CPU:$C598 PRG:4598 4C 97 C6
; -----------------------------------------------------------------------------
; Routine: Sub_C59B
; Global: Branch target inside Sub: taken when C59B.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C59B:
ldy #$10 ; CPU:$C59B PRG:459B A0 10
; -----------------------------------------------------------------------------
; Routine: Sub_C59D
; Global: Branch target inside Sub: taken when C59D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C59D:
lda Zp41 ; CPU:$C59D PRG:459D A5 41
and #$20 ; CPU:$C59F PRG:459F 29 20
beq Sub_Loop277 ; CPU:$C5A1 PRG:45A1 F0 15
lda Zp41 ; CPU:$C5A3 PRG:45A3 A5 41
and #$10 ; CPU:$C5A5 PRG:45A5 29 10
beq Sub_Loop277 ; CPU:$C5A7 PRG:45A7 F0 0F
ldx PlayerState ; CPU:$C5A9 PRG:45A9 A6 1A
lda PlayerY,x ; CPU:$C5AB PRG:45AB B5 34
ldx Zp1B ; CPU:$C5AD PRG:45AD A6 1B
sec ; CPU:$C5AF PRG:45AF 38
sbc PlayerY,x ; CPU:$C5B0 PRG:45B0 F5 34
bmi Sub_Loop277 ; CPU:$C5B2 PRG:45B2 30 04
cmp #$08 ; CPU:$C5B4 PRG:45B4 C9 08
bcc Sub_Loop279 ; CPU:$C5B6 PRG:45B6 90 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop277
; Global: Branch target inside Sub: taken when Loop277.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop277:
sty Zp1C ; CPU:$C5B8 PRG:45B8 84 1C
ldx #$30 ; CPU:$C5BA PRG:45BA A2 30
lda Zp41 ; CPU:$C5BC PRG:45BC A5 41
and Zp1C ; CPU:$C5BE PRG:45BE 25 1C
beq Sub_Loop278 ; CPU:$C5C0 PRG:45C0 F0 02
ldx #$08 ; CPU:$C5C2 PRG:45C2 A2 08
; -----------------------------------------------------------------------------
; Routine: Sub_Loop278
; Global: Branch target inside Sub: taken when Loop278.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop278:
stx Zp1C ; CPU:$C5C4 PRG:45C4 86 1C
ldx PlayerState ; CPU:$C5C6 PRG:45C6 A6 1A
lda PlayerY,x ; CPU:$C5C8 PRG:45C8 B5 34
cmp Zp1C ; CPU:$C5CA PRG:45CA C5 1C
bcc Sub_Loop279 ; CPU:$C5CC PRG:45CC 90 02
dec PlayerY,x ; CPU:$C5CE PRG:45CE D6 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop279
; Global: Branch target inside Sub: taken when Loop279.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop279:
lda #$80 ; CPU:$C5D0 PRG:45D0 A9 80
; -----------------------------------------------------------------------------
; Routine: Sub_C5D2
; Global: Branch target inside Sub: taken when C5D2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C5D2:
ldx PlayerState ; CPU:$C5D2 PRG:45D2 A6 1A
sta PlayerTile,x ; CPU:$C5D4 PRG:45D4 95 32
; -----------------------------------------------------------------------------
; Routine: Sub_C5D6
; Global: Branch target inside Sub: taken when C5D6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C5D6:
ldx PlayerState ; CPU:$C5D6 PRG:45D6 A6 1A
lda PlayerTile,x ; CPU:$C5D8 PRG:45D8 B5 32
and #$C0 ; CPU:$C5DA PRG:45DA 29 C0
sta PlayerTile,x ; CPU:$C5DC PRG:45DC 95 32
lda ZpAC ; CPU:$C5DE PRG:45DE A5 AC
and #$08 ; CPU:$C5E0 PRG:45E0 29 08
beq Sub_Loop280 ; CPU:$C5E2 PRG:45E2 F0 04
inc PlayerTile,x ; CPU:$C5E4 PRG:45E4 F6 32
inc PlayerTile,x ; CPU:$C5E6 PRG:45E6 F6 32
; -----------------------------------------------------------------------------
; Routine: Sub_Loop280
; Global: Branch target inside Sub: taken when Loop280.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop280:
rts ; CPU:$C5E8 PRG:45E8 60
; -----------------------------------------------------------------------------
; Routine: Label_C5E9
; Global: Branch target inside Label: taken when C5E9.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C5E9:
ldx PlayerState ; CPU:$C5E9 PRG:45E9 A6 1A
ldy GameState,x ; CPU:$C5EB PRG:45EB B4 36
lda $C69A,y ; CPU:$C5ED PRG:45ED B9 9A C6
sta PlayerX,x ; CPU:$C5F0 PRG:45F0 95 33
cpy #$00 ; CPU:$C5F2 PRG:45F2 C0 00
beq Sub_Loop281 ; CPU:$C5F4 PRG:45F4 F0 03
dec GameState,x ; CPU:$C5F6 PRG:45F6 D6 36
rts ; CPU:$C5F8 PRG:45F8 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop281
; Global: Branch target inside Sub: taken when Loop281.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop281:
lda Zp41 ; CPU:$C5F9 PRG:45F9 A5 41
ora #$10 ; CPU:$C5FB PRG:45FB 09 10
sta Zp41 ; CPU:$C5FD PRG:45FD 85 41
lda #$02 ; CPU:$C5FF PRG:45FF A9 02
jsr Sub_F036 ; CPU:$C601 PRG:4601 20 36 F0
ldx PlayerState ; CPU:$C604 PRG:4604 A6 1A
lda #$04 ; CPU:$C606 PRG:4606 A9 04
jmp Sub_C693 ; CPU:$C608 PRG:4608 4C 93 C6
; -----------------------------------------------------------------------------
; Routine: Label_C60B
; Global: Branch target inside Label: taken when C60B.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C60B:
ldx PlayerState ; CPU:$C60B PRG:460B A6 1A
lda #$00 ; CPU:$C60D PRG:460D A9 00
jmp Sub_C693 ; CPU:$C60F PRG:460F 4C 93 C6
; -----------------------------------------------------------------------------
; Routine: Label_C612
; Global: Branch target inside Label: taken when C612.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C612:
ldx PlayerState ; CPU:$C612 PRG:4612 A6 1A
ldy GameState,x ; CPU:$C614 PRG:4614 B4 36
lda $C6A7,y ; CPU:$C616 PRG:4616 B9 A7 C6
sta PlayerX,x ; CPU:$C619 PRG:4619 95 33
cpy #$00 ; CPU:$C61B PRG:461B C0 00
beq Sub_Loop282 ; CPU:$C61D PRG:461D F0 03
dec GameState,x ; CPU:$C61F PRG:461F D6 36
rts ; CPU:$C621 PRG:4621 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop282
; Global: Branch target inside Sub: taken when Loop282.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop282:
lda Zp41 ; CPU:$C622 PRG:4622 A5 41
and #$A0 ; CPU:$C624 PRG:4624 29 A0
sta Zp41 ; CPU:$C626 PRG:4626 85 41
lda #$02 ; CPU:$C628 PRG:4628 A9 02
jsr Sub_F036 ; CPU:$C62A PRG:462A 20 36 F0
ldx PlayerState ; CPU:$C62D PRG:462D A6 1A
lda #$46 ; CPU:$C62F PRG:462F A9 46
jmp Sub_C693 ; CPU:$C631 PRG:4631 4C 93 C6
; -----------------------------------------------------------------------------
; Routine: Label_C634
; Global: Branch target inside Label: taken when C634.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C634:
lda Zp41 ; CPU:$C634 PRG:4634 A5 41
; -----------------------------------------------------------------------------
; Routine: Label_C636
; Global: Branch target inside Label: taken when C636.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C636:
and #$20 ; CPU:$C636 PRG:4636 29 20
bne Sub_Loop283 ; CPU:$C638 PRG:4638 D0 14
ldx Zp1B ; CPU:$C63A PRG:463A A6 1B
lda PlayerTile,x ; CPU:$C63C PRG:463C B5 32
and #$3F ; CPU:$C63E PRG:463E 29 3F
cmp #$06 ; CPU:$C640 PRG:4640 C9 06
beq Sub_Loop283 ; CPU:$C642 PRG:4642 F0 0A
lda GameState ; CPU:$C644 PRG:4644 A5 36
and #$7F ; CPU:$C646 PRG:4646 29 7F
sta GameState ; CPU:$C648 PRG:4648 85 36
lda #$80 ; CPU:$C64A PRG:464A A9 80
sta Zp8B ; CPU:$C64C PRG:464C 85 8B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop283
; Global: Branch target inside Sub: taken when Loop283.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop283:
ldx PlayerState ; CPU:$C64E PRG:464E A6 1A
lda #$40 ; CPU:$C650 PRG:4650 A9 40
jmp Sub_C693 ; CPU:$C652 PRG:4652 4C 93 C6
; -----------------------------------------------------------------------------
; Routine: Label_C655
; Global: Branch target inside Label: taken when C655.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C655:
ldx PlayerState ; CPU:$C655 PRG:4655 A6 1A
dec GameState,x ; CPU:$C657 PRG:4657 D6 36
beq Sub_Loop284 ; CPU:$C659 PRG:4659 F0 01
rts ; CPU:$C65B PRG:465B 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop284
; Global: Branch target inside Sub: taken when Loop284.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop284:
lda PlayerX,x ; CPU:$C65C PRG:465C B5 33
sec ; CPU:$C65E PRG:465E 38
sbc #$10 ; CPU:$C65F PRG:465F E9 10
sta PlayerX,x ; CPU:$C661 PRG:4661 95 33
lda PlayerTile,x ; CPU:$C663 PRG:4663 B5 32
and #$C0 ; CPU:$C665 PRG:4665 29 C0
jmp Sub_C693 ; CPU:$C667 PRG:4667 4C 93 C6
; -----------------------------------------------------------------------------
; Routine: Label_C66A
; Global: Branch target inside Label: taken when C66A.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C66A:
ldx PlayerState ; CPU:$C66A PRG:466A A6 1A
dec GameState,x ; CPU:$C66C PRG:466C D6 36
beq Sub_Loop285 ; CPU:$C66E PRG:466E F0 01
rts ; CPU:$C670 PRG:4670 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop285
; Global: Branch target inside Sub: taken when Loop285.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop285:
lda #$30 ; CPU:$C671 PRG:4671 A9 30
sta PlayerX,x ; CPU:$C673 PRG:4673 95 33
lda #$B4 ; CPU:$C675 PRG:4675 A9 B4
sta PlayerY,x ; CPU:$C677 PRG:4677 95 34
lda GameState ; CPU:$C679 PRG:4679 A5 36
eor #$FF ; CPU:$C67B PRG:467B 49 FF
and #$20 ; CPU:$C67D PRG:467D 29 20
sta Zp1C ; CPU:$C67F PRG:467F 85 1C
lda GameState ; CPU:$C681 PRG:4681 A5 36
and #$DF ; CPU:$C683 PRG:4683 29 DF
ora Zp1C ; CPU:$C685 PRG:4685 05 1C
sta GameState ; CPU:$C687 PRG:4687 85 36
lda #$00 ; CPU:$C689 PRG:4689 A9 00
sta ZpA3 ; CPU:$C68B PRG:468B 85 A3
lda #$00 ; CPU:$C68D PRG:468D A9 00
jmp Sub_C693 ; CPU:$C68F PRG:468F 4C 93 C6
; -----------------------------------------------------------------------------
; Routine: Label_C692
; Global: Branch target inside Label: taken when C692.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C692:
rts ; CPU:$C692 PRG:4692 60
; -----------------------------------------------------------------------------
; Routine: Sub_C693
; Global: Branch target inside Sub: taken when C693.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C693:
sta PlayerTile,x ; CPU:$C693 PRG:4693 95 32
lda #$20 ; CPU:$C695 PRG:4695 A9 20
; -----------------------------------------------------------------------------
; Routine: Sub_C697
; Global: Branch target inside Sub: taken when C697.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C697:
sta GameState,x ; CPU:$C697 PRG:4697 95 36
rts ; CPU:$C699 PRG:4699 60
; -----------------------------------------------------------------------------
; Routine: Label_C69A
; Global: Branch target inside Label: taken when C69A.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C69A:
tay ; CPU:$C69A PRG:469A A8
ldy #$98 ; CPU:$C69B PRG:469B A0 98
.byte $90, $98 ; CPU:$C69D PRG:469D 90 98
.byte $80, $78 ; CPU:$C69F PRG:469F 80 78 -- nop #$78 (undocumented; ca65 cannot encode)
.byte $70, $68 ; CPU:$C6A1 PRG:46A1 70 68
rts ; CPU:$C6A3 PRG:46A3 60
; ---- data $C6A4-$C6CD (42 bytes) ----
; referenced by `lda $C6A7,y` at $BF6C (operand $C6A7 falls inside this region)
; referenced by `lda $C6A7,y` at $C2EB (operand $C6A7 falls inside this region)
; referenced by `lda $C6B4,x` at $C3BD (operand $C6B4 falls inside this region)
; referenced by `lda $C6B5,x` at $C3C2 (operand $C6B5 falls inside this region)
; referenced by `lda $C6A7,y` at $C616 (operand $C6A7 falls inside this region)
.byte $68, $70, $88, $7E, $78, $70, $68, $60, $68, $70, $78, $80, $88, $90, $98, $A0 ; CPU:$C6A4 PRG:46A4 68 70 88 7E 78 70 68 60 68 70 78 80 88 90 98 A0
.byte $CA, $C3, $CD, $C3, $D0, $C3, $E9, $C5, $0B, $C6, $12, $C6, $34, $C6, $55, $C6 ; CPU:$C6B4 PRG:46B4 CA C3 CD C3 D0 C3 E9 C5 0B C6 12 C6 34 C6 55 C6
.byte $92, $C6, $92, $C6, $92, $C6, $6A, $C6, $92, $C6 ; CPU:$C6C4 PRG:46C4 92 C6 92 C6 92 C6 6A C6 92 C6
; -----------------------------------------------------------------------------
; Routine: Sub_C6CE
; Global: Branch target inside Sub: taken when C6CE.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C6CE:
lda Zp37 ; CPU:$C6CE PRG:46CE A5 37
and #$20 ; CPU:$C6D0 PRG:46D0 29 20
beq Sub_Loop286 ; CPU:$C6D2 PRG:46D2 F0 12
lda Zp7B ; CPU:$C6D4 PRG:46D4 A5 7B
and #$20 ; CPU:$C6D6 PRG:46D6 29 20
bne Sub_Loop286 ; CPU:$C6D8 PRG:46D8 D0 0C
lda Zp38 ; CPU:$C6DA PRG:46DA A5 38
beq Sub_Loop289 ; CPU:$C6DC PRG:46DC F0 28
lda ZpAC ; CPU:$C6DE PRG:46DE A5 AC
and #$07 ; CPU:$C6E0 PRG:46E0 29 07
tax ; CPU:$C6E2 PRG:46E2 AA
jmp Sub_C747 ; CPU:$C6E3 PRG:46E3 4C 47 C7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop286
; Global: Branch target inside Sub: taken when Loop286.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop286:
lda Zp38 ; CPU:$C6E6 PRG:46E6 A5 38
bne Sub_Loop287 ; CPU:$C6E8 PRG:46E8 D0 03
jmp Sub_C712 ; CPU:$C6EA PRG:46EA 4C 12 C7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop287
; Global: Branch target inside Sub: taken when Loop287.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop287:
ldx Zp18 ; CPU:$C6ED PRG:46ED A6 18
lda Zp37 ; CPU:$C6EF PRG:46EF A5 37
and #$20 ; CPU:$C6F1 PRG:46F1 29 20
beq Sub_Loop288 ; CPU:$C6F3 PRG:46F3 F0 02
ldx Zp19 ; CPU:$C6F5 PRG:46F5 A6 19
; -----------------------------------------------------------------------------
; Routine: Sub_Loop288
; Global: Branch target inside Sub: taken when Loop288.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop288:
stx PlayerState ; CPU:$C6F7 PRG:46F7 86 1A
lda Zp3A ; CPU:$C6F9 PRG:46F9 A5 3A
eor #$FF ; CPU:$C6FB PRG:46FB 49 FF
and PlayerState ; CPU:$C6FD PRG:46FD 25 1A
and #$01 ; CPU:$C6FF PRG:46FF 29 01
bne Sub_Loop289 ; CPU:$C701 PRG:4701 D0 03
jmp Sub_C727 ; CPU:$C703 PRG:4703 4C 27 C7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop289
; Global: Branch target inside Sub: taken when Loop289.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop289:
lda Zp37 ; CPU:$C706 PRG:4706 A5 37
sta Zp3B ; CPU:$C708 PRG:4708 85 3B
; -----------------------------------------------------------------------------
; Routine: Label_C70A
; Global: Branch target inside Label: taken when C70A.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C70A:
lda #$00 ; CPU:$C70A PRG:470A A9 00
sta Zp3C ; CPU:$C70C PRG:470C 85 3C
lda #$20 ; CPU:$C70E PRG:470E A9 20
sta Zp3D ; CPU:$C710 PRG:4710 85 3D
; -----------------------------------------------------------------------------
; Routine: Sub_C712
; Global: Branch target inside Sub: taken when C712.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C712:
lda Zp37 ; CPU:$C712 PRG:4712 A5 37
and #$7F ; CPU:$C714 PRG:4714 29 7F
sta Zp37 ; CPU:$C716 PRG:4716 85 37
jsr Sub_EF2F ; CPU:$C718 PRG:4718 20 2F EF
lda #$F0 ; CPU:$C71B PRG:471B A9 F0
sta $0740 ; CPU:$C71D PRG:471D 8D 40 07
lda #$00 ; CPU:$C720 PRG:4720 A9 00
sta Zp9F ; CPU:$C722 PRG:4722 85 9F
jmp Sub_C7D0 ; CPU:$C724 PRG:4724 4C D0 C7
; -----------------------------------------------------------------------------
; Routine: Sub_C727
; Global: Branch target inside Sub: taken when C727.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C727:
ldx Zp18 ; CPU:$C727 PRG:4727 A6 18
lda Zp37 ; CPU:$C729 PRG:4729 A5 37
and #$20 ; CPU:$C72B PRG:472B 29 20
beq Sub_Loop290 ; CPU:$C72D PRG:472D F0 02
ldx Zp19 ; CPU:$C72F PRG:472F A6 19
; -----------------------------------------------------------------------------
; Routine: Sub_Loop290
; Global: Branch target inside Sub: taken when Loop290.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop290:
stx PlayerState ; CPU:$C731 PRG:4731 86 1A
lda Zp3A ; CPU:$C733 PRG:4733 A5 3A
eor #$FF ; CPU:$C735 PRG:4735 49 FF
and PlayerState ; CPU:$C737 PRG:4737 25 1A
and #$02 ; CPU:$C739 PRG:4739 29 02
beq Sub_Loop291 ; CPU:$C73B PRG:473B F0 08
inc Zp39 ; CPU:$C73D PRG:473D E6 39
lda Zp39 ; CPU:$C73F PRG:473F A5 39
and #$07 ; CPU:$C741 PRG:4741 29 07
sta Zp39 ; CPU:$C743 PRG:4743 85 39
; -----------------------------------------------------------------------------
; Routine: Sub_Loop291
; Global: Branch target inside Sub: taken when Loop291.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop291:
ldx Zp39 ; CPU:$C745 PRG:4745 A6 39
; -----------------------------------------------------------------------------
; Routine: Sub_C747
; Global: Branch target inside Sub: taken when C747.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C747:
lda GameState ; CPU:$C747 PRG:4747 A5 36
bpl Sub_Loop292 ; CPU:$C749 PRG:4749 10 07
lda $C7F1,x ; CPU:$C74B PRG:474B BD F1 C7
tay ; CPU:$C74E PRG:474E A8
jmp Sub_Loop296 ; CPU:$C74F PRG:474F 4C C0 C7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop292
; Global: Branch target inside Sub: taken when Loop292.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop292:
lda Zp37 ; CPU:$C752 PRG:4752 A5 37
and #$20 ; CPU:$C754 PRG:4754 29 20
bne Sub_Loop294 ; CPU:$C756 PRG:4756 D0 30
lda GameState ; CPU:$C758 PRG:4758 A5 36
and #$40 ; CPU:$C75A PRG:475A 29 40
bne Sub_Loop293 ; CPU:$C75C PRG:475C D0 15
lda $C7D1,x ; CPU:$C75E PRG:475E BD D1 C7
tay ; CPU:$C761 PRG:4761 A8
cpx #$07 ; CPU:$C762 PRG:4762 E0 07
bne Sub_Loop296 ; CPU:$C764 PRG:4764 D0 5A
lda GameState ; CPU:$C766 PRG:4766 A5 36
and #$20 ; CPU:$C768 PRG:4768 29 20
beq Sub_Loop296 ; CPU:$C76A PRG:476A F0 54
ldx #$05 ; CPU:$C76C PRG:476C A2 05
ldy #$0B ; CPU:$C76E PRG:476E A0 0B
jmp Sub_C7B5 ; CPU:$C770 PRG:4770 4C B5 C7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop293
; Global: Branch target inside Sub: taken when Loop293.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop293:
lda $C7D9,x ; CPU:$C773 PRG:4773 BD D9 C7
tay ; CPU:$C776 PRG:4776 A8
cpx #$07 ; CPU:$C777 PRG:4777 E0 07
bne Sub_Loop296 ; CPU:$C779 PRG:4779 D0 45
lda GameState ; CPU:$C77B PRG:477B A5 36
and #$20 ; CPU:$C77D PRG:477D 29 20
bne Sub_Loop296 ; CPU:$C77F PRG:477F D0 3F
ldx #$02 ; CPU:$C781 PRG:4781 A2 02
ldy #$0A ; CPU:$C783 PRG:4783 A0 0A
jmp Sub_C7B5 ; CPU:$C785 PRG:4785 4C B5 C7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop294
; Global: Branch target inside Sub: taken when Loop294.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop294:
lda GameState ; CPU:$C788 PRG:4788 A5 36
and #$20 ; CPU:$C78A PRG:478A 29 20
bne Sub_Loop295 ; CPU:$C78C PRG:478C D0 15
lda $C7E1,x ; CPU:$C78E PRG:478E BD E1 C7
tay ; CPU:$C791 PRG:4791 A8
cpx #$07 ; CPU:$C792 PRG:4792 E0 07
bne Sub_Loop296 ; CPU:$C794 PRG:4794 D0 2A
lda GameState ; CPU:$C796 PRG:4796 A5 36
and #$40 ; CPU:$C798 PRG:4798 29 40
beq Sub_Loop296 ; CPU:$C79A PRG:479A F0 24
ldx #$04 ; CPU:$C79C PRG:479C A2 04
ldy #$08 ; CPU:$C79E PRG:479E A0 08
jmp Sub_C7B5 ; CPU:$C7A0 PRG:47A0 4C B5 C7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop295
; Global: Branch target inside Sub: taken when Loop295.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop295:
lda $C7E9,x ; CPU:$C7A3 PRG:47A3 BD E9 C7
tay ; CPU:$C7A6 PRG:47A6 A8
cpx #$07 ; CPU:$C7A7 PRG:47A7 E0 07
bne Sub_Loop296 ; CPU:$C7A9 PRG:47A9 D0 15
lda GameState ; CPU:$C7AB PRG:47AB A5 36
and #$40 ; CPU:$C7AD PRG:47AD 29 40
bne Sub_Loop296 ; CPU:$C7AF PRG:47AF D0 0F
ldx #$03 ; CPU:$C7B1 PRG:47B1 A2 03
ldy #$09 ; CPU:$C7B3 PRG:47B3 A0 09
; -----------------------------------------------------------------------------
; Routine: Sub_C7B5
; Global: Branch target inside Sub: taken when C7B5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C7B5:
sty Zp9B ; CPU:$C7B5 PRG:47B5 84 9B
stx Zp9C ; CPU:$C7B7 PRG:47B7 86 9C
lda #$07 ; CPU:$C7B9 PRG:47B9 A9 07
sta Zp1B ; CPU:$C7BB PRG:47BB 85 1B
jmp Sub_C7C2 ; CPU:$C7BD PRG:47BD 4C C2 C7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop296
; Global: Branch target inside Sub: taken when Loop296.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop296:
sty Zp1B ; CPU:$C7C0 PRG:47C0 84 1B
; -----------------------------------------------------------------------------
; Routine: Sub_C7C2
; Global: Branch target inside Sub: taken when C7C2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C7C2:
lda Zp37 ; CPU:$C7C2 PRG:47C2 A5 37
and #$E0 ; CPU:$C7C4 PRG:47C4 29 E0
ora Zp1B ; CPU:$C7C6 PRG:47C6 05 1B
sta Zp37 ; CPU:$C7C8 PRG:47C8 85 37
lda PlayerState ; CPU:$C7CA PRG:47CA A5 1A
sta Zp3A ; CPU:$C7CC PRG:47CC 85 3A
dec Zp38 ; CPU:$C7CE PRG:47CE C6 38
; -----------------------------------------------------------------------------
; Routine: Sub_C7D0
; Global: Branch target inside Sub: taken when C7D0.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C7D0:
rts ; CPU:$C7D0 PRG:47D0 60
; ---- data $C7D1-$C7F8 (40 bytes) ----
; referenced by `lda $C7F1,x` at $C74B (operand $C7F1 falls inside this region)
; referenced by `lda $C7D1,x` at $C75E (operand $C7D1 falls inside this region)
; referenced by `lda $C7D9,x` at $C773 (operand $C7D9 falls inside this region)
; referenced by `lda $C7E1,x` at $C78E (operand $C7E1 falls inside this region)
; referenced by `lda $C7E9,x` at $C7A3 (operand $C7E9 falls inside this region)
.byte $02, $01, $00, $04, $03, $06, $05, $05, $01, $00, $05, $03, $06, $02, $04, $04 ; CPU:$C7D1 PRG:47D1 02 01 00 04 03 06 05 05 01 00 05 03 06 02 04 04
.byte $00, $01, $02, $03, $04, $05, $06, $06, $00, $02, $01, $04, $03, $05, $06, $06 ; CPU:$C7E1 PRG:47E1 00 01 02 03 04 05 06 06 00 02 01 04 03 05 06 06
.byte $00, $00, $00, $00, $04, $04, $04, $0C ; CPU:$C7F1 PRG:47F1 00 00 00 00 04 04 04 0C
; -----------------------------------------------------------------------------
; Routine: Sub_C7F9
; Global: Branch target inside Sub: taken when C7F9.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C7F9:
rts ; CPU:$C7F9 PRG:47F9 60
; -----------------------------------------------------------------------------
; Routine: Sub_C7FA
; Global: Branch target inside Sub: taken when C7FA.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C7FA:
ldx WrestlerIndex ; CPU:$C7FA PRG:47FA A6 85
lda PlayerX,x ; CPU:$C7FC PRG:47FC B5 33
sta Zp95 ; CPU:$C7FE PRG:47FE 85 95
lda PlayerY,x ; CPU:$C800 PRG:4800 B5 34
sta SpriteX ; CPU:$C802 PRG:4802 85 96
ldx WrestlerIndex2 ; CPU:$C804 PRG:4804 A6 86
lda PlayerX,x ; CPU:$C806 PRG:4806 B5 33
sta Zp97 ; CPU:$C808 PRG:4808 85 97
lda PlayerY,x ; CPU:$C80A PRG:480A B5 34
sta SpriteY ; CPU:$C80C PRG:480C 85 98
lda #$00 ; CPU:$C80E PRG:480E A9 00
sta Zp1C ; CPU:$C810 PRG:4810 85 1C
lda Zp3B ; CPU:$C812 PRG:4812 A5 3B
and #$20 ; CPU:$C814 PRG:4814 29 20
beq Sub_Loop297 ; CPU:$C816 PRG:4816 F0 04
lda #$FF ; CPU:$C818 PRG:4818 A9 FF
sta Zp1C ; CPU:$C81A PRG:481A 85 1C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop297
; Global: Branch target inside Sub: taken when Loop297.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop297:
lda #$00 ; CPU:$C81C PRG:481C A9 00
sta Zp1D ; CPU:$C81E PRG:481E 85 1D
lda Zp3B ; CPU:$C820 PRG:4820 A5 3B
and #$40 ; CPU:$C822 PRG:4822 29 40
beq Sub_Loop298 ; CPU:$C824 PRG:4824 F0 04
lda #$FF ; CPU:$C826 PRG:4826 A9 FF
sta Zp1D ; CPU:$C828 PRG:4828 85 1D
; -----------------------------------------------------------------------------
; Routine: Sub_Loop298
; Global: Branch target inside Sub: taken when Loop298.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop298:
lda Zp3B ; CPU:$C82A PRG:482A A5 3B
and #$1F ; CPU:$C82C PRG:482C 29 1F
sta Zp21 ; CPU:$C82E PRG:482E 85 21
asl a ; CPU:$C830 PRG:4830 0A
tax ; CPU:$C831 PRG:4831 AA
lda $D490,x ; CPU:$C832 PRG:4832 BD 90 D4
sta Zp22 ; CPU:$C835 PRG:4835 85 22
lda $D491,x ; CPU:$C837 PRG:4837 BD 91 D4
sta Zp23 ; CPU:$C83A PRG:483A 85 23
jmp (Zp22) ; CPU:$C83C PRG:483C 6C 22 00
; -----------------------------------------------------------------------------
; Routine: Label_C83F
; Global: Branch target inside Label: taken when C83F.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C83F:
lda Zp3C ; CPU:$C83F PRG:483F A5 3C
cmp #$01 ; CPU:$C841 PRG:4841 C9 01
beq Sub_Loop299 ; CPU:$C843 PRG:4843 F0 06
jsr Sub_D438 ; CPU:$C845 PRG:4845 20 38 D4
jmp Sub_CAC9 ; CPU:$C848 PRG:4848 4C C9 CA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop299
; Global: Branch target inside Sub: taken when Loop299.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop299:
lda Zp3D ; CPU:$C84B PRG:484B A5 3D
beq Sub_Loop300 ; CPU:$C84D PRG:484D F0 03
jmp Sub_D2FF ; CPU:$C84F PRG:484F 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop300
; Global: Branch target inside Sub: taken when Loop300.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop300:
lda #$00 ; CPU:$C852 PRG:4852 A9 00
sta Zp9F ; CPU:$C854 PRG:4854 85 9F
lda Zp1C ; CPU:$C856 PRG:4856 A5 1C
bne Sub_Loop304 ; CPU:$C858 PRG:4858 D0 3F
lda Zp97 ; CPU:$C85A PRG:485A A5 97
clc ; CPU:$C85C PRG:485C 18
adc #$18 ; CPU:$C85D PRG:485D 69 18
sta Zp97 ; CPU:$C85F PRG:485F 85 97
lda GameState ; CPU:$C861 PRG:4861 A5 36
bpl Sub_Loop302 ; CPU:$C863 PRG:4863 10 20
ldx SpriteX ; CPU:$C865 PRG:4865 A6 96
lda Zp1D ; CPU:$C867 PRG:4867 A5 1D
bne Sub_Loop301 ; CPU:$C869 PRG:4869 D0 0B
cpx #$C8 ; CPU:$C86B PRG:486B E0 C8
bcc Sub_Loop302 ; CPU:$C86D PRG:486D 90 16
lda #$E8 ; CPU:$C86F PRG:486F A9 E8
ldy #$E0 ; CPU:$C871 PRG:4871 A0 E0
jmp Sub_C87E ; CPU:$C873 PRG:4873 4C 7E C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop301
; Global: Branch target inside Sub: taken when Loop301.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop301:
cpx #$20 ; CPU:$C876 PRG:4876 E0 20
bcs Sub_Loop302 ; CPU:$C878 PRG:4878 B0 0B
lda #$08 ; CPU:$C87A PRG:487A A9 08
ldy #$10 ; CPU:$C87C PRG:487C A0 10
; -----------------------------------------------------------------------------
; Routine: Sub_C87E
; Global: Branch target inside Sub: taken when C87E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C87E:
sta SpriteY ; CPU:$C87E PRG:487E 85 98
sty SpriteX ; CPU:$C880 PRG:4880 84 96
jmp Sub_C8D5 ; CPU:$C882 PRG:4882 4C D5 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop302
; Global: Branch target inside Sub: taken when Loop302.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop302:
lda #$18 ; CPU:$C885 PRG:4885 A9 18
ldx Zp1D ; CPU:$C887 PRG:4887 A6 1D
beq Sub_Loop303 ; CPU:$C889 PRG:4889 F0 02
eor #$FF ; CPU:$C88B PRG:488B 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop303
; Global: Branch target inside Sub: taken when Loop303.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop303:
sta Zp1E ; CPU:$C88D PRG:488D 85 1E
lda SpriteY ; CPU:$C88F PRG:488F A5 98
clc ; CPU:$C891 PRG:4891 18
adc Zp1E ; CPU:$C892 PRG:4892 65 1E
sta SpriteY ; CPU:$C894 PRG:4894 85 98
jmp Sub_C8D5 ; CPU:$C896 PRG:4896 4C D5 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop304
; Global: Branch target inside Sub: taken when Loop304.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop304:
lda Zp95 ; CPU:$C899 PRG:4899 A5 95
clc ; CPU:$C89B PRG:489B 18
adc #$18 ; CPU:$C89C PRG:489C 69 18
sta Zp95 ; CPU:$C89E PRG:489E 85 95
lda GameState ; CPU:$C8A0 PRG:48A0 A5 36
bpl Sub_Loop306 ; CPU:$C8A2 PRG:48A2 10 20
ldx SpriteY ; CPU:$C8A4 PRG:48A4 A6 98
lda Zp1D ; CPU:$C8A6 PRG:48A6 A5 1D
beq Sub_Loop305 ; CPU:$C8A8 PRG:48A8 F0 0B
cpx #$C8 ; CPU:$C8AA PRG:48AA E0 C8
bcc Sub_Loop306 ; CPU:$C8AC PRG:48AC 90 16
lda #$E8 ; CPU:$C8AE PRG:48AE A9 E8
ldy #$E0 ; CPU:$C8B0 PRG:48B0 A0 E0
jmp Sub_C8BD ; CPU:$C8B2 PRG:48B2 4C BD C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop305
; Global: Branch target inside Sub: taken when Loop305.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop305:
cpx #$20 ; CPU:$C8B5 PRG:48B5 E0 20
bcs Sub_Loop306 ; CPU:$C8B7 PRG:48B7 B0 0B
lda #$08 ; CPU:$C8B9 PRG:48B9 A9 08
ldy #$10 ; CPU:$C8BB PRG:48BB A0 10
; -----------------------------------------------------------------------------
; Routine: Sub_C8BD
; Global: Branch target inside Sub: taken when C8BD.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C8BD:
sta SpriteX ; CPU:$C8BD PRG:48BD 85 96
sty SpriteY ; CPU:$C8BF PRG:48BF 84 98
jmp Sub_C8D5 ; CPU:$C8C1 PRG:48C1 4C D5 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop306
; Global: Branch target inside Sub: taken when Loop306.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop306:
lda #$18 ; CPU:$C8C4 PRG:48C4 A9 18
ldx Zp1D ; CPU:$C8C6 PRG:48C6 A6 1D
beq Sub_Loop307 ; CPU:$C8C8 PRG:48C8 F0 02
eor #$FF ; CPU:$C8CA PRG:48CA 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop307
; Global: Branch target inside Sub: taken when Loop307.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop307:
sta Zp1E ; CPU:$C8CC PRG:48CC 85 1E
lda SpriteX ; CPU:$C8CE PRG:48CE A5 96
sec ; CPU:$C8D0 PRG:48D0 38
sbc Zp1E ; CPU:$C8D1 PRG:48D1 E5 1E
sta SpriteX ; CPU:$C8D3 PRG:48D3 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_C8D5
; Global: Branch target inside Sub: taken when C8D5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C8D5:
lda #$04 ; CPU:$C8D5 PRG:48D5 A9 04
jsr Sub_F036 ; CPU:$C8D7 PRG:48D7 20 36 F0
jmp Sub_D18E ; CPU:$C8DA PRG:48DA 4C 8E D1
; -----------------------------------------------------------------------------
; Routine: Label_C8DD
; Global: Branch target inside Label: taken when C8DD.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C8DD:
jmp Sub_CC08 ; CPU:$C8DD PRG:48DD 4C 08 CC
; -----------------------------------------------------------------------------
; Routine: Label_C8E0
; Global: Branch target inside Label: taken when C8E0.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_C8E0:
lda Zp3C ; CPU:$C8E0 PRG:48E0 A5 3C
cmp #$01 ; CPU:$C8E2 PRG:48E2 C9 01
beq Sub_Loop309 ; CPU:$C8E4 PRG:48E4 F0 16
cmp #$02 ; CPU:$C8E6 PRG:48E6 C9 02
beq Sub_Loop311 ; CPU:$C8E8 PRG:48E8 F0 25
cmp #$05 ; CPU:$C8EA PRG:48EA C9 05
bne Sub_Loop308 ; CPU:$C8EC PRG:48EC D0 03
jmp Sub_C99C ; CPU:$C8EE PRG:48EE 4C 9C C9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop308
; Global: Branch target inside Sub: taken when Loop308.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop308:
jsr Sub_D333 ; CPU:$C8F1 PRG:48F1 20 33 D3
lda #$05 ; CPU:$C8F4 PRG:48F4 A9 05
jsr Sub_F03D ; CPU:$C8F6 PRG:48F6 20 3D F0
jmp Sub_D2E2 ; CPU:$C8F9 PRG:48F9 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop309
; Global: Branch target inside Sub: taken when Loop309.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop309:
lda Zp3D ; CPU:$C8FC PRG:48FC A5 3D
beq Sub_Loop310 ; CPU:$C8FE PRG:48FE F0 03
jmp Sub_D2FF ; CPU:$C900 PRG:4900 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop310
; Global: Branch target inside Sub: taken when Loop310.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop310:
jsr Sub_D35D ; CPU:$C903 PRG:4903 20 5D D3
lda #$00 ; CPU:$C906 PRG:4906 A9 00
sta Zp9D ; CPU:$C908 PRG:4908 85 9D
sta Zp9E ; CPU:$C90A PRG:490A 85 9E
jmp Sub_D2E2 ; CPU:$C90C PRG:490C 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop311
; Global: Branch target inside Sub: taken when Loop311.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop311:
lda Zp9D ; CPU:$C90F PRG:490F A5 9D
and #$C0 ; CPU:$C911 PRG:4911 29 C0
cmp #$40 ; CPU:$C913 PRG:4913 C9 40
beq Sub_Loop312 ; CPU:$C915 PRG:4915 F0 17
cmp #$80 ; CPU:$C917 PRG:4917 C9 80
beq Sub_Loop314 ; CPU:$C919 PRG:4919 F0 28
jsr Sub_D387 ; CPU:$C91B PRG:491B 20 87 D3
cmp #$00 ; CPU:$C91E PRG:491E C9 00
beq Sub_Loop315 ; CPU:$C920 PRG:4920 F0 2D
lda #$60 ; CPU:$C922 PRG:4922 A9 60
sta Zp9D ; CPU:$C924 PRG:4924 85 9D
lda #$03 ; CPU:$C926 PRG:4926 A9 03
jsr Sub_F036 ; CPU:$C928 PRG:4928 20 36 F0
jmp Sub_Loop315 ; CPU:$C92B PRG:492B 4C 4F C9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop312
; Global: Branch target inside Sub: taken when Loop312.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop312:
dec Zp9D ; CPU:$C92E PRG:492E C6 9D
lda Zp9D ; CPU:$C930 PRG:4930 A5 9D
and #$3F ; CPU:$C932 PRG:4932 29 3F
beq Sub_Loop313 ; CPU:$C934 PRG:4934 F0 03
jmp Sub_Loop315 ; CPU:$C936 PRG:4936 4C 4F C9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop313
; Global: Branch target inside Sub: taken when Loop313.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop313:
lda #$80 ; CPU:$C939 PRG:4939 A9 80
sta Zp9D ; CPU:$C93B PRG:493B 85 9D
jsr Sub_D438 ; CPU:$C93D PRG:493D 20 38 D4
jmp Sub_Loop315 ; CPU:$C940 PRG:4940 4C 4F C9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop314
; Global: Branch target inside Sub: taken when Loop314.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop314:
lda #$00 ; CPU:$C943 PRG:4943 A9 00
jsr Sub_D3F3 ; CPU:$C945 PRG:4945 20 F3 D3
cmp #$00 ; CPU:$C948 PRG:4948 C9 00
beq Sub_Loop315 ; CPU:$C94A PRG:494A F0 03
jmp Sub_C989 ; CPU:$C94C PRG:494C 4C 89 C9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop315
; Global: Branch target inside Sub: taken when Loop315.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop315:
lda Zp9E ; CPU:$C94F PRG:494F A5 9E
and #$C0 ; CPU:$C951 PRG:4951 29 C0
cmp #$40 ; CPU:$C953 PRG:4953 C9 40
beq Sub_Loop316 ; CPU:$C955 PRG:4955 F0 17
cmp #$80 ; CPU:$C957 PRG:4957 C9 80
beq Sub_Loop318 ; CPU:$C959 PRG:4959 F0 25
jsr Sub_D3BD ; CPU:$C95B PRG:495B 20 BD D3
cmp #$00 ; CPU:$C95E PRG:495E C9 00
beq Sub_Loop319 ; CPU:$C960 PRG:4960 F0 37
lda #$60 ; CPU:$C962 PRG:4962 A9 60
sta Zp9E ; CPU:$C964 PRG:4964 85 9E
lda #$03 ; CPU:$C966 PRG:4966 A9 03
jsr Sub_F036 ; CPU:$C968 PRG:4968 20 36 F0
jmp Sub_Loop319 ; CPU:$C96B PRG:496B 4C 99 C9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop316
; Global: Branch target inside Sub: taken when Loop316.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop316:
dec Zp9E ; CPU:$C96E PRG:496E C6 9E
lda Zp9E ; CPU:$C970 PRG:4970 A5 9E
and #$3F ; CPU:$C972 PRG:4972 29 3F
beq Sub_Loop317 ; CPU:$C974 PRG:4974 F0 03
jmp Sub_Loop319 ; CPU:$C976 PRG:4976 4C 99 C9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop317
; Global: Branch target inside Sub: taken when Loop317.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop317:
lda #$80 ; CPU:$C979 PRG:4979 A9 80
sta Zp9E ; CPU:$C97B PRG:497B 85 9E
jmp Sub_Loop319 ; CPU:$C97D PRG:497D 4C 99 C9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop318
; Global: Branch target inside Sub: taken when Loop318.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop318:
lda #$01 ; CPU:$C980 PRG:4980 A9 01
jsr Sub_D3F3 ; CPU:$C982 PRG:4982 20 F3 D3
cmp #$00 ; CPU:$C985 PRG:4985 C9 00
beq Sub_Loop319 ; CPU:$C987 PRG:4987 F0 10
; -----------------------------------------------------------------------------
; Routine: Sub_C989
; Global: Branch target inside Sub: taken when C989.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C989:
lda #$05 ; CPU:$C989 PRG:4989 A9 05
sta Zp3C ; CPU:$C98B PRG:498B 85 3C
lda #$20 ; CPU:$C98D PRG:498D A9 20
sta Zp3D ; CPU:$C98F PRG:498F 85 3D
jsr Sub_D438 ; CPU:$C991 PRG:4991 20 38 D4
lda #$02 ; CPU:$C994 PRG:4994 A9 02
jsr Sub_F036 ; CPU:$C996 PRG:4996 20 36 F0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop319
; Global: Branch target inside Sub: taken when Loop319.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop319:
jmp Sub_D2E8 ; CPU:$C999 PRG:4999 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_C99C
; Global: Branch target inside Sub: taken when C99C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_C99C:
lda Zp21 ; CPU:$C99C PRG:499C A5 21
cmp #$03 ; CPU:$C99E PRG:499E C9 03
beq Sub_Loop323 ; CPU:$C9A0 PRG:49A0 F0 4C
lda Zp3D ; CPU:$C9A2 PRG:49A2 A5 3D
beq Sub_Loop320 ; CPU:$C9A4 PRG:49A4 F0 03
jmp Sub_D2FF ; CPU:$C9A6 PRG:49A6 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop320
; Global: Branch target inside Sub: taken when Loop320.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop320:
lda #$00 ; CPU:$C9A9 PRG:49A9 A9 00
sta Zp9F ; CPU:$C9AB PRG:49AB 85 9F
lda Zp1C ; CPU:$C9AD PRG:49AD A5 1C
bne Sub_Loop321 ; CPU:$C9AF PRG:49AF D0 1C
lda Zp97 ; CPU:$C9B1 PRG:49B1 A5 97
clc ; CPU:$C9B3 PRG:49B3 18
adc #$10 ; CPU:$C9B4 PRG:49B4 69 10
sta Zp97 ; CPU:$C9B6 PRG:49B6 85 97
lda SpriteY ; CPU:$C9B8 PRG:49B8 A5 98
clc ; CPU:$C9BA PRG:49BA 18
adc #$10 ; CPU:$C9BB PRG:49BB 69 10
sta SpriteY ; CPU:$C9BD PRG:49BD 85 98
lda Zp1D ; CPU:$C9BF PRG:49BF A5 1D
beq Sub_Loop322 ; CPU:$C9C1 PRG:49C1 F0 23
lda SpriteY ; CPU:$C9C3 PRG:49C3 A5 98
sec ; CPU:$C9C5 PRG:49C5 38
sbc #$20 ; CPU:$C9C6 PRG:49C6 E9 20
sta SpriteY ; CPU:$C9C8 PRG:49C8 85 98
jmp Sub_Loop322 ; CPU:$C9CA PRG:49CA 4C E6 C9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop321
; Global: Branch target inside Sub: taken when Loop321.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop321:
lda Zp95 ; CPU:$C9CD PRG:49CD A5 95
clc ; CPU:$C9CF PRG:49CF 18
adc #$10 ; CPU:$C9D0 PRG:49D0 69 10
sta Zp95 ; CPU:$C9D2 PRG:49D2 85 95
lda SpriteX ; CPU:$C9D4 PRG:49D4 A5 96
sec ; CPU:$C9D6 PRG:49D6 38
sbc #$10 ; CPU:$C9D7 PRG:49D7 E9 10
sta SpriteX ; CPU:$C9D9 PRG:49D9 85 96
lda Zp1D ; CPU:$C9DB PRG:49DB A5 1D
beq Sub_Loop322 ; CPU:$C9DD PRG:49DD F0 07
lda SpriteX ; CPU:$C9DF PRG:49DF A5 96
clc ; CPU:$C9E1 PRG:49E1 18
adc #$20 ; CPU:$C9E2 PRG:49E2 69 20
sta SpriteX ; CPU:$C9E4 PRG:49E4 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_Loop322
; Global: Branch target inside Sub: taken when Loop322.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop322:
lda #$04 ; CPU:$C9E6 PRG:49E6 A9 04
jsr Sub_F036 ; CPU:$C9E8 PRG:49E8 20 36 F0
jmp Sub_D18E ; CPU:$C9EB PRG:49EB 4C 8E D1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop323
; Global: Branch target inside Sub: taken when Loop323.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop323:
lda Zp3D ; CPU:$C9EE PRG:49EE A5 3D
beq Sub_Loop324 ; CPU:$C9F0 PRG:49F0 F0 03
jmp Sub_D2FF ; CPU:$C9F2 PRG:49F2 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop324
; Global: Branch target inside Sub: taken when Loop324.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop324:
lda #$00 ; CPU:$C9F5 PRG:49F5 A9 00
sta Zp9F ; CPU:$C9F7 PRG:49F7 85 9F
lda Zp95 ; CPU:$C9F9 PRG:49F9 A5 95
clc ; CPU:$C9FB PRG:49FB 18
adc #$10 ; CPU:$C9FC PRG:49FC 69 10
sta Zp95 ; CPU:$C9FE PRG:49FE 85 95
sta Zp97 ; CPU:$CA00 PRG:4A00 85 97
lda Zp1C ; CPU:$CA02 PRG:4A02 A5 1C
bne Sub_Loop325 ; CPU:$CA04 PRG:4A04 D0 15
lda SpriteY ; CPU:$CA06 PRG:4A06 A5 98
clc ; CPU:$CA08 PRG:4A08 18
adc #$10 ; CPU:$CA09 PRG:4A09 69 10
sta SpriteY ; CPU:$CA0B PRG:4A0B 85 98
lda Zp1D ; CPU:$CA0D PRG:4A0D A5 1D
beq Sub_Loop326 ; CPU:$CA0F PRG:4A0F F0 1C
lda SpriteY ; CPU:$CA11 PRG:4A11 A5 98
sec ; CPU:$CA13 PRG:4A13 38
sbc #$20 ; CPU:$CA14 PRG:4A14 E9 20
sta SpriteY ; CPU:$CA16 PRG:4A16 85 98
jmp Sub_Loop326 ; CPU:$CA18 PRG:4A18 4C 2D CA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop325
; Global: Branch target inside Sub: taken when Loop325.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop325:
lda SpriteX ; CPU:$CA1B PRG:4A1B A5 96
sec ; CPU:$CA1D PRG:4A1D 38
sbc #$10 ; CPU:$CA1E PRG:4A1E E9 10
sta SpriteX ; CPU:$CA20 PRG:4A20 85 96
lda Zp1D ; CPU:$CA22 PRG:4A22 A5 1D
beq Sub_Loop326 ; CPU:$CA24 PRG:4A24 F0 07
lda SpriteX ; CPU:$CA26 PRG:4A26 A5 96
clc ; CPU:$CA28 PRG:4A28 18
adc #$20 ; CPU:$CA29 PRG:4A29 69 20
sta SpriteX ; CPU:$CA2B PRG:4A2B 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_Loop326
; Global: Branch target inside Sub: taken when Loop326.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop326:
lda #$04 ; CPU:$CA2D PRG:4A2D A9 04
jsr Sub_F036 ; CPU:$CA2F PRG:4A2F 20 36 F0
jmp Sub_D18E ; CPU:$CA32 PRG:4A32 4C 8E D1
; -----------------------------------------------------------------------------
; Routine: Label_CA35
; Global: Branch target inside Label: taken when CA35.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_CA35:
lda Zp3C ; CPU:$CA35 PRG:4A35 A5 3C
cmp #$01 ; CPU:$CA37 PRG:4A37 C9 01
beq Sub_Loop327 ; CPU:$CA39 PRG:4A39 F0 07
cmp #$02 ; CPU:$CA3B PRG:4A3B C9 02
beq Sub_Loop330 ; CPU:$CA3D PRG:4A3D F0 39
jmp Sub_CA81 ; CPU:$CA3F PRG:4A3F 4C 81 CA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop327
; Global: Branch target inside Sub: taken when Loop327.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop327:
lda Zp3D ; CPU:$CA42 PRG:4A42 A5 3D
beq Sub_Loop328 ; CPU:$CA44 PRG:4A44 F0 03
jmp Sub_D2FF ; CPU:$CA46 PRG:4A46 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop328
; Global: Branch target inside Sub: taken when Loop328.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop328:
jsr Sub_D438 ; CPU:$CA49 PRG:4A49 20 38 D4
lda Zp1C ; CPU:$CA4C PRG:4A4C A5 1C
bne Sub_Loop329 ; CPU:$CA4E PRG:4A4E D0 13
lda SpriteX ; CPU:$CA50 PRG:4A50 A5 96
sta SpriteY ; CPU:$CA52 PRG:4A52 85 98
lda Zp95 ; CPU:$CA54 PRG:4A54 A5 95
sec ; CPU:$CA56 PRG:4A56 38
sbc #$30 ; CPU:$CA57 PRG:4A57 E9 30
sta Zp95 ; CPU:$CA59 PRG:4A59 85 95
sec ; CPU:$CA5B PRG:4A5B 38
sbc #$08 ; CPU:$CA5C PRG:4A5C E9 08
sta Zp97 ; CPU:$CA5E PRG:4A5E 85 97
jmp Sub_CA73 ; CPU:$CA60 PRG:4A60 4C 73 CA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop329
; Global: Branch target inside Sub: taken when Loop329.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop329:
lda SpriteY ; CPU:$CA63 PRG:4A63 A5 98
sta SpriteX ; CPU:$CA65 PRG:4A65 85 96
lda Zp97 ; CPU:$CA67 PRG:4A67 A5 97
sec ; CPU:$CA69 PRG:4A69 38
sbc #$30 ; CPU:$CA6A PRG:4A6A E9 30
sta Zp97 ; CPU:$CA6C PRG:4A6C 85 97
sec ; CPU:$CA6E PRG:4A6E 38
sbc #$08 ; CPU:$CA6F PRG:4A6F E9 08
sta Zp95 ; CPU:$CA71 PRG:4A71 85 95
; -----------------------------------------------------------------------------
; Routine: Sub_CA73
; Global: Branch target inside Sub: taken when CA73.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CA73:
lda #$10 ; CPU:$CA73 PRG:4A73 A9 10
jmp Sub_D2E4 ; CPU:$CA75 PRG:4A75 4C E4 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop330
; Global: Branch target inside Sub: taken when Loop330.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop330:
jmp Sub_Loop379 ; CPU:$CA78 PRG:4A78 4C 7F CD
; -----------------------------------------------------------------------------
; Routine: Label_CA7B
; Global: Branch target inside Label: taken when CA7B.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_CA7B:
lda Zp3C ; CPU:$CA7B PRG:4A7B A5 3C
cmp #$01 ; CPU:$CA7D PRG:4A7D C9 01
beq Sub_Loop334 ; CPU:$CA7F PRG:4A7F F0 3F
; -----------------------------------------------------------------------------
; Routine: Sub_CA81
; Global: Branch target inside Sub: taken when CA81.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CA81:
lda Zp1C ; CPU:$CA81 PRG:4A81 A5 1C
bne Sub_Loop332 ; CPU:$CA83 PRG:4A83 D0 1B
lda Zp95 ; CPU:$CA85 PRG:4A85 A5 95
sec ; CPU:$CA87 PRG:4A87 38
sbc #$08 ; CPU:$CA88 PRG:4A88 E9 08
sta Zp97 ; CPU:$CA8A PRG:4A8A 85 97
lda #$08 ; CPU:$CA8C PRG:4A8C A9 08
ldx Zp1D ; CPU:$CA8E PRG:4A8E A6 1D
beq Sub_Loop331 ; CPU:$CA90 PRG:4A90 F0 02
eor #$FF ; CPU:$CA92 PRG:4A92 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop331
; Global: Branch target inside Sub: taken when Loop331.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop331:
sta Zp1E ; CPU:$CA94 PRG:4A94 85 1E
lda SpriteX ; CPU:$CA96 PRG:4A96 A5 96
sec ; CPU:$CA98 PRG:4A98 38
sbc Zp1E ; CPU:$CA99 PRG:4A99 E5 1E
sta SpriteY ; CPU:$CA9B PRG:4A9B 85 98
jmp Sub_CAB8 ; CPU:$CA9D PRG:4A9D 4C B8 CA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop332
; Global: Branch target inside Sub: taken when Loop332.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop332:
lda Zp97 ; CPU:$CAA0 PRG:4AA0 A5 97
sec ; CPU:$CAA2 PRG:4AA2 38
sbc #$08 ; CPU:$CAA3 PRG:4AA3 E9 08
sta Zp95 ; CPU:$CAA5 PRG:4AA5 85 95
lda #$08 ; CPU:$CAA7 PRG:4AA7 A9 08
ldx Zp1D ; CPU:$CAA9 PRG:4AA9 A6 1D
beq Sub_Loop333 ; CPU:$CAAB PRG:4AAB F0 02
eor #$FF ; CPU:$CAAD PRG:4AAD 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop333
; Global: Branch target inside Sub: taken when Loop333.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop333:
sta Zp1E ; CPU:$CAAF PRG:4AAF 85 1E
lda SpriteY ; CPU:$CAB1 PRG:4AB1 A5 98
clc ; CPU:$CAB3 PRG:4AB3 18
adc Zp1E ; CPU:$CAB4 PRG:4AB4 65 1E
sta SpriteX ; CPU:$CAB6 PRG:4AB6 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_CAB8
; Global: Branch target inside Sub: taken when CAB8.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CAB8:
lda #$05 ; CPU:$CAB8 PRG:4AB8 A9 05
jsr Sub_F03D ; CPU:$CABA PRG:4ABA 20 3D F0
jmp Sub_D2E2 ; CPU:$CABD PRG:4ABD 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop334
; Global: Branch target inside Sub: taken when Loop334.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop334:
jmp Sub_Loop392 ; CPU:$CAC0 PRG:4AC0 4C 8C CE
; -----------------------------------------------------------------------------
; Routine: Label_CAC3
; Global: Branch target inside Label: taken when CAC3.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_CAC3:
lda Zp3C ; CPU:$CAC3 PRG:4AC3 A5 3C
cmp #$01 ; CPU:$CAC5 PRG:4AC5 C9 01
beq Sub_Loop336 ; CPU:$CAC7 PRG:4AC7 F0 28
; -----------------------------------------------------------------------------
; Routine: Sub_CAC9
; Global: Branch target inside Sub: taken when CAC9.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CAC9:
jsr Sub_D438 ; CPU:$CAC9 PRG:4AC9 20 38 D4
lda Zp1C ; CPU:$CACC PRG:4ACC A5 1C
bne Sub_Loop335 ; CPU:$CACE PRG:4ACE D0 0E
lda Zp95 ; CPU:$CAD0 PRG:4AD0 A5 95
sec ; CPU:$CAD2 PRG:4AD2 38
sbc #$08 ; CPU:$CAD3 PRG:4AD3 E9 08
sta Zp97 ; CPU:$CAD5 PRG:4AD5 85 97
lda SpriteX ; CPU:$CAD7 PRG:4AD7 A5 96
sta SpriteY ; CPU:$CAD9 PRG:4AD9 85 98
jmp Sub_CAE9 ; CPU:$CADB PRG:4ADB 4C E9 CA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop335
; Global: Branch target inside Sub: taken when Loop335.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop335:
lda Zp97 ; CPU:$CADE PRG:4ADE A5 97
sec ; CPU:$CAE0 PRG:4AE0 38
sbc #$08 ; CPU:$CAE1 PRG:4AE1 E9 08
sta Zp95 ; CPU:$CAE3 PRG:4AE3 85 95
lda SpriteY ; CPU:$CAE5 PRG:4AE5 A5 98
sta SpriteX ; CPU:$CAE7 PRG:4AE7 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_CAE9
; Global: Branch target inside Sub: taken when CAE9.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CAE9:
lda #$05 ; CPU:$CAE9 PRG:4AE9 A9 05
jsr Sub_F03D ; CPU:$CAEB PRG:4AEB 20 3D F0
jmp Sub_D2E2 ; CPU:$CAEE PRG:4AEE 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop336
; Global: Branch target inside Sub: taken when Loop336.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop336:
jmp Sub_Loop392 ; CPU:$CAF1 PRG:4AF1 4C 8C CE
; -----------------------------------------------------------------------------
; Routine: Label_CAF4
; Global: Branch target inside Label: taken when CAF4.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_CAF4:
lda Zp3C ; CPU:$CAF4 PRG:4AF4 A5 3C
cmp #$01 ; CPU:$CAF6 PRG:4AF6 C9 01
beq Sub_Loop340 ; CPU:$CAF8 PRG:4AF8 F0 32
cmp #$02 ; CPU:$CAFA PRG:4AFA C9 02
beq Sub_Loop342 ; CPU:$CAFC PRG:4AFC F0 3F
lda Zp1C ; CPU:$CAFE PRG:4AFE A5 1C
bne Sub_Loop338 ; CPU:$CB00 PRG:4B00 D0 14
lda #$10 ; CPU:$CB02 PRG:4B02 A9 10
ldx Zp1D ; CPU:$CB04 PRG:4B04 A6 1D
beq Sub_Loop337 ; CPU:$CB06 PRG:4B06 F0 02
eor #$FF ; CPU:$CB08 PRG:4B08 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop337
; Global: Branch target inside Sub: taken when Loop337.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop337:
sta Zp1E ; CPU:$CB0A PRG:4B0A 85 1E
lda SpriteY ; CPU:$CB0C PRG:4B0C A5 98
clc ; CPU:$CB0E PRG:4B0E 18
adc Zp1E ; CPU:$CB0F PRG:4B0F 65 1E
sta SpriteX ; CPU:$CB11 PRG:4B11 85 96
jmp Sub_CB27 ; CPU:$CB13 PRG:4B13 4C 27 CB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop338
; Global: Branch target inside Sub: taken when Loop338.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop338:
lda #$10 ; CPU:$CB16 PRG:4B16 A9 10
ldx Zp1D ; CPU:$CB18 PRG:4B18 A6 1D
beq Sub_Loop339 ; CPU:$CB1A PRG:4B1A F0 02
eor #$FF ; CPU:$CB1C PRG:4B1C 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop339
; Global: Branch target inside Sub: taken when Loop339.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop339:
sta Zp1E ; CPU:$CB1E PRG:4B1E 85 1E
lda SpriteX ; CPU:$CB20 PRG:4B20 A5 96
sec ; CPU:$CB22 PRG:4B22 38
sbc Zp1E ; CPU:$CB23 PRG:4B23 E5 1E
sta SpriteY ; CPU:$CB25 PRG:4B25 85 98
; -----------------------------------------------------------------------------
; Routine: Sub_CB27
; Global: Branch target inside Sub: taken when CB27.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CB27:
lda #$10 ; CPU:$CB27 PRG:4B27 A9 10
jmp Sub_D2E4 ; CPU:$CB29 PRG:4B29 4C E4 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop340
; Global: Branch target inside Sub: taken when Loop340.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop340:
lda Zp3D ; CPU:$CB2C PRG:4B2C A5 3D
beq Sub_Loop341 ; CPU:$CB2E PRG:4B2E F0 03
jmp Sub_D2FF ; CPU:$CB30 PRG:4B30 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop341
; Global: Branch target inside Sub: taken when Loop341.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop341:
lda #$02 ; CPU:$CB33 PRG:4B33 A9 02
jsr Sub_F036 ; CPU:$CB35 PRG:4B35 20 36 F0
lda #$10 ; CPU:$CB38 PRG:4B38 A9 10
jmp Sub_D2E4 ; CPU:$CB3A PRG:4B3A 4C E4 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop342
; Global: Branch target inside Sub: taken when Loop342.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop342:
lda Zp3D ; CPU:$CB3D PRG:4B3D A5 3D
beq Sub_Loop343 ; CPU:$CB3F PRG:4B3F F0 03
jmp Sub_D2FF ; CPU:$CB41 PRG:4B41 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop343
; Global: Branch target inside Sub: taken when Loop343.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop343:
dec Zp9C ; CPU:$CB44 PRG:4B44 C6 9C
beq Sub_Loop346 ; CPU:$CB46 PRG:4B46 F0 1C
ldx WrestlerIndex2 ; CPU:$CB48 PRG:4B48 A6 86
lda Zp1C ; CPU:$CB4A PRG:4B4A A5 1C
beq Sub_Loop344 ; CPU:$CB4C PRG:4B4C F0 02
ldx WrestlerIndex ; CPU:$CB4E PRG:4B4E A6 85
; -----------------------------------------------------------------------------
; Routine: Sub_Loop344
; Global: Branch target inside Sub: taken when Loop344.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop344:
lda Zp35,x ; CPU:$CB50 PRG:4B50 B5 35
cmp #$02 ; CPU:$CB52 PRG:4B52 C9 02
bcc Sub_Loop345 ; CPU:$CB54 PRG:4B54 90 05
sec ; CPU:$CB56 PRG:4B56 38
sbc #$02 ; CPU:$CB57 PRG:4B57 E9 02
sta Zp35,x ; CPU:$CB59 PRG:4B59 95 35
; -----------------------------------------------------------------------------
; Routine: Sub_Loop345
; Global: Branch target inside Sub: taken when Loop345.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop345:
lda #$10 ; CPU:$CB5B PRG:4B5B A9 10
sta Zp3D ; CPU:$CB5D PRG:4B5D 85 3D
dec Zp3C ; CPU:$CB5F PRG:4B5F C6 3C
jmp Sub_D332 ; CPU:$CB61 PRG:4B61 4C 32 D3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop346
; Global: Branch target inside Sub: taken when Loop346.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop346:
lda Zp3B ; CPU:$CB64 PRG:4B64 A5 3B
and #$E0 ; CPU:$CB66 PRG:4B66 29 E0
ora Zp9B ; CPU:$CB68 PRG:4B68 05 9B
sta Zp3B ; CPU:$CB6A PRG:4B6A 85 3B
lda #$00 ; CPU:$CB6C PRG:4B6C A9 00
sta Zp3C ; CPU:$CB6E PRG:4B6E 85 3C
lda #$20 ; CPU:$CB70 PRG:4B70 A9 20
sta Zp3D ; CPU:$CB72 PRG:4B72 85 3D
jsr Sub_EF2F ; CPU:$CB74 PRG:4B74 20 2F EF
jmp Sub_D332 ; CPU:$CB77 PRG:4B77 4C 32 D3
; -----------------------------------------------------------------------------
; Routine: Label_CB7A
; Global: Branch target inside Label: taken when CB7A.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_CB7A:
lda Zp3C ; CPU:$CB7A PRG:4B7A A5 3C
cmp #$01 ; CPU:$CB7C PRG:4B7C C9 01
beq Sub_Loop348 ; CPU:$CB7E PRG:4B7E F0 28
cmp #$02 ; CPU:$CB80 PRG:4B80 C9 02
beq Sub_Loop351 ; CPU:$CB82 PRG:4B82 F0 4A
jsr Sub_D438 ; CPU:$CB84 PRG:4B84 20 38 D4
lda Zp95 ; CPU:$CB87 PRG:4B87 A5 95
sta Zp97 ; CPU:$CB89 PRG:4B89 85 97
ldx Zp1D ; CPU:$CB8B PRG:4B8B A6 1D
beq Sub_Loop347 ; CPU:$CB8D PRG:4B8D F0 08
lda SpriteX ; CPU:$CB8F PRG:4B8F A5 96
clc ; CPU:$CB91 PRG:4B91 18
adc #$10 ; CPU:$CB92 PRG:4B92 69 10
jmp Sub_CB9C ; CPU:$CB94 PRG:4B94 4C 9C CB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop347
; Global: Branch target inside Sub: taken when Loop347.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop347:
lda SpriteX ; CPU:$CB97 PRG:4B97 A5 96
sec ; CPU:$CB99 PRG:4B99 38
sbc #$10 ; CPU:$CB9A PRG:4B9A E9 10
; -----------------------------------------------------------------------------
; Routine: Sub_CB9C
; Global: Branch target inside Sub: taken when CB9C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CB9C:
sta SpriteY ; CPU:$CB9C PRG:4B9C 85 98
lda #$05 ; CPU:$CB9E PRG:4B9E A9 05
jsr Sub_F03D ; CPU:$CBA0 PRG:4BA0 20 3D F0
lda #$10 ; CPU:$CBA3 PRG:4BA3 A9 10
jmp Sub_D2E4 ; CPU:$CBA5 PRG:4BA5 4C E4 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop348
; Global: Branch target inside Sub: taken when Loop348.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop348:
lda Zp3D ; CPU:$CBA8 PRG:4BA8 A5 3D
beq Sub_Loop349 ; CPU:$CBAA PRG:4BAA F0 03
jmp Sub_D2FF ; CPU:$CBAC PRG:4BAC 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop349
; Global: Branch target inside Sub: taken when Loop349.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop349:
lda #$00 ; CPU:$CBAF PRG:4BAF A9 00
sta Zp9F ; CPU:$CBB1 PRG:4BB1 85 9F
ldx Zp1D ; CPU:$CBB3 PRG:4BB3 A6 1D
beq Sub_Loop350 ; CPU:$CBB5 PRG:4BB5 F0 08
lda SpriteX ; CPU:$CBB7 PRG:4BB7 A5 96
clc ; CPU:$CBB9 PRG:4BB9 18
adc #$10 ; CPU:$CBBA PRG:4BBA 69 10
jmp Sub_CBC4 ; CPU:$CBBC PRG:4BBC 4C C4 CB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop350
; Global: Branch target inside Sub: taken when Loop350.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop350:
lda SpriteX ; CPU:$CBBF PRG:4BBF A5 96
sec ; CPU:$CBC1 PRG:4BC1 38
sbc #$10 ; CPU:$CBC2 PRG:4BC2 E9 10
; -----------------------------------------------------------------------------
; Routine: Sub_CBC4
; Global: Branch target inside Sub: taken when CBC4.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CBC4:
sta SpriteY ; CPU:$CBC4 PRG:4BC4 85 98
lda #$02 ; CPU:$CBC6 PRG:4BC6 A9 02
jsr Sub_F036 ; CPU:$CBC8 PRG:4BC8 20 36 F0
jmp Sub_D2E2 ; CPU:$CBCB PRG:4BCB 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop351
; Global: Branch target inside Sub: taken when Loop351.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop351:
lda Zp3D ; CPU:$CBCE PRG:4BCE A5 3D
beq Sub_Loop352 ; CPU:$CBD0 PRG:4BD0 F0 03
jmp Sub_D2FF ; CPU:$CBD2 PRG:4BD2 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop352
; Global: Branch target inside Sub: taken when Loop352.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop352:
lda Zp97 ; CPU:$CBD5 PRG:4BD5 A5 97
clc ; CPU:$CBD7 PRG:4BD7 18
adc #$10 ; CPU:$CBD8 PRG:4BD8 69 10
sta Zp97 ; CPU:$CBDA PRG:4BDA 85 97
sta Zp95 ; CPU:$CBDC PRG:4BDC 85 95
lda #$08 ; CPU:$CBDE PRG:4BDE A9 08
ldx Zp1D ; CPU:$CBE0 PRG:4BE0 A6 1D
beq Sub_Loop353 ; CPU:$CBE2 PRG:4BE2 F0 02
eor #$FF ; CPU:$CBE4 PRG:4BE4 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop353
; Global: Branch target inside Sub: taken when Loop353.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop353:
sta Zp1E ; CPU:$CBE6 PRG:4BE6 85 1E
lda SpriteY ; CPU:$CBE8 PRG:4BE8 A5 98
sec ; CPU:$CBEA PRG:4BEA 38
sbc Zp1E ; CPU:$CBEB PRG:4BEB E5 1E
sta SpriteY ; CPU:$CBED PRG:4BED 85 98
lda #$08 ; CPU:$CBEF PRG:4BEF A9 08
ldx Zp1D ; CPU:$CBF1 PRG:4BF1 A6 1D
beq Sub_Loop354 ; CPU:$CBF3 PRG:4BF3 F0 02
eor #$FF ; CPU:$CBF5 PRG:4BF5 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop354
; Global: Branch target inside Sub: taken when Loop354.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop354:
sta Zp1E ; CPU:$CBF7 PRG:4BF7 85 1E
lda SpriteX ; CPU:$CBF9 PRG:4BF9 A5 96
clc ; CPU:$CBFB PRG:4BFB 18
adc Zp1E ; CPU:$CBFC PRG:4BFC 65 1E
sta SpriteX ; CPU:$CBFE PRG:4BFE 85 96
lda #$04 ; CPU:$CC00 PRG:4C00 A9 04
jsr Sub_F036 ; CPU:$CC02 PRG:4C02 20 36 F0
jmp Sub_D18E ; CPU:$CC05 PRG:4C05 4C 8E D1
; -----------------------------------------------------------------------------
; Routine: Sub_CC08
; Global: Branch target inside Sub: taken when CC08.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CC08:
lda Zp3C ; CPU:$CC08 PRG:4C08 A5 3C
cmp #$01 ; CPU:$CC0A PRG:4C0A C9 01
beq Sub_Loop357 ; CPU:$CC0C PRG:4C0C F0 25
cmp #$02 ; CPU:$CC0E PRG:4C0E C9 02
beq Sub_Loop359 ; CPU:$CC10 PRG:4C10 F0 2E
cmp #$03 ; CPU:$CC12 PRG:4C12 C9 03
beq Sub_Loop362 ; CPU:$CC14 PRG:4C14 F0 4A
cmp #$04 ; CPU:$CC16 PRG:4C16 C9 04
beq Sub_Loop364 ; CPU:$CC18 PRG:4C18 F0 50
cmp #$05 ; CPU:$CC1A PRG:4C1A C9 05
bne Sub_Loop355 ; CPU:$CC1C PRG:4C1C D0 03
jmp Sub_CCAA ; CPU:$CC1E PRG:4C1E 4C AA CC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop355
; Global: Branch target inside Sub: taken when Loop355.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop355:
cmp #$06 ; CPU:$CC21 PRG:4C21 C9 06
bne Sub_Loop356 ; CPU:$CC23 PRG:4C23 D0 03
jmp Sub_CD0E ; CPU:$CC25 PRG:4C25 4C 0E CD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop356
; Global: Branch target inside Sub: taken when Loop356.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop356:
jsr Sub_D333 ; CPU:$CC28 PRG:4C28 20 33 D3
lda #$05 ; CPU:$CC2B PRG:4C2B A9 05
jsr Sub_F03D ; CPU:$CC2D PRG:4C2D 20 3D F0
jmp Sub_D2E2 ; CPU:$CC30 PRG:4C30 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop357
; Global: Branch target inside Sub: taken when Loop357.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop357:
lda Zp3D ; CPU:$CC33 PRG:4C33 A5 3D
beq Sub_Loop358 ; CPU:$CC35 PRG:4C35 F0 03
jmp Sub_D2FF ; CPU:$CC37 PRG:4C37 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop358
; Global: Branch target inside Sub: taken when Loop358.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop358:
jsr Sub_D35D ; CPU:$CC3A PRG:4C3A 20 5D D3
jmp Sub_D2E2 ; CPU:$CC3D PRG:4C3D 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop359
; Global: Branch target inside Sub: taken when Loop359.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop359:
lda Zp1C ; CPU:$CC40 PRG:4C40 A5 1C
bne Sub_Loop360 ; CPU:$CC42 PRG:4C42 D0 0A
jsr Sub_D3BD ; CPU:$CC44 PRG:4C44 20 BD D3
cmp #$00 ; CPU:$CC47 PRG:4C47 C9 00
bne Sub_Loop361 ; CPU:$CC49 PRG:4C49 D0 0D
jmp Sub_D2E8 ; CPU:$CC4B PRG:4C4B 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop360
; Global: Branch target inside Sub: taken when Loop360.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop360:
jsr Sub_D387 ; CPU:$CC4E PRG:4C4E 20 87 D3
cmp #$00 ; CPU:$CC51 PRG:4C51 C9 00
bne Sub_Loop361 ; CPU:$CC53 PRG:4C53 D0 03
jmp Sub_D2E8 ; CPU:$CC55 PRG:4C55 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop361
; Global: Branch target inside Sub: taken when Loop361.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop361:
lda #$03 ; CPU:$CC58 PRG:4C58 A9 03
jsr Sub_F036 ; CPU:$CC5A PRG:4C5A 20 36 F0
jmp Sub_D2E2 ; CPU:$CC5D PRG:4C5D 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop362
; Global: Branch target inside Sub: taken when Loop362.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop362:
lda Zp3D ; CPU:$CC60 PRG:4C60 A5 3D
beq Sub_Loop363 ; CPU:$CC62 PRG:4C62 F0 03
jmp Sub_D2FF ; CPU:$CC64 PRG:4C64 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop363
; Global: Branch target inside Sub: taken when Loop363.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop363:
jmp Sub_D2E2 ; CPU:$CC67 PRG:4C67 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop364
; Global: Branch target inside Sub: taken when Loop364.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop364:
lda #$00 ; CPU:$CC6A PRG:4C6A A9 00
jsr Sub_D3F3 ; CPU:$CC6C PRG:4C6C 20 F3 D3
cmp #$00 ; CPU:$CC6F PRG:4C6F C9 00
bne Sub_Loop365 ; CPU:$CC71 PRG:4C71 D0 0C
lda #$01 ; CPU:$CC73 PRG:4C73 A9 01
jsr Sub_D3F3 ; CPU:$CC75 PRG:4C75 20 F3 D3
cmp #$00 ; CPU:$CC78 PRG:4C78 C9 00
bne Sub_Loop365 ; CPU:$CC7A PRG:4C7A D0 03
jmp Sub_D2E8 ; CPU:$CC7C PRG:4C7C 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop365
; Global: Branch target inside Sub: taken when Loop365.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop365:
jsr Sub_D438 ; CPU:$CC7F PRG:4C7F 20 38 D4
lda Zp21 ; CPU:$CC82 PRG:4C82 A5 21
cmp #$09 ; CPU:$CC84 PRG:4C84 C9 09
beq Sub_Loop366 ; CPU:$CC86 PRG:4C86 F0 08
lda #$0F ; CPU:$CC88 PRG:4C88 A9 0F
jsr Sub_F036 ; CPU:$CC8A PRG:4C8A 20 36 F0
jmp Sub_CCA7 ; CPU:$CC8D PRG:4C8D 4C A7 CC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop366
; Global: Branch target inside Sub: taken when Loop366.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop366:
lda Zp97 ; CPU:$CC90 PRG:4C90 A5 97
sta Zp95 ; CPU:$CC92 PRG:4C92 85 95
ldx Zp1D ; CPU:$CC94 PRG:4C94 A6 1D
beq Sub_Loop367 ; CPU:$CC96 PRG:4C96 F0 08
lda SpriteY ; CPU:$CC98 PRG:4C98 A5 98
sec ; CPU:$CC9A PRG:4C9A 38
sbc #$10 ; CPU:$CC9B PRG:4C9B E9 10
jmp Sub_CCA5 ; CPU:$CC9D PRG:4C9D 4C A5 CC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop367
; Global: Branch target inside Sub: taken when Loop367.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop367:
lda SpriteY ; CPU:$CCA0 PRG:4CA0 A5 98
clc ; CPU:$CCA2 PRG:4CA2 18
adc #$10 ; CPU:$CCA3 PRG:4CA3 69 10
; -----------------------------------------------------------------------------
; Routine: Sub_CCA5
; Global: Branch target inside Sub: taken when CCA5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CCA5:
sta SpriteX ; CPU:$CCA5 PRG:4CA5 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_CCA7
; Global: Branch target inside Sub: taken when CCA7.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CCA7:
jmp Sub_D2E2 ; CPU:$CCA7 PRG:4CA7 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_CCAA
; Global: Branch target inside Sub: taken when CCAA.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CCAA:
lda Zp3D ; CPU:$CCAA PRG:4CAA A5 3D
beq Sub_Loop368 ; CPU:$CCAC PRG:4CAC F0 03
jmp Sub_D2FF ; CPU:$CCAE PRG:4CAE 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop368
; Global: Branch target inside Sub: taken when Loop368.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop368:
lda Zp21 ; CPU:$CCB1 PRG:4CB1 A5 21
cmp #$09 ; CPU:$CCB3 PRG:4CB3 C9 09
beq Sub_Loop372 ; CPU:$CCB5 PRG:4CB5 F0 3E
lda #$00 ; CPU:$CCB7 PRG:4CB7 A9 00
sta Zp9F ; CPU:$CCB9 PRG:4CB9 85 9F
lda Zp95 ; CPU:$CCBB PRG:4CBB A5 95
clc ; CPU:$CCBD PRG:4CBD 18
adc #$10 ; CPU:$CCBE PRG:4CBE 69 10
sta Zp95 ; CPU:$CCC0 PRG:4CC0 85 95
sta Zp97 ; CPU:$CCC2 PRG:4CC2 85 97
lda Zp1C ; CPU:$CCC4 PRG:4CC4 A5 1C
bne Sub_Loop370 ; CPU:$CCC6 PRG:4CC6 D0 14
lda #$18 ; CPU:$CCC8 PRG:4CC8 A9 18
ldx Zp1D ; CPU:$CCCA PRG:4CCA A6 1D
beq Sub_Loop369 ; CPU:$CCCC PRG:4CCC F0 02
eor #$FF ; CPU:$CCCE PRG:4CCE 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop369
; Global: Branch target inside Sub: taken when Loop369.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop369:
sta Zp1E ; CPU:$CCD0 PRG:4CD0 85 1E
lda SpriteY ; CPU:$CCD2 PRG:4CD2 A5 98
clc ; CPU:$CCD4 PRG:4CD4 18
adc Zp1E ; CPU:$CCD5 PRG:4CD5 65 1E
sta SpriteY ; CPU:$CCD7 PRG:4CD7 85 98
jmp Sub_CCED ; CPU:$CCD9 PRG:4CD9 4C ED CC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop370
; Global: Branch target inside Sub: taken when Loop370.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop370:
lda #$18 ; CPU:$CCDC PRG:4CDC A9 18
ldx Zp1D ; CPU:$CCDE PRG:4CDE A6 1D
beq Sub_Loop371 ; CPU:$CCE0 PRG:4CE0 F0 02
eor #$FF ; CPU:$CCE2 PRG:4CE2 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop371
; Global: Branch target inside Sub: taken when Loop371.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop371:
sta Zp1E ; CPU:$CCE4 PRG:4CE4 85 1E
lda SpriteX ; CPU:$CCE6 PRG:4CE6 A5 96
sec ; CPU:$CCE8 PRG:4CE8 38
sbc Zp1E ; CPU:$CCE9 PRG:4CE9 E5 1E
sta SpriteX ; CPU:$CCEB PRG:4CEB 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_CCED
; Global: Branch target inside Sub: taken when CCED.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CCED:
lda #$04 ; CPU:$CCED PRG:4CED A9 04
jsr Sub_F036 ; CPU:$CCEF PRG:4CEF 20 36 F0
jmp Sub_D18E ; CPU:$CCF2 PRG:4CF2 4C 8E D1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop372
; Global: Branch target inside Sub: taken when Loop372.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop372:
lda #$08 ; CPU:$CCF5 PRG:4CF5 A9 08
ldx Zp1D ; CPU:$CCF7 PRG:4CF7 A6 1D
beq Sub_Loop373 ; CPU:$CCF9 PRG:4CF9 F0 02
eor #$FF ; CPU:$CCFB PRG:4CFB 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop373
; Global: Branch target inside Sub: taken when Loop373.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop373:
sta Zp1E ; CPU:$CCFD PRG:4CFD 85 1E
lda SpriteX ; CPU:$CCFF PRG:4CFF A5 96
clc ; CPU:$CD01 PRG:4D01 18
adc Zp1E ; CPU:$CD02 PRG:4D02 65 1E
sta SpriteX ; CPU:$CD04 PRG:4D04 85 96
lda #$0F ; CPU:$CD06 PRG:4D06 A9 0F
jsr Sub_F036 ; CPU:$CD08 PRG:4D08 20 36 F0
jmp Sub_D2E2 ; CPU:$CD0B PRG:4D0B 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_CD0E
; Global: Branch target inside Sub: taken when CD0E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CD0E:
lda Zp3D ; CPU:$CD0E PRG:4D0E A5 3D
beq Sub_Loop374 ; CPU:$CD10 PRG:4D10 F0 03
jmp Sub_D2FF ; CPU:$CD12 PRG:4D12 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop374
; Global: Branch target inside Sub: taken when Loop374.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop374:
lda #$00 ; CPU:$CD15 PRG:4D15 A9 00
sta Zp9F ; CPU:$CD17 PRG:4D17 85 9F
lda Zp95 ; CPU:$CD19 PRG:4D19 A5 95
clc ; CPU:$CD1B PRG:4D1B 18
adc #$10 ; CPU:$CD1C PRG:4D1C 69 10
sta Zp95 ; CPU:$CD1E PRG:4D1E 85 95
lda #$10 ; CPU:$CD20 PRG:4D20 A9 10
ldx Zp1D ; CPU:$CD22 PRG:4D22 A6 1D
beq Sub_Loop375 ; CPU:$CD24 PRG:4D24 F0 02
eor #$FF ; CPU:$CD26 PRG:4D26 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop375
; Global: Branch target inside Sub: taken when Loop375.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop375:
sta Zp1E ; CPU:$CD28 PRG:4D28 85 1E
lda SpriteX ; CPU:$CD2A PRG:4D2A A5 96
clc ; CPU:$CD2C PRG:4D2C 18
adc Zp1E ; CPU:$CD2D PRG:4D2D 65 1E
sta SpriteX ; CPU:$CD2F PRG:4D2F 85 96
lda #$04 ; CPU:$CD31 PRG:4D31 A9 04
jsr Sub_F036 ; CPU:$CD33 PRG:4D33 20 36 F0
jmp Sub_D18E ; CPU:$CD36 PRG:4D36 4C 8E D1
; -----------------------------------------------------------------------------
; Routine: Label_CD39
; Global: Branch target inside Label: taken when CD39.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_CD39:
lda Zp3C ; CPU:$CD39 PRG:4D39 A5 3C
cmp #$01 ; CPU:$CD3B PRG:4D3B C9 01
beq Sub_Loop377 ; CPU:$CD3D PRG:4D3D F0 24
cmp #$02 ; CPU:$CD3F PRG:4D3F C9 02
beq Sub_Loop379 ; CPU:$CD41 PRG:4D41 F0 3C
lda Zp95 ; CPU:$CD43 PRG:4D43 A5 95
sec ; CPU:$CD45 PRG:4D45 38
sbc #$08 ; CPU:$CD46 PRG:4D46 E9 08
sta Zp97 ; CPU:$CD48 PRG:4D48 85 97
lda #$08 ; CPU:$CD4A PRG:4D4A A9 08
ldx Zp1D ; CPU:$CD4C PRG:4D4C A6 1D
beq Sub_Loop376 ; CPU:$CD4E PRG:4D4E F0 02
eor #$FF ; CPU:$CD50 PRG:4D50 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop376
; Global: Branch target inside Sub: taken when Loop376.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop376:
sta Zp1E ; CPU:$CD52 PRG:4D52 85 1E
lda SpriteX ; CPU:$CD54 PRG:4D54 A5 96
sec ; CPU:$CD56 PRG:4D56 38
sbc Zp1E ; CPU:$CD57 PRG:4D57 E5 1E
sta SpriteY ; CPU:$CD59 PRG:4D59 85 98
lda #$05 ; CPU:$CD5B PRG:4D5B A9 05
jsr Sub_F03D ; CPU:$CD5D PRG:4D5D 20 3D F0
jmp Sub_D2E2 ; CPU:$CD60 PRG:4D60 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop377
; Global: Branch target inside Sub: taken when Loop377.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop377:
lda Zp3D ; CPU:$CD63 PRG:4D63 A5 3D
beq Sub_Loop378 ; CPU:$CD65 PRG:4D65 F0 03
jmp Sub_D2FF ; CPU:$CD67 PRG:4D67 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop378
; Global: Branch target inside Sub: taken when Loop378.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop378:
lda SpriteX ; CPU:$CD6A PRG:4D6A A5 96
sta SpriteY ; CPU:$CD6C PRG:4D6C 85 98
lda Zp95 ; CPU:$CD6E PRG:4D6E A5 95
sec ; CPU:$CD70 PRG:4D70 38
sbc #$30 ; CPU:$CD71 PRG:4D71 E9 30
sta Zp95 ; CPU:$CD73 PRG:4D73 85 95
sec ; CPU:$CD75 PRG:4D75 38
sbc #$18 ; CPU:$CD76 PRG:4D76 E9 18
sta Zp97 ; CPU:$CD78 PRG:4D78 85 97
lda #$10 ; CPU:$CD7A PRG:4D7A A9 10
jmp Sub_D2E4 ; CPU:$CD7C PRG:4D7C 4C E4 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop379
; Global: Branch target inside Sub: taken when Loop379.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop379:
lda Zp3D ; CPU:$CD7F PRG:4D7F A5 3D
beq Sub_Loop380 ; CPU:$CD81 PRG:4D81 F0 03
jmp Sub_D2FF ; CPU:$CD83 PRG:4D83 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop380
; Global: Branch target inside Sub: taken when Loop380.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop380:
lda #$00 ; CPU:$CD86 PRG:4D86 A9 00
sta Zp9F ; CPU:$CD88 PRG:4D88 85 9F
lda Zp1C ; CPU:$CD8A PRG:4D8A A5 1C
bne Sub_Loop384 ; CPU:$CD8C PRG:4D8C D0 54
lda Zp95 ; CPU:$CD8E PRG:4D8E A5 95
clc ; CPU:$CD90 PRG:4D90 18
adc #$40 ; CPU:$CD91 PRG:4D91 69 40
sta Zp95 ; CPU:$CD93 PRG:4D93 85 95
sta Zp97 ; CPU:$CD95 PRG:4D95 85 97
lda GameState ; CPU:$CD97 PRG:4D97 A5 36
bpl Sub_Loop382 ; CPU:$CD99 PRG:4D99 10 22
lda Zp1D ; CPU:$CD9B PRG:4D9B A5 1D
bne Sub_Loop381 ; CPU:$CD9D PRG:4D9D D0 0D
lda SpriteX ; CPU:$CD9F PRG:4D9F A5 96
cmp #$B0 ; CPU:$CDA1 PRG:4DA1 C9 B0
bcc Sub_Loop382 ; CPU:$CDA3 PRG:4DA3 90 18
ldx #$C8 ; CPU:$CDA5 PRG:4DA5 A2 C8
ldy #$E8 ; CPU:$CDA7 PRG:4DA7 A0 E8
jmp Sub_CDB6 ; CPU:$CDA9 PRG:4DA9 4C B6 CD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop381
; Global: Branch target inside Sub: taken when Loop381.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop381:
lda SpriteX ; CPU:$CDAC PRG:4DAC A5 96
cmp #$40 ; CPU:$CDAE PRG:4DAE C9 40
bcs Sub_Loop382 ; CPU:$CDB0 PRG:4DB0 B0 0B
ldx #$28 ; CPU:$CDB2 PRG:4DB2 A2 28
ldy #$08 ; CPU:$CDB4 PRG:4DB4 A0 08
; -----------------------------------------------------------------------------
; Routine: Sub_CDB6
; Global: Branch target inside Sub: taken when CDB6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CDB6:
stx SpriteX ; CPU:$CDB6 PRG:4DB6 86 96
sty SpriteY ; CPU:$CDB8 PRG:4DB8 84 98
jmp Sub_CE34 ; CPU:$CDBA PRG:4DBA 4C 34 CE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop382
; Global: Branch target inside Sub: taken when Loop382.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop382:
ldx #$18 ; CPU:$CDBD PRG:4DBD A2 18
ldy #$38 ; CPU:$CDBF PRG:4DBF A0 38
lda Zp1D ; CPU:$CDC1 PRG:4DC1 A5 1D
beq Sub_Loop383 ; CPU:$CDC3 PRG:4DC3 F0 08
txa ; CPU:$CDC5 PRG:4DC5 8A
eor #$FF ; CPU:$CDC6 PRG:4DC6 49 FF
tax ; CPU:$CDC8 PRG:4DC8 AA
tya ; CPU:$CDC9 PRG:4DC9 98
eor #$FF ; CPU:$CDCA PRG:4DCA 49 FF
tay ; CPU:$CDCC PRG:4DCC A8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop383
; Global: Branch target inside Sub: taken when Loop383.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop383:
stx Zp1E ; CPU:$CDCD PRG:4DCD 86 1E
lda SpriteX ; CPU:$CDCF PRG:4DCF A5 96
clc ; CPU:$CDD1 PRG:4DD1 18
adc Zp1E ; CPU:$CDD2 PRG:4DD2 65 1E
sta SpriteX ; CPU:$CDD4 PRG:4DD4 85 96
sty Zp1E ; CPU:$CDD6 PRG:4DD6 84 1E
lda SpriteY ; CPU:$CDD8 PRG:4DD8 A5 98
clc ; CPU:$CDDA PRG:4DDA 18
adc Zp1E ; CPU:$CDDB PRG:4DDB 65 1E
sta SpriteY ; CPU:$CDDD PRG:4DDD 85 98
jmp Sub_CE34 ; CPU:$CDDF PRG:4DDF 4C 34 CE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop384
; Global: Branch target inside Sub: taken when Loop384.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop384:
lda Zp97 ; CPU:$CDE2 PRG:4DE2 A5 97
clc ; CPU:$CDE4 PRG:4DE4 18
adc #$40 ; CPU:$CDE5 PRG:4DE5 69 40
sta Zp97 ; CPU:$CDE7 PRG:4DE7 85 97
sta Zp95 ; CPU:$CDE9 PRG:4DE9 85 95
lda GameState ; CPU:$CDEB PRG:4DEB A5 36
bpl Sub_Loop386 ; CPU:$CDED PRG:4DED 10 22
lda Zp1D ; CPU:$CDEF PRG:4DEF A5 1D
bne Sub_Loop385 ; CPU:$CDF1 PRG:4DF1 D0 0D
lda SpriteY ; CPU:$CDF3 PRG:4DF3 A5 98
cmp #$40 ; CPU:$CDF5 PRG:4DF5 C9 40
bcs Sub_Loop386 ; CPU:$CDF7 PRG:4DF7 B0 18
ldx #$28 ; CPU:$CDF9 PRG:4DF9 A2 28
ldy #$08 ; CPU:$CDFB PRG:4DFB A0 08
jmp Sub_CE0A ; CPU:$CDFD PRG:4DFD 4C 0A CE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop385
; Global: Branch target inside Sub: taken when Loop385.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop385:
lda SpriteY ; CPU:$CE00 PRG:4E00 A5 98
cmp #$B0 ; CPU:$CE02 PRG:4E02 C9 B0
bcc Sub_Loop386 ; CPU:$CE04 PRG:4E04 90 0B
ldx #$C8 ; CPU:$CE06 PRG:4E06 A2 C8
ldy #$E8 ; CPU:$CE08 PRG:4E08 A0 E8
; -----------------------------------------------------------------------------
; Routine: Sub_CE0A
; Global: Branch target inside Sub: taken when CE0A.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CE0A:
stx SpriteY ; CPU:$CE0A PRG:4E0A 86 98
sty SpriteX ; CPU:$CE0C PRG:4E0C 84 96
jmp Sub_CE34 ; CPU:$CE0E PRG:4E0E 4C 34 CE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop386
; Global: Branch target inside Sub: taken when Loop386.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop386:
lda Zp1D ; CPU:$CE11 PRG:4E11 A5 1D
bne Sub_Loop387 ; CPU:$CE13 PRG:4E13 D0 11
lda SpriteY ; CPU:$CE15 PRG:4E15 A5 98
sec ; CPU:$CE17 PRG:4E17 38
sbc #$18 ; CPU:$CE18 PRG:4E18 E9 18
sta SpriteY ; CPU:$CE1A PRG:4E1A 85 98
lda SpriteX ; CPU:$CE1C PRG:4E1C A5 96
sec ; CPU:$CE1E PRG:4E1E 38
sbc #$38 ; CPU:$CE1F PRG:4E1F E9 38
sta SpriteX ; CPU:$CE21 PRG:4E21 85 96
jmp Sub_CE34 ; CPU:$CE23 PRG:4E23 4C 34 CE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop387
; Global: Branch target inside Sub: taken when Loop387.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop387:
lda SpriteY ; CPU:$CE26 PRG:4E26 A5 98
clc ; CPU:$CE28 PRG:4E28 18
adc #$18 ; CPU:$CE29 PRG:4E29 69 18
sta SpriteY ; CPU:$CE2B PRG:4E2B 85 98
lda SpriteX ; CPU:$CE2D PRG:4E2D A5 96
clc ; CPU:$CE2F PRG:4E2F 18
adc #$38 ; CPU:$CE30 PRG:4E30 69 38
sta SpriteX ; CPU:$CE32 PRG:4E32 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_CE34
; Global: Branch target inside Sub: taken when CE34.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CE34:
lda #$04 ; CPU:$CE34 PRG:4E34 A9 04
jsr Sub_F036 ; CPU:$CE36 PRG:4E36 20 36 F0
jmp Sub_D18E ; CPU:$CE39 PRG:4E39 4C 8E D1
; -----------------------------------------------------------------------------
; Routine: Label_CE3C
; Global: Branch target inside Label: taken when CE3C.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_CE3C:
lda Zp3C ; CPU:$CE3C PRG:4E3C A5 3C
cmp #$01 ; CPU:$CE3E PRG:4E3E C9 01
beq Sub_Loop389 ; CPU:$CE40 PRG:4E40 F0 24
cmp #$02 ; CPU:$CE42 PRG:4E42 C9 02
beq Sub_Loop392 ; CPU:$CE44 PRG:4E44 F0 46
lda Zp95 ; CPU:$CE46 PRG:4E46 A5 95
clc ; CPU:$CE48 PRG:4E48 18
adc #$10 ; CPU:$CE49 PRG:4E49 69 10
sta Zp97 ; CPU:$CE4B PRG:4E4B 85 97
lda #$08 ; CPU:$CE4D PRG:4E4D A9 08
ldx Zp1D ; CPU:$CE4F PRG:4E4F A6 1D
beq Sub_Loop388 ; CPU:$CE51 PRG:4E51 F0 02
eor #$FF ; CPU:$CE53 PRG:4E53 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop388
; Global: Branch target inside Sub: taken when Loop388.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop388:
sta Zp1E ; CPU:$CE55 PRG:4E55 85 1E
lda SpriteX ; CPU:$CE57 PRG:4E57 A5 96
sec ; CPU:$CE59 PRG:4E59 38
sbc Zp1E ; CPU:$CE5A PRG:4E5A E5 1E
sta SpriteY ; CPU:$CE5C PRG:4E5C 85 98
lda #$04 ; CPU:$CE5E PRG:4E5E A9 04
jsr Sub_F036 ; CPU:$CE60 PRG:4E60 20 36 F0
jmp Sub_D2E2 ; CPU:$CE63 PRG:4E63 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop389
; Global: Branch target inside Sub: taken when Loop389.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop389:
lda Zp3D ; CPU:$CE66 PRG:4E66 A5 3D
beq Sub_Loop390 ; CPU:$CE68 PRG:4E68 F0 03
jmp Sub_D2FF ; CPU:$CE6A PRG:4E6A 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop390
; Global: Branch target inside Sub: taken when Loop390.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop390:
lda Zp95 ; CPU:$CE6D PRG:4E6D A5 95
sta Zp97 ; CPU:$CE6F PRG:4E6F 85 97
ldx Zp1D ; CPU:$CE71 PRG:4E71 A6 1D
beq Sub_Loop391 ; CPU:$CE73 PRG:4E73 F0 08
lda SpriteX ; CPU:$CE75 PRG:4E75 A5 96
clc ; CPU:$CE77 PRG:4E77 18
adc #$10 ; CPU:$CE78 PRG:4E78 69 10
jmp Sub_CE82 ; CPU:$CE7A PRG:4E7A 4C 82 CE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop391
; Global: Branch target inside Sub: taken when Loop391.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop391:
lda SpriteX ; CPU:$CE7D PRG:4E7D A5 96
sec ; CPU:$CE7F PRG:4E7F 38
sbc #$10 ; CPU:$CE80 PRG:4E80 E9 10
; -----------------------------------------------------------------------------
; Routine: Sub_CE82
; Global: Branch target inside Sub: taken when CE82.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CE82:
sta SpriteY ; CPU:$CE82 PRG:4E82 85 98
lda #$05 ; CPU:$CE84 PRG:4E84 A9 05
jsr Sub_F03D ; CPU:$CE86 PRG:4E86 20 3D F0
jmp Sub_D2E2 ; CPU:$CE89 PRG:4E89 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop392
; Global: Branch target inside Sub: taken when Loop392.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop392:
ldx WrestlerIndex2 ; CPU:$CE8C PRG:4E8C A6 86
lda Zp1C ; CPU:$CE8E PRG:4E8E A5 1C
beq Sub_Loop393 ; CPU:$CE90 PRG:4E90 F0 02
ldx WrestlerIndex ; CPU:$CE92 PRG:4E92 A6 85
; -----------------------------------------------------------------------------
; Routine: Sub_Loop393
; Global: Branch target inside Sub: taken when Loop393.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop393:
lda Zp35,x ; CPU:$CE94 PRG:4E94 B5 35
bne Sub_Loop395 ; CPU:$CE96 PRG:4E96 D0 0C
lda Zp3D ; CPU:$CE98 PRG:4E98 A5 3D
cmp #$00 ; CPU:$CE9A PRG:4E9A C9 00
beq Sub_Loop394 ; CPU:$CE9C PRG:4E9C F0 03
jmp Sub_D2FF ; CPU:$CE9E PRG:4E9E 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop394
; Global: Branch target inside Sub: taken when Loop394.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop394:
jmp Sub_D304 ; CPU:$CEA1 PRG:4EA1 4C 04 D3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop395
; Global: Branch target inside Sub: taken when Loop395.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop395:
lda ZpA2 ; CPU:$CEA4 PRG:4EA4 A5 A2
bmi Sub_Loop403 ; CPU:$CEA6 PRG:4EA6 30 57
and #$01 ; CPU:$CEA8 PRG:4EA8 29 01
bne Sub_Loop400 ; CPU:$CEAA PRG:4EAA D0 3E
ldx Zp18 ; CPU:$CEAC PRG:4EAC A6 18
lda Zp1C ; CPU:$CEAE PRG:4EAE A5 1C
bne Sub_Loop396 ; CPU:$CEB0 PRG:4EB0 D0 08
lda Zp7B ; CPU:$CEB2 PRG:4EB2 A5 7B
and #$20 ; CPU:$CEB4 PRG:4EB4 29 20
beq Sub_Loop397 ; CPU:$CEB6 PRG:4EB6 F0 0B
ldx Zp19 ; CPU:$CEB8 PRG:4EB8 A6 19
; -----------------------------------------------------------------------------
; Routine: Sub_Loop396
; Global: Branch target inside Sub: taken when Loop396.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop396:
lda Zp7B ; CPU:$CEBA PRG:4EBA A5 7B
bmi Sub_Loop400 ; CPU:$CEBC PRG:4EBC 30 2C
txa ; CPU:$CEBE PRG:4EBE 8A
and #$01 ; CPU:$CEBF PRG:4EBF 29 01
beq Sub_Loop400 ; CPU:$CEC1 PRG:4EC1 F0 27
; -----------------------------------------------------------------------------
; Routine: Sub_Loop397
; Global: Branch target inside Sub: taken when Loop397.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop397:
lda #$13 ; CPU:$CEC3 PRG:4EC3 A9 13
cmp WrestlerIndex ; CPU:$CEC5 PRG:4EC5 C5 85
bne Sub_Loop398 ; CPU:$CEC7 PRG:4EC7 D0 02
lda #$18 ; CPU:$CEC9 PRG:4EC9 A9 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop398
; Global: Branch target inside Sub: taken when Loop398.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop398:
ldx Zp1C ; CPU:$CECB PRG:4ECB A6 1C
bne Sub_Loop399 ; CPU:$CECD PRG:4ECD D0 08
lda #$23 ; CPU:$CECF PRG:4ECF A9 23
cmp WrestlerIndex2 ; CPU:$CED1 PRG:4ED1 C5 86
bne Sub_Loop399 ; CPU:$CED3 PRG:4ED3 D0 02
lda #$28 ; CPU:$CED5 PRG:4ED5 A9 28
; -----------------------------------------------------------------------------
; Routine: Sub_Loop399
; Global: Branch target inside Sub: taken when Loop399.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop399:
tax ; CPU:$CED7 PRG:4ED7 AA
lda PlayerTile,x ; CPU:$CED8 PRG:4ED8 B5 32
and #$C0 ; CPU:$CEDA PRG:4EDA 29 C0
ora #$03 ; CPU:$CEDC PRG:4EDC 09 03
sta PlayerTile,x ; CPU:$CEDE PRG:4EDE 95 32
lda #$10 ; CPU:$CEE0 PRG:4EE0 A9 10
sta GameState,x ; CPU:$CEE2 PRG:4EE2 95 36
lda #$01 ; CPU:$CEE4 PRG:4EE4 A9 01
ora ZpA2 ; CPU:$CEE6 PRG:4EE6 05 A2
sta ZpA2 ; CPU:$CEE8 PRG:4EE8 85 A2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop400
; Global: Branch target inside Sub: taken when Loop400.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop400:
lda Zp35 ; CPU:$CEEA PRG:4EEA A5 35
bne Sub_Loop402 ; CPU:$CEEC PRG:4EEC D0 0E
ldx WrestlerIndex2 ; CPU:$CEEE PRG:4EEE A6 86
lda Zp1C ; CPU:$CEF0 PRG:4EF0 A5 1C
beq Sub_Loop401 ; CPU:$CEF2 PRG:4EF2 F0 02
ldx WrestlerIndex ; CPU:$CEF4 PRG:4EF4 A6 85
; -----------------------------------------------------------------------------
; Routine: Sub_Loop401
; Global: Branch target inside Sub: taken when Loop401.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop401:
lda Zp35,x ; CPU:$CEF6 PRG:4EF6 B5 35
beq Sub_Loop402 ; CPU:$CEF8 PRG:4EF8 F0 02
dec Zp35,x ; CPU:$CEFA PRG:4EFA D6 35
; -----------------------------------------------------------------------------
; Routine: Sub_Loop402
; Global: Branch target inside Sub: taken when Loop402.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop402:
jmp Sub_D332 ; CPU:$CEFC PRG:4EFC 4C 32 D3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop403
; Global: Branch target inside Sub: taken when Loop403.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop403:
lda #$04 ; CPU:$CEFF PRG:4EFF A9 04
jsr Sub_F036 ; CPU:$CF01 PRG:4F01 20 36 F0
lda Zp21 ; CPU:$CF04 PRG:4F04 A5 21
cmp #$06 ; CPU:$CF06 PRG:4F06 C9 06
beq Sub_Loop408 ; CPU:$CF08 PRG:4F08 F0 41
cmp #$0B ; CPU:$CF0A PRG:4F0A C9 0B
bne Sub_Loop404 ; CPU:$CF0C PRG:4F0C D0 03
jmp Sub_CF67 ; CPU:$CF0E PRG:4F0E 4C 67 CF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop404
; Global: Branch target inside Sub: taken when Loop404.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop404:
lda Zp1C ; CPU:$CF11 PRG:4F11 A5 1C
bne Sub_Loop406 ; CPU:$CF13 PRG:4F13 D0 1B
lda Zp95 ; CPU:$CF15 PRG:4F15 A5 95
clc ; CPU:$CF17 PRG:4F17 18
adc #$10 ; CPU:$CF18 PRG:4F18 69 10
sta Zp97 ; CPU:$CF1A PRG:4F1A 85 97
lda #$18 ; CPU:$CF1C PRG:4F1C A9 18
ldx Zp1D ; CPU:$CF1E PRG:4F1E A6 1D
beq Sub_Loop405 ; CPU:$CF20 PRG:4F20 F0 02
eor #$FF ; CPU:$CF22 PRG:4F22 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop405
; Global: Branch target inside Sub: taken when Loop405.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop405:
sta Zp1E ; CPU:$CF24 PRG:4F24 85 1E
lda SpriteX ; CPU:$CF26 PRG:4F26 A5 96
sec ; CPU:$CF28 PRG:4F28 38
sbc Zp1E ; CPU:$CF29 PRG:4F29 E5 1E
sta SpriteY ; CPU:$CF2B PRG:4F2B 85 98
jmp Sub_CF48 ; CPU:$CF2D PRG:4F2D 4C 48 CF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop406
; Global: Branch target inside Sub: taken when Loop406.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop406:
lda Zp97 ; CPU:$CF30 PRG:4F30 A5 97
clc ; CPU:$CF32 PRG:4F32 18
adc #$10 ; CPU:$CF33 PRG:4F33 69 10
sta Zp95 ; CPU:$CF35 PRG:4F35 85 95
lda #$18 ; CPU:$CF37 PRG:4F37 A9 18
ldx Zp1D ; CPU:$CF39 PRG:4F39 A6 1D
beq Sub_Loop407 ; CPU:$CF3B PRG:4F3B F0 02
eor #$FF ; CPU:$CF3D PRG:4F3D 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop407
; Global: Branch target inside Sub: taken when Loop407.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop407:
sta Zp1E ; CPU:$CF3F PRG:4F3F 85 1E
lda SpriteY ; CPU:$CF41 PRG:4F41 A5 98
clc ; CPU:$CF43 PRG:4F43 18
adc Zp1E ; CPU:$CF44 PRG:4F44 65 1E
sta SpriteX ; CPU:$CF46 PRG:4F46 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_CF48
; Global: Branch target inside Sub: taken when CF48.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CF48:
jmp Sub_CF6E ; CPU:$CF48 PRG:4F48 4C 6E CF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop408
; Global: Branch target inside Sub: taken when Loop408.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop408:
lda #$00 ; CPU:$CF4B PRG:4F4B A9 00
sta Zp9F ; CPU:$CF4D PRG:4F4D 85 9F
lda Zp1C ; CPU:$CF4F PRG:4F4F A5 1C
bne Sub_Loop409 ; CPU:$CF51 PRG:4F51 D0 0A
lda Zp95 ; CPU:$CF53 PRG:4F53 A5 95
clc ; CPU:$CF55 PRG:4F55 18
adc #$10 ; CPU:$CF56 PRG:4F56 69 10
sta Zp97 ; CPU:$CF58 PRG:4F58 85 97
jmp Sub_CF64 ; CPU:$CF5A PRG:4F5A 4C 64 CF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop409
; Global: Branch target inside Sub: taken when Loop409.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop409:
lda Zp97 ; CPU:$CF5D PRG:4F5D A5 97
clc ; CPU:$CF5F PRG:4F5F 18
adc #$10 ; CPU:$CF60 PRG:4F60 69 10
sta Zp95 ; CPU:$CF62 PRG:4F62 85 95
; -----------------------------------------------------------------------------
; Routine: Sub_CF64
; Global: Branch target inside Sub: taken when CF64.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CF64:
jmp Sub_CF6E ; CPU:$CF64 PRG:4F64 4C 6E CF
; -----------------------------------------------------------------------------
; Routine: Sub_CF67
; Global: Branch target inside Sub: taken when CF67.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CF67:
lda Zp95 ; CPU:$CF67 PRG:4F67 A5 95
clc ; CPU:$CF69 PRG:4F69 18
adc #$10 ; CPU:$CF6A PRG:4F6A 69 10
sta Zp97 ; CPU:$CF6C PRG:4F6C 85 97
; -----------------------------------------------------------------------------
; Routine: Sub_CF6E
; Global: Branch target inside Sub: taken when CF6E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CF6E:
jmp Sub_D18E ; CPU:$CF6E PRG:4F6E 4C 8E D1
; -----------------------------------------------------------------------------
; Routine: Label_CF71
; Global: Branch target inside Label: taken when CF71.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_CF71:
lda Zp3C ; CPU:$CF71 PRG:4F71 A5 3C
cmp #$01 ; CPU:$CF73 PRG:4F73 C9 01
beq Sub_Loop414 ; CPU:$CF75 PRG:4F75 F0 33
cmp #$02 ; CPU:$CF77 PRG:4F77 C9 02
bne Sub_Loop410 ; CPU:$CF79 PRG:4F79 D0 03
jmp Sub_D031 ; CPU:$CF7B PRG:4F7B 4C 31 D0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop410
; Global: Branch target inside Sub: taken when Loop410.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop410:
lda Zp1C ; CPU:$CF7E PRG:4F7E A5 1C
bne Sub_Loop412 ; CPU:$CF80 PRG:4F80 D0 14
lda #$08 ; CPU:$CF82 PRG:4F82 A9 08
ldx Zp1D ; CPU:$CF84 PRG:4F84 A6 1D
beq Sub_Loop411 ; CPU:$CF86 PRG:4F86 F0 02
eor #$FF ; CPU:$CF88 PRG:4F88 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop411
; Global: Branch target inside Sub: taken when Loop411.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop411:
sta Zp1E ; CPU:$CF8A PRG:4F8A 85 1E
lda SpriteX ; CPU:$CF8C PRG:4F8C A5 96
sec ; CPU:$CF8E PRG:4F8E 38
sbc Zp1E ; CPU:$CF8F PRG:4F8F E5 1E
sta SpriteY ; CPU:$CF91 PRG:4F91 85 98
jmp Sub_CFA7 ; CPU:$CF93 PRG:4F93 4C A7 CF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop412
; Global: Branch target inside Sub: taken when Loop412.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop412:
lda #$08 ; CPU:$CF96 PRG:4F96 A9 08
ldx Zp1D ; CPU:$CF98 PRG:4F98 A6 1D
beq Sub_Loop413 ; CPU:$CF9A PRG:4F9A F0 02
eor #$FF ; CPU:$CF9C PRG:4F9C 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop413
; Global: Branch target inside Sub: taken when Loop413.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop413:
sta Zp1E ; CPU:$CF9E PRG:4F9E 85 1E
lda SpriteY ; CPU:$CFA0 PRG:4FA0 A5 98
clc ; CPU:$CFA2 PRG:4FA2 18
adc Zp1E ; CPU:$CFA3 PRG:4FA3 65 1E
sta SpriteX ; CPU:$CFA5 PRG:4FA5 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_CFA7
; Global: Branch target inside Sub: taken when CFA7.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_CFA7:
jmp Sub_D2E2 ; CPU:$CFA7 PRG:4FA7 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop414
; Global: Branch target inside Sub: taken when Loop414.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop414:
lda Zp1C ; CPU:$CFAA PRG:4FAA A5 1C
bne Sub_Loop418 ; CPU:$CFAC PRG:4FAC D0 41
lda SpriteX ; CPU:$CFAE PRG:4FAE A5 96
cmp #$2C ; CPU:$CFB0 PRG:4FB0 C9 2C
bcs Sub_Loop415 ; CPU:$CFB2 PRG:4FB2 B0 11
lda #$24 ; CPU:$CFB4 PRG:4FB4 A9 24
sta SpriteX ; CPU:$CFB6 PRG:4FB6 85 96
lda #$18 ; CPU:$CFB8 PRG:4FB8 A9 18
sta SpriteY ; CPU:$CFBA PRG:4FBA 85 98
lda Zp3B ; CPU:$CFBC PRG:4FBC A5 3B
and #$BF ; CPU:$CFBE PRG:4FBE 29 BF
sta Zp3B ; CPU:$CFC0 PRG:4FC0 85 3B
jmp Sub_D02E ; CPU:$CFC2 PRG:4FC2 4C 2E D0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop415
; Global: Branch target inside Sub: taken when Loop415.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop415:
cmp #$C4 ; CPU:$CFC5 PRG:4FC5 C9 C4
bcc Sub_Loop416 ; CPU:$CFC7 PRG:4FC7 90 11
lda #$CC ; CPU:$CFC9 PRG:4FC9 A9 CC
sta SpriteX ; CPU:$CFCB PRG:4FCB 85 96
lda #$D4 ; CPU:$CFCD PRG:4FCD A9 D4
sta SpriteY ; CPU:$CFCF PRG:4FCF 85 98
lda Zp3B ; CPU:$CFD1 PRG:4FD1 A5 3B
ora #$40 ; CPU:$CFD3 PRG:4FD3 09 40
sta Zp3B ; CPU:$CFD5 PRG:4FD5 85 3B
jmp Sub_D02E ; CPU:$CFD7 PRG:4FD7 4C 2E D0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop416
; Global: Branch target inside Sub: taken when Loop416.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop416:
dec SpriteX ; CPU:$CFDA PRG:4FDA C6 96
dec SpriteY ; CPU:$CFDC PRG:4FDC C6 98
lda Zp3B ; CPU:$CFDE PRG:4FDE A5 3B
and #$40 ; CPU:$CFE0 PRG:4FE0 29 40
beq Sub_Loop417 ; CPU:$CFE2 PRG:4FE2 F0 08
inc SpriteX ; CPU:$CFE4 PRG:4FE4 E6 96
inc SpriteX ; CPU:$CFE6 PRG:4FE6 E6 96
inc SpriteY ; CPU:$CFE8 PRG:4FE8 E6 98
inc SpriteY ; CPU:$CFEA PRG:4FEA E6 98
; -----------------------------------------------------------------------------
; Routine: Sub_Loop417
; Global: Branch target inside Sub: taken when Loop417.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop417:
jmp Sub_D2E8 ; CPU:$CFEC PRG:4FEC 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop418
; Global: Branch target inside Sub: taken when Loop418.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop418:
lda SpriteY ; CPU:$CFEF PRG:4FEF A5 98
cmp #$2C ; CPU:$CFF1 PRG:4FF1 C9 2C
bcs Sub_Loop419 ; CPU:$CFF3 PRG:4FF3 B0 11
lda #$24 ; CPU:$CFF5 PRG:4FF5 A9 24
sta SpriteY ; CPU:$CFF7 PRG:4FF7 85 98
lda #$18 ; CPU:$CFF9 PRG:4FF9 A9 18
sta SpriteX ; CPU:$CFFB PRG:4FFB 85 96
lda Zp3B ; CPU:$CFFD PRG:4FFD A5 3B
ora #$40 ; CPU:$CFFF PRG:4FFF 09 40
sta Zp3B ; CPU:$D001 PRG:5001 85 3B
jmp Sub_D02E ; CPU:$D003 PRG:5003 4C 2E D0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop419
; Global: Branch target inside Sub: taken when Loop419.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop419:
cmp #$C4 ; CPU:$D006 PRG:5006 C9 C4
bcc Sub_Loop420 ; CPU:$D008 PRG:5008 90 11
lda #$CC ; CPU:$D00A PRG:500A A9 CC
sta SpriteY ; CPU:$D00C PRG:500C 85 98
lda #$D4 ; CPU:$D00E PRG:500E A9 D4
sta SpriteX ; CPU:$D010 PRG:5010 85 96
lda Zp3B ; CPU:$D012 PRG:5012 A5 3B
and #$BF ; CPU:$D014 PRG:5014 29 BF
sta Zp3B ; CPU:$D016 PRG:5016 85 3B
jmp Sub_D02E ; CPU:$D018 PRG:5018 4C 2E D0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop420
; Global: Branch target inside Sub: taken when Loop420.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop420:
inc SpriteX ; CPU:$D01B PRG:501B E6 96
inc SpriteY ; CPU:$D01D PRG:501D E6 98
lda Zp1D ; CPU:$D01F PRG:501F A5 1D
beq Sub_Loop421 ; CPU:$D021 PRG:5021 F0 08
dec SpriteX ; CPU:$D023 PRG:5023 C6 96
dec SpriteX ; CPU:$D025 PRG:5025 C6 96
dec SpriteY ; CPU:$D027 PRG:5027 C6 98
dec SpriteY ; CPU:$D029 PRG:5029 C6 98
; -----------------------------------------------------------------------------
; Routine: Sub_Loop421
; Global: Branch target inside Sub: taken when Loop421.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop421:
jmp Sub_D2E8 ; CPU:$D02B PRG:502B 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_D02E
; Global: Branch target inside Sub: taken when D02E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D02E:
jmp Sub_D2E2 ; CPU:$D02E PRG:502E 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_D031
; Global: Branch target inside Sub: taken when D031.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D031:
lda Zp3D ; CPU:$D031 PRG:5031 A5 3D
cmp #$20 ; CPU:$D033 PRG:5033 C9 20
bne Sub_Loop422 ; CPU:$D035 PRG:5035 D0 17
lda #$03 ; CPU:$D037 PRG:5037 A9 03
jsr Sub_F036 ; CPU:$D039 PRG:5039 20 36 F0
lda #$20 ; CPU:$D03C PRG:503C A9 20
jsr Sub_F227 ; CPU:$D03E PRG:503E 20 27 F2
lda #$04 ; CPU:$D041 PRG:5041 A9 04
jsr Sub_9BF6 ; CPU:$D043 PRG:5043 20 F6 9B
lda #$04 ; CPU:$D046 PRG:5046 A9 04
jsr Sub_F03D ; CPU:$D048 PRG:5048 20 3D F0
jmp Sub_D2FF ; CPU:$D04B PRG:504B 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop422
; Global: Branch target inside Sub: taken when Loop422.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop422:
cmp #$00 ; CPU:$D04E PRG:504E C9 00
beq Sub_Loop423 ; CPU:$D050 PRG:5050 F0 03
jmp Sub_D2FF ; CPU:$D052 PRG:5052 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop423
; Global: Branch target inside Sub: taken when Loop423.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop423:
lda Zp1C ; CPU:$D055 PRG:5055 A5 1C
bne Sub_Loop425 ; CPU:$D057 PRG:5057 D0 1B
lda Zp95 ; CPU:$D059 PRG:5059 A5 95
clc ; CPU:$D05B PRG:505B 18
adc #$10 ; CPU:$D05C PRG:505C 69 10
sta Zp97 ; CPU:$D05E PRG:505E 85 97
lda #$18 ; CPU:$D060 PRG:5060 A9 18
ldx Zp1D ; CPU:$D062 PRG:5062 A6 1D
beq Sub_Loop424 ; CPU:$D064 PRG:5064 F0 02
eor #$FF ; CPU:$D066 PRG:5066 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop424
; Global: Branch target inside Sub: taken when Loop424.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop424:
sta Zp1E ; CPU:$D068 PRG:5068 85 1E
lda SpriteX ; CPU:$D06A PRG:506A A5 96
sec ; CPU:$D06C PRG:506C 38
sbc Zp1E ; CPU:$D06D PRG:506D E5 1E
sta SpriteY ; CPU:$D06F PRG:506F 85 98
jmp Sub_D08C ; CPU:$D071 PRG:5071 4C 8C D0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop425
; Global: Branch target inside Sub: taken when Loop425.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop425:
lda Zp97 ; CPU:$D074 PRG:5074 A5 97
clc ; CPU:$D076 PRG:5076 18
adc #$10 ; CPU:$D077 PRG:5077 69 10
sta Zp95 ; CPU:$D079 PRG:5079 85 95
lda #$18 ; CPU:$D07B PRG:507B A9 18
ldx Zp1D ; CPU:$D07D PRG:507D A6 1D
beq Sub_Loop426 ; CPU:$D07F PRG:507F F0 02
eor #$FF ; CPU:$D081 PRG:5081 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop426
; Global: Branch target inside Sub: taken when Loop426.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop426:
sta Zp1E ; CPU:$D083 PRG:5083 85 1E
lda SpriteY ; CPU:$D085 PRG:5085 A5 98
clc ; CPU:$D087 PRG:5087 18
adc Zp1E ; CPU:$D088 PRG:5088 65 1E
sta SpriteX ; CPU:$D08A PRG:508A 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_D08C
; Global: Branch target inside Sub: taken when D08C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D08C:
jmp Sub_D18E ; CPU:$D08C PRG:508C 4C 8E D1
; -----------------------------------------------------------------------------
; Routine: Label_D08F
; Global: Branch target inside Label: taken when D08F.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_D08F:
lda Zp3C ; CPU:$D08F PRG:508F A5 3C
cmp #$01 ; CPU:$D091 PRG:5091 C9 01
beq Sub_Loop427 ; CPU:$D093 PRG:5093 F0 07
cmp #$02 ; CPU:$D095 PRG:5095 C9 02
beq Sub_Loop433 ; CPU:$D097 PRG:5097 F0 45
jmp Sub_D2E2 ; CPU:$D099 PRG:5099 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop427
; Global: Branch target inside Sub: taken when Loop427.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop427:
ldx #$10 ; CPU:$D09C PRG:509C A2 10
lda Zp1D ; CPU:$D09E PRG:509E A5 1D
bne Sub_Loop428 ; CPU:$D0A0 PRG:50A0 D0 02
ldx #$20 ; CPU:$D0A2 PRG:50A2 A2 20
; -----------------------------------------------------------------------------
; Routine: Sub_Loop428
; Global: Branch target inside Sub: taken when Loop428.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop428:
stx Zp1E ; CPU:$D0A4 PRG:50A4 86 1E
lda SpriteX ; CPU:$D0A6 PRG:50A6 A5 96
clc ; CPU:$D0A8 PRG:50A8 18
adc #$10 ; CPU:$D0A9 PRG:50A9 69 10
sec ; CPU:$D0AB PRG:50AB 38
sbc SpriteY ; CPU:$D0AC PRG:50AC E5 98
cmp Zp1E ; CPU:$D0AE PRG:50AE C5 1E
bcc Sub_Loop432 ; CPU:$D0B0 PRG:50B0 90 24
lda Zp1C ; CPU:$D0B2 PRG:50B2 A5 1C
bne Sub_Loop430 ; CPU:$D0B4 PRG:50B4 D0 10
lda SpriteX ; CPU:$D0B6 PRG:50B6 A5 96
cmp SpriteY ; CPU:$D0B8 PRG:50B8 C5 98
bcs Sub_Loop429 ; CPU:$D0BA PRG:50BA B0 05
inc SpriteX ; CPU:$D0BC PRG:50BC E6 96
jmp Sub_D2E8 ; CPU:$D0BE PRG:50BE 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop429
; Global: Branch target inside Sub: taken when Loop429.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop429:
dec SpriteX ; CPU:$D0C1 PRG:50C1 C6 96
jmp Sub_D2E8 ; CPU:$D0C3 PRG:50C3 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop430
; Global: Branch target inside Sub: taken when Loop430.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop430:
lda SpriteY ; CPU:$D0C6 PRG:50C6 A5 98
cmp SpriteX ; CPU:$D0C8 PRG:50C8 C5 96
bcs Sub_Loop431 ; CPU:$D0CA PRG:50CA B0 05
inc SpriteY ; CPU:$D0CC PRG:50CC E6 98
jmp Sub_D2E8 ; CPU:$D0CE PRG:50CE 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop431
; Global: Branch target inside Sub: taken when Loop431.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop431:
dec SpriteY ; CPU:$D0D1 PRG:50D1 C6 98
jmp Sub_D2E8 ; CPU:$D0D3 PRG:50D3 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop432
; Global: Branch target inside Sub: taken when Loop432.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop432:
lda #$0E ; CPU:$D0D6 PRG:50D6 A9 0E
jsr Sub_F036 ; CPU:$D0D8 PRG:50D8 20 36 F0
jmp Sub_D2E2 ; CPU:$D0DB PRG:50DB 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop433
; Global: Branch target inside Sub: taken when Loop433.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop433:
lda Zp3D ; CPU:$D0DE PRG:50DE A5 3D
beq Sub_Loop434 ; CPU:$D0E0 PRG:50E0 F0 03
jmp Sub_D2FF ; CPU:$D0E2 PRG:50E2 4C FF D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop434
; Global: Branch target inside Sub: taken when Loop434.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop434:
lda #$00 ; CPU:$D0E5 PRG:50E5 A9 00
sta ZpA1 ; CPU:$D0E7 PRG:50E7 85 A1
ldx #$60 ; CPU:$D0E9 PRG:50E9 A2 60
jsr Sub_EEC5 ; CPU:$D0EB PRG:50EB 20 C5 EE
lda Zp1C ; CPU:$D0EE PRG:50EE A5 1C
bne Sub_Loop436 ; CPU:$D0F0 PRG:50F0 D0 1B
lda Zp95 ; CPU:$D0F2 PRG:50F2 A5 95
clc ; CPU:$D0F4 PRG:50F4 18
adc #$10 ; CPU:$D0F5 PRG:50F5 69 10
sta Zp97 ; CPU:$D0F7 PRG:50F7 85 97
lda #$08 ; CPU:$D0F9 PRG:50F9 A9 08
ldx Zp1D ; CPU:$D0FB PRG:50FB A6 1D
beq Sub_Loop435 ; CPU:$D0FD PRG:50FD F0 02
eor #$FF ; CPU:$D0FF PRG:50FF 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop435
; Global: Branch target inside Sub: taken when Loop435.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop435:
sta Zp1E ; CPU:$D101 PRG:5101 85 1E
lda SpriteX ; CPU:$D103 PRG:5103 A5 96
sec ; CPU:$D105 PRG:5105 38
sbc Zp1E ; CPU:$D106 PRG:5106 E5 1E
sta SpriteY ; CPU:$D108 PRG:5108 85 98
jmp Sub_D125 ; CPU:$D10A PRG:510A 4C 25 D1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop436
; Global: Branch target inside Sub: taken when Loop436.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop436:
lda Zp97 ; CPU:$D10D PRG:510D A5 97
clc ; CPU:$D10F PRG:510F 18
adc #$10 ; CPU:$D110 PRG:5110 69 10
sta Zp95 ; CPU:$D112 PRG:5112 85 95
lda #$08 ; CPU:$D114 PRG:5114 A9 08
ldx Zp1D ; CPU:$D116 PRG:5116 A6 1D
beq Sub_Loop437 ; CPU:$D118 PRG:5118 F0 02
eor #$FF ; CPU:$D11A PRG:511A 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop437
; Global: Branch target inside Sub: taken when Loop437.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop437:
sta Zp1E ; CPU:$D11C PRG:511C 85 1E
lda SpriteY ; CPU:$D11E PRG:511E A5 98
clc ; CPU:$D120 PRG:5120 18
adc Zp1E ; CPU:$D121 PRG:5121 65 1E
sta SpriteX ; CPU:$D123 PRG:5123 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_D125
; Global: Branch target inside Sub: taken when D125.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D125:
lda #$04 ; CPU:$D125 PRG:5125 A9 04
jsr Sub_F036 ; CPU:$D127 PRG:5127 20 36 F0
jmp Sub_D18E ; CPU:$D12A PRG:512A 4C 8E D1
; -----------------------------------------------------------------------------
; Routine: Label_D12D
; Global: Branch target inside Label: taken when D12D.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_D12D:
lda Zp3C ; CPU:$D12D PRG:512D A5 3C
cmp #$01 ; CPU:$D12F PRG:512F C9 01
beq Sub_Loop438 ; CPU:$D131 PRG:5131 F0 15
cmp #$02 ; CPU:$D133 PRG:5133 C9 02
beq Sub_Loop442 ; CPU:$D135 PRG:5135 F0 3C
lda #$60 ; CPU:$D137 PRG:5137 A9 60
sta SpriteX ; CPU:$D139 PRG:5139 85 96
lda #$7E ; CPU:$D13B PRG:513B A9 7E
sta Zp95 ; CPU:$D13D PRG:513D 85 95
sta Zp97 ; CPU:$D13F PRG:513F 85 97
lda #$A0 ; CPU:$D141 PRG:5141 A9 A0
sta SpriteY ; CPU:$D143 PRG:5143 85 98
jmp Sub_D2E2 ; CPU:$D145 PRG:5145 4C E2 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop438
; Global: Branch target inside Sub: taken when Loop438.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop438:
lda #$00 ; CPU:$D148 PRG:5148 A9 00
sta Zp1E ; CPU:$D14A PRG:514A 85 1E
lda Zp41 ; CPU:$D14C PRG:514C A5 41
and #$20 ; CPU:$D14E PRG:514E 29 20
beq Sub_Loop439 ; CPU:$D150 PRG:5150 F0 0B
inc Zp95 ; CPU:$D152 PRG:5152 E6 95
lda Zp95 ; CPU:$D154 PRG:5154 A5 95
cmp #$B8 ; CPU:$D156 PRG:5156 C9 B8
bcc Sub_Loop439 ; CPU:$D158 PRG:5158 90 03
jmp Sub_Loop441 ; CPU:$D15A PRG:515A 4C 6E D1
; -----------------------------------------------------------------------------
; Routine: Sub_Loop439
; Global: Branch target inside Sub: taken when Loop439.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop439:
lda Zp41 ; CPU:$D15D PRG:515D A5 41
and #$10 ; CPU:$D15F PRG:515F 29 10
beq Sub_Loop440 ; CPU:$D161 PRG:5161 F0 08
inc Zp97 ; CPU:$D163 PRG:5163 E6 97
lda Zp97 ; CPU:$D165 PRG:5165 A5 97
cmp #$B8 ; CPU:$D167 PRG:5167 C9 B8
bcs Sub_Loop441 ; CPU:$D169 PRG:5169 B0 03
; -----------------------------------------------------------------------------
; Routine: Sub_Loop440
; Global: Branch target inside Sub: taken when Loop440.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop440:
jmp Sub_D2E8 ; CPU:$D16B PRG:516B 4C E8 D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop441
; Global: Branch target inside Sub: taken when Loop441.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop441:
lda #$04 ; CPU:$D16E PRG:516E A9 04
jsr Sub_F036 ; CPU:$D170 PRG:5170 20 36 F0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop442
; Global: Branch target inside Sub: taken when Loop442.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop442:
ldx #$00 ; CPU:$D173 PRG:5173 A2 00
lda Zp41 ; CPU:$D175 PRG:5175 A5 41
and #$20 ; CPU:$D177 PRG:5177 29 20
beq Sub_Loop443 ; CPU:$D179 PRG:5179 F0 02
ldx #$87 ; CPU:$D17B PRG:517B A2 87
; -----------------------------------------------------------------------------
; Routine: Sub_Loop443
; Global: Branch target inside Sub: taken when Loop443.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop443:
ldy #$00 ; CPU:$D17D PRG:517D A0 00
lda Zp41 ; CPU:$D17F PRG:517F A5 41
and #$10 ; CPU:$D181 PRG:5181 29 10
beq Sub_Loop444 ; CPU:$D183 PRG:5183 F0 02
; -----------------------------------------------------------------------------
; Routine: Label_D185
; Global: Branch target inside Label: taken when D185.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_D185:
ldy #$87 ; CPU:$D185 PRG:5185 A0 87
; -----------------------------------------------------------------------------
; Routine: Sub_Loop444
; Global: Branch target inside Sub: taken when Loop444.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop444:
stx Zp99 ; CPU:$D187 PRG:5187 86 99
sty Zp9A ; CPU:$D189 PRG:5189 84 9A
jmp Sub_D1D5 ; CPU:$D18B PRG:518B 4C D5 D1
; -----------------------------------------------------------------------------
; Routine: Sub_D18E
; Global: Branch target inside Sub: taken when D18E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D18E:
ldx #$00 ; CPU:$D18E PRG:518E A2 00
lda Zp1C ; CPU:$D190 PRG:5190 A5 1C
beq Sub_Loop445 ; CPU:$D192 PRG:5192 F0 02
ldx #$1C ; CPU:$D194 PRG:5194 A2 1C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop445
; Global: Branch target inside Sub: taken when Loop445.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop445:
stx Zp1E ; CPU:$D196 PRG:5196 86 1E
lda Zp21 ; CPU:$D198 PRG:5198 A5 21
asl a ; CPU:$D19A PRG:519A 0A
clc ; CPU:$D19B PRG:519B 18
adc Zp1E ; CPU:$D19C PRG:519C 65 1E
tax ; CPU:$D19E PRG:519E AA
lda $D449,x ; CPU:$D19F PRG:519F BD 49 D4
tay ; CPU:$D1A2 PRG:51A2 A8
lda $D44A,x ; CPU:$D1A3 PRG:51A3 BD 4A D4
tax ; CPU:$D1A6 PRG:51A6 AA
lda Zp1D ; CPU:$D1A7 PRG:51A7 A5 1D
beq Sub_Loop447 ; CPU:$D1A9 PRG:51A9 F0 26
txa ; CPU:$D1AB PRG:51AB 8A
and #$C0 ; CPU:$D1AC PRG:51AC 29 C0
beq Sub_Loop446 ; CPU:$D1AE PRG:51AE F0 0E
eor #$FF ; CPU:$D1B0 PRG:51B0 49 FF
ora #$80 ; CPU:$D1B2 PRG:51B2 09 80
and #$C0 ; CPU:$D1B4 PRG:51B4 29 C0
sta Zp1E ; CPU:$D1B6 PRG:51B6 85 1E
txa ; CPU:$D1B8 PRG:51B8 8A
and #$3F ; CPU:$D1B9 PRG:51B9 29 3F
ora Zp1E ; CPU:$D1BB PRG:51BB 05 1E
tax ; CPU:$D1BD PRG:51BD AA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop446
; Global: Branch target inside Sub: taken when Loop446.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop446:
tya ; CPU:$D1BE PRG:51BE 98
and #$C0 ; CPU:$D1BF PRG:51BF 29 C0
beq Sub_Loop447 ; CPU:$D1C1 PRG:51C1 F0 0E
eor #$FF ; CPU:$D1C3 PRG:51C3 49 FF
ora #$80 ; CPU:$D1C5 PRG:51C5 09 80
and #$C0 ; CPU:$D1C7 PRG:51C7 29 C0
sta Zp1E ; CPU:$D1C9 PRG:51C9 85 1E
tya ; CPU:$D1CB PRG:51CB 98
and #$3F ; CPU:$D1CC PRG:51CC 29 3F
ora Zp1E ; CPU:$D1CE PRG:51CE 05 1E
tay ; CPU:$D1D0 PRG:51D0 A8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop447
; Global: Branch target inside Sub: taken when Loop447.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop447:
sty Zp99 ; CPU:$D1D1 PRG:51D1 84 99
stx Zp9A ; CPU:$D1D3 PRG:51D3 86 9A
; -----------------------------------------------------------------------------
; Routine: Sub_D1D5
; Global: Branch target inside Sub: taken when D1D5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D1D5:
lda Zp3B ; CPU:$D1D5 PRG:51D5 A5 3B
and #$7F ; CPU:$D1D7 PRG:51D7 29 7F
sta Zp3B ; CPU:$D1D9 PRG:51D9 85 3B
jsr Sub_EF2F ; CPU:$D1DB PRG:51DB 20 2F EF
lda GameState ; CPU:$D1DE PRG:51DE A5 36
bmi Sub_Loop450 ; CPU:$D1E0 PRG:51E0 30 15
ldx #$00 ; CPU:$D1E2 PRG:51E2 A2 00
lda Zp1C ; CPU:$D1E4 PRG:51E4 A5 1C
bne Sub_Loop448 ; CPU:$D1E6 PRG:51E6 D0 02
ldx #$02 ; CPU:$D1E8 PRG:51E8 A2 02
; -----------------------------------------------------------------------------
; Routine: Sub_Loop448
; Global: Branch target inside Sub: taken when Loop448.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop448:
lda Zp95,x ; CPU:$D1EA PRG:51EA B5 95
clc ; CPU:$D1EC PRG:51EC 18
adc #$08 ; CPU:$D1ED PRG:51ED 69 08
cmp #$A2 ; CPU:$D1EF PRG:51EF C9 A2
bcc Sub_Loop449 ; CPU:$D1F1 PRG:51F1 90 02
lda #$A2 ; CPU:$D1F3 PRG:51F3 A9 A2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop449
; Global: Branch target inside Sub: taken when Loop449.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop449:
sta Zp95,x ; CPU:$D1F5 PRG:51F5 95 95
; -----------------------------------------------------------------------------
; Routine: Sub_Loop450
; Global: Branch target inside Sub: taken when Loop450.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop450:
ldx WrestlerIndex ; CPU:$D1F7 PRG:51F7 A6 85
lda Zp99 ; CPU:$D1F9 PRG:51F9 A5 99
sta PlayerTile,x ; CPU:$D1FB PRG:51FB 95 32
lda Zp95 ; CPU:$D1FD PRG:51FD A5 95
sta PlayerX,x ; CPU:$D1FF PRG:51FF 95 33
lda SpriteX ; CPU:$D201 PRG:5201 A5 96
sta PlayerY,x ; CPU:$D203 PRG:5203 95 34
lda #$20 ; CPU:$D205 PRG:5205 A9 20
sta GameState,x ; CPU:$D207 PRG:5207 95 36
ldx WrestlerIndex2 ; CPU:$D209 PRG:5209 A6 86
lda Zp9A ; CPU:$D20B PRG:520B A5 9A
sta PlayerTile,x ; CPU:$D20D PRG:520D 95 32
lda Zp97 ; CPU:$D20F PRG:520F A5 97
sta PlayerX,x ; CPU:$D211 PRG:5211 95 33
lda SpriteY ; CPU:$D213 PRG:5213 A5 98
sta PlayerY,x ; CPU:$D215 PRG:5215 95 34
lda #$20 ; CPU:$D217 PRG:5217 A9 20
sta GameState,x ; CPU:$D219 PRG:5219 95 36
ldx WrestlerIndex ; CPU:$D21B PRG:521B A6 85
lda Zp1C ; CPU:$D21D PRG:521D A5 1C
bne Sub_Loop451 ; CPU:$D21F PRG:521F D0 02
ldx WrestlerIndex2 ; CPU:$D221 PRG:5221 A6 86
; -----------------------------------------------------------------------------
; Routine: Sub_Loop451
; Global: Branch target inside Sub: taken when Loop451.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop451:
lda #$40 ; CPU:$D223 PRG:5223 A9 40
sta GameState,x ; CPU:$D225 PRG:5225 95 36
lda GameState ; CPU:$D227 PRG:5227 A5 36
bmi Sub_Loop458 ; CPU:$D229 PRG:5229 30 70
lda #$00 ; CPU:$D22B PRG:522B A9 00
sta Zp1E ; CPU:$D22D PRG:522D 85 1E
ldx SpriteX ; CPU:$D22F PRG:522F A6 96
ldy #$A0 ; CPU:$D231 PRG:5231 A0 A0
lda Zp1C ; CPU:$D233 PRG:5233 A5 1C
bne Sub_Loop452 ; CPU:$D235 PRG:5235 D0 04
ldx SpriteY ; CPU:$D237 PRG:5237 A6 98
ldy #$90 ; CPU:$D239 PRG:5239 A0 90
; -----------------------------------------------------------------------------
; Routine: Sub_Loop452
; Global: Branch target inside Sub: taken when Loop452.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop452:
txa ; CPU:$D23B PRG:523B 8A
cmp #$30 ; CPU:$D23C PRG:523C C9 30
bcc Sub_Loop453 ; CPU:$D23E PRG:523E 90 04
cmp #$C0 ; CPU:$D240 PRG:5240 C9 C0
bcc Sub_Loop454 ; CPU:$D242 PRG:5242 90 02
; -----------------------------------------------------------------------------
; Routine: Sub_Loop453
; Global: Branch target inside Sub: taken when Loop453.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop453:
sty Zp1E ; CPU:$D244 PRG:5244 84 1E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop454
; Global: Branch target inside Sub: taken when Loop454.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop454:
lda Zp21 ; CPU:$D246 PRG:5246 A5 21
cmp #$00 ; CPU:$D248 PRG:5248 C9 00
beq Sub_Loop457 ; CPU:$D24A PRG:524A F0 24
cmp #$05 ; CPU:$D24C PRG:524C C9 05
beq Sub_Loop457 ; CPU:$D24E PRG:524E F0 20
cmp #$06 ; CPU:$D250 PRG:5250 C9 06
beq Sub_Loop457 ; CPU:$D252 PRG:5252 F0 1C
cmp #$09 ; CPU:$D254 PRG:5254 C9 09
beq Sub_Loop457 ; CPU:$D256 PRG:5256 F0 18
ldx SpriteX ; CPU:$D258 PRG:5258 A6 96
ldy #$B0 ; CPU:$D25A PRG:525A A0 B0
lda Zp1C ; CPU:$D25C PRG:525C A5 1C
beq Sub_Loop455 ; CPU:$D25E PRG:525E F0 02
ldx SpriteY ; CPU:$D260 PRG:5260 A6 98
; -----------------------------------------------------------------------------
; Routine: Sub_Loop455
; Global: Branch target inside Sub: taken when Loop455.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop455:
txa ; CPU:$D262 PRG:5262 8A
cmp #$30 ; CPU:$D263 PRG:5263 C9 30
bcc Sub_Loop456 ; CPU:$D265 PRG:5265 90 04
cmp #$C0 ; CPU:$D267 PRG:5267 C9 C0
bcc Sub_Loop457 ; CPU:$D269 PRG:5269 90 05
; -----------------------------------------------------------------------------
; Routine: Sub_Loop456
; Global: Branch target inside Sub: taken when Loop456.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop456:
tya ; CPU:$D26B PRG:526B 98
ora Zp1E ; CPU:$D26C PRG:526C 05 1E
sta Zp1E ; CPU:$D26E PRG:526E 85 1E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop457
; Global: Branch target inside Sub: taken when Loop457.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop457:
lda Zp1E ; CPU:$D270 PRG:5270 A5 1E
beq Sub_Loop458 ; CPU:$D272 PRG:5272 F0 27
lda Zp3B ; CPU:$D274 PRG:5274 A5 3B
and #$E0 ; CPU:$D276 PRG:5276 29 E0
ora #$8E ; CPU:$D278 PRG:5278 09 8E
sta Zp3B ; CPU:$D27A PRG:527A 85 3B
lda #$00 ; CPU:$D27C PRG:527C A9 00
sta Zp3C ; CPU:$D27E PRG:527E 85 3C
lda Zp1E ; CPU:$D280 PRG:5280 A5 1E
sta Zp41 ; CPU:$D282 PRG:5282 85 41
lda #$00 ; CPU:$D284 PRG:5284 A9 00
sta Zp42 ; CPU:$D286 PRG:5286 85 42
sta Zp43 ; CPU:$D288 PRG:5288 85 43
lda #$40 ; CPU:$D28A PRG:528A A9 40
sta Zp44 ; CPU:$D28C PRG:528C 85 44
lda GameState ; CPU:$D28E PRG:528E A5 36
ora #$80 ; CPU:$D290 PRG:5290 09 80
sta GameState ; CPU:$D292 PRG:5292 85 36
lda #$81 ; CPU:$D294 PRG:5294 A9 81
sta Zp8B ; CPU:$D296 PRG:5296 85 8B
jsr Sub_FD22 ; CPU:$D298 PRG:5298 20 22 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop458
; Global: Branch target inside Sub: taken when Loop458.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop458:
lda Zp21 ; CPU:$D29B PRG:529B A5 21
tax ; CPU:$D29D PRG:529D AA
lda $D481,x ; CPU:$D29E PRG:529E BD 81 D4
sta Zp1F ; CPU:$D2A1 PRG:52A1 85 1F
ldx Zp1C ; CPU:$D2A3 PRG:52A3 A6 1C
bne Sub_Loop459 ; CPU:$D2A5 PRG:52A5 D0 02
lda #$01 ; CPU:$D2A7 PRG:52A7 A9 01
; -----------------------------------------------------------------------------
; Routine: Sub_Loop459
; Global: Branch target inside Sub: taken when Loop459.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop459:
sta Zp20 ; CPU:$D2A9 PRG:52A9 85 20
ldx WrestlerIndex ; CPU:$D2AB PRG:52AB A6 85
lda Zp35,x ; CPU:$D2AD PRG:52AD B5 35
cmp Zp20 ; CPU:$D2AF PRG:52AF C5 20
bcc Sub_Loop460 ; CPU:$D2B1 PRG:52B1 90 06
sec ; CPU:$D2B3 PRG:52B3 38
sbc Zp20 ; CPU:$D2B4 PRG:52B4 E5 20
jmp Sub_D2BB ; CPU:$D2B6 PRG:52B6 4C BB D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop460
; Global: Branch target inside Sub: taken when Loop460.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop460:
lda #$00 ; CPU:$D2B9 PRG:52B9 A9 00
; -----------------------------------------------------------------------------
; Routine: Sub_D2BB
; Global: Branch target inside Sub: taken when D2BB.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D2BB:
sta Zp35,x ; CPU:$D2BB PRG:52BB 95 35
lda Zp1F ; CPU:$D2BD PRG:52BD A5 1F
ldx Zp1C ; CPU:$D2BF PRG:52BF A6 1C
beq Sub_Loop461 ; CPU:$D2C1 PRG:52C1 F0 02
lda #$01 ; CPU:$D2C3 PRG:52C3 A9 01
; -----------------------------------------------------------------------------
; Routine: Sub_Loop461
; Global: Branch target inside Sub: taken when Loop461.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop461:
sta Zp20 ; CPU:$D2C5 PRG:52C5 85 20
ldx WrestlerIndex2 ; CPU:$D2C7 PRG:52C7 A6 86
lda Zp35,x ; CPU:$D2C9 PRG:52C9 B5 35
cmp Zp20 ; CPU:$D2CB PRG:52CB C5 20
bcc Sub_Loop462 ; CPU:$D2CD PRG:52CD 90 06
sec ; CPU:$D2CF PRG:52CF 38
sbc Zp20 ; CPU:$D2D0 PRG:52D0 E5 20
jmp Sub_D2DD ; CPU:$D2D2 PRG:52D2 4C DD D2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop462
; Global: Branch target inside Sub: taken when Loop462.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop462:
lda GameState ; CPU:$D2D5 PRG:52D5 A5 36
and #$EF ; CPU:$D2D7 PRG:52D7 29 EF
sta GameState ; CPU:$D2D9 PRG:52D9 85 36
lda #$00 ; CPU:$D2DB PRG:52DB A9 00
; -----------------------------------------------------------------------------
; Routine: Sub_D2DD
; Global: Branch target inside Sub: taken when D2DD.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D2DD:
sta Zp35,x ; CPU:$D2DD PRG:52DD 95 35
jmp Sub_D332 ; CPU:$D2DF PRG:52DF 4C 32 D3
; -----------------------------------------------------------------------------
; Routine: Sub_D2E2
; Global: Branch target inside Sub: taken when D2E2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D2E2:
lda #$20 ; CPU:$D2E2 PRG:52E2 A9 20
; -----------------------------------------------------------------------------
; Routine: Sub_D2E4
; Global: Branch target inside Sub: taken when D2E4.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D2E4:
sta Zp3D ; CPU:$D2E4 PRG:52E4 85 3D
inc Zp3C ; CPU:$D2E6 PRG:52E6 E6 3C
; -----------------------------------------------------------------------------
; Routine: Sub_D2E8
; Global: Branch target inside Sub: taken when D2E8.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D2E8:
ldx WrestlerIndex ; CPU:$D2E8 PRG:52E8 A6 85
lda Zp95 ; CPU:$D2EA PRG:52EA A5 95
sta PlayerX,x ; CPU:$D2EC PRG:52EC 95 33
lda SpriteX ; CPU:$D2EE PRG:52EE A5 96
sta PlayerY,x ; CPU:$D2F0 PRG:52F0 95 34
ldx WrestlerIndex2 ; CPU:$D2F2 PRG:52F2 A6 86
lda Zp97 ; CPU:$D2F4 PRG:52F4 A5 97
sta PlayerX,x ; CPU:$D2F6 PRG:52F6 95 33
lda SpriteY ; CPU:$D2F8 PRG:52F8 A5 98
sta PlayerY,x ; CPU:$D2FA PRG:52FA 95 34
jmp Sub_D332 ; CPU:$D2FC PRG:52FC 4C 32 D3
; -----------------------------------------------------------------------------
; Routine: Sub_D2FF
; Global: Branch target inside Sub: taken when D2FF.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D2FF:
dec Zp3D ; CPU:$D2FF PRG:52FF C6 3D
jmp Sub_D332 ; CPU:$D301 PRG:5301 4C 32 D3
; -----------------------------------------------------------------------------
; Routine: Sub_D304
; Global: Branch target inside Sub: taken when D304.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D304:
lda #$8C ; CPU:$D304 PRG:5304 A9 8C
jsr Sub_F036 ; CPU:$D306 PRG:5306 20 36 F0
jsr Sub_9BF3 ; CPU:$D309 PRG:5309 20 F3 9B
jsr Sub_FD19 ; CPU:$D30C PRG:530C 20 19 FD
ldx #$E9 ; CPU:$D30F PRG:530F A2 E9
ldy #$A8 ; CPU:$D311 PRG:5311 A0 A8
jsr Sub_FD3A ; CPU:$D313 PRG:5313 20 3A FD
ldx #$B8 ; CPU:$D316 PRG:5316 A2 B8
ldy #$B3 ; CPU:$D318 PRG:5318 A0 B3
jsr Sub_FD3A ; CPU:$D31A PRG:531A 20 3A FD
lda #$07 ; CPU:$D31D PRG:531D A9 07
jsr Sub_F03D ; CPU:$D31F PRG:531F 20 3D F0
lda #$10 ; CPU:$D322 PRG:5322 A9 10
jsr Sub_F227 ; CPU:$D324 PRG:5324 20 27 F2
lda #$0E ; CPU:$D327 PRG:5327 A9 0E
jsr Sub_FD40 ; CPU:$D329 PRG:5329 20 40 FD
jsr Sub_E9C6 ; CPU:$D32C PRG:532C 20 C6 E9
jmp Sub_FD13 ; CPU:$D32F PRG:532F 4C 13 FD
; -----------------------------------------------------------------------------
; Routine: Sub_D332
; Global: Branch target inside Sub: taken when D332.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D332:
rts ; CPU:$D332 PRG:5332 60
; -----------------------------------------------------------------------------
; Routine: Sub_D333
; Global: Branch target inside Sub: taken when D333.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D333:
lda Zp1C ; CPU:$D333 PRG:5333 A5 1C
bne Sub_Loop464 ; CPU:$D335 PRG:5335 D0 14
lda #$08 ; CPU:$D337 PRG:5337 A9 08
ldx Zp1D ; CPU:$D339 PRG:5339 A6 1D
beq Sub_Loop463 ; CPU:$D33B PRG:533B F0 02
eor #$FF ; CPU:$D33D PRG:533D 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop463
; Global: Branch target inside Sub: taken when Loop463.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop463:
sta Zp1E ; CPU:$D33F PRG:533F 85 1E
lda SpriteX ; CPU:$D341 PRG:5341 A5 96
sec ; CPU:$D343 PRG:5343 38
sbc Zp1E ; CPU:$D344 PRG:5344 E5 1E
sta SpriteY ; CPU:$D346 PRG:5346 85 98
jmp Sub_D35C ; CPU:$D348 PRG:5348 4C 5C D3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop464
; Global: Branch target inside Sub: taken when Loop464.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop464:
lda #$08 ; CPU:$D34B PRG:534B A9 08
ldx Zp1D ; CPU:$D34D PRG:534D A6 1D
beq Sub_Loop465 ; CPU:$D34F PRG:534F F0 02
eor #$FF ; CPU:$D351 PRG:5351 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop465
; Global: Branch target inside Sub: taken when Loop465.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop465:
sta Zp1E ; CPU:$D353 PRG:5353 85 1E
lda SpriteY ; CPU:$D355 PRG:5355 A5 98
clc ; CPU:$D357 PRG:5357 18
adc Zp1E ; CPU:$D358 PRG:5358 65 1E
sta SpriteX ; CPU:$D35A PRG:535A 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_D35C
; Global: Branch target inside Sub: taken when D35C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D35C:
rts ; CPU:$D35C PRG:535C 60
; -----------------------------------------------------------------------------
; Routine: Sub_D35D
; Global: Branch target inside Sub: taken when D35D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D35D:
lda Zp1C ; CPU:$D35D PRG:535D A5 1C
bne Sub_Loop467 ; CPU:$D35F PRG:535F D0 14
lda #$18 ; CPU:$D361 PRG:5361 A9 18
ldx Zp1D ; CPU:$D363 PRG:5363 A6 1D
beq Sub_Loop466 ; CPU:$D365 PRG:5365 F0 02
eor #$FF ; CPU:$D367 PRG:5367 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop466
; Global: Branch target inside Sub: taken when Loop466.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop466:
sta Zp1E ; CPU:$D369 PRG:5369 85 1E
lda SpriteX ; CPU:$D36B PRG:536B A5 96
clc ; CPU:$D36D PRG:536D 18
adc Zp1E ; CPU:$D36E PRG:536E 65 1E
sta SpriteY ; CPU:$D370 PRG:5370 85 98
jmp Sub_D386 ; CPU:$D372 PRG:5372 4C 86 D3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop467
; Global: Branch target inside Sub: taken when Loop467.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop467:
lda #$18 ; CPU:$D375 PRG:5375 A9 18
ldx Zp1D ; CPU:$D377 PRG:5377 A6 1D
beq Sub_Loop468 ; CPU:$D379 PRG:5379 F0 02
eor #$FF ; CPU:$D37B PRG:537B 49 FF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop468
; Global: Branch target inside Sub: taken when Loop468.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop468:
sta Zp1E ; CPU:$D37D PRG:537D 85 1E
lda SpriteY ; CPU:$D37F PRG:537F A5 98
sec ; CPU:$D381 PRG:5381 38
sbc Zp1E ; CPU:$D382 PRG:5382 E5 1E
sta SpriteX ; CPU:$D384 PRG:5384 85 96
; -----------------------------------------------------------------------------
; Routine: Sub_D386
; Global: Branch target inside Sub: taken when D386.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D386:
rts ; CPU:$D386 PRG:5386 60
; -----------------------------------------------------------------------------
; Routine: Sub_D387
; Global: Branch target inside Sub: taken when D387.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D387:
lda SpriteX ; CPU:$D387 PRG:5387 A5 96
sta Zp1E ; CPU:$D389 PRG:5389 85 1E
lda Zp95 ; CPU:$D38B PRG:538B A5 95
sta Zp8F ; CPU:$D38D PRG:538D 85 8F
jsr Sub_EE87 ; CPU:$D38F PRG:538F 20 87 EE
lda Zp1D ; CPU:$D392 PRG:5392 A5 1D
bne Sub_Loop469 ; CPU:$D394 PRG:5394 D0 0F
txa ; CPU:$D396 PRG:5396 8A
sec ; CPU:$D397 PRG:5397 38
sbc #$10 ; CPU:$D398 PRG:5398 E9 10
cmp Zp1E ; CPU:$D39A PRG:539A C5 1E
bcs Sub_Loop470 ; CPU:$D39C PRG:539C B0 1C
dec SpriteX ; CPU:$D39E PRG:539E C6 96
dec SpriteX ; CPU:$D3A0 PRG:53A0 C6 96
jmp Sub_D3B5 ; CPU:$D3A2 PRG:53A2 4C B5 D3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop469
; Global: Branch target inside Sub: taken when Loop469.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop469:
tya ; CPU:$D3A5 PRG:53A5 98
clc ; CPU:$D3A6 PRG:53A6 18
adc #$10 ; CPU:$D3A7 PRG:53A7 69 10
sta Zp1F ; CPU:$D3A9 PRG:53A9 85 1F
lda Zp1E ; CPU:$D3AB PRG:53AB A5 1E
cmp Zp1F ; CPU:$D3AD PRG:53AD C5 1F
bcs Sub_Loop470 ; CPU:$D3AF PRG:53AF B0 09
inc SpriteX ; CPU:$D3B1 PRG:53B1 E6 96
inc SpriteX ; CPU:$D3B3 PRG:53B3 E6 96
; -----------------------------------------------------------------------------
; Routine: Sub_D3B5
; Global: Branch target inside Sub: taken when D3B5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D3B5:
lda #$00 ; CPU:$D3B5 PRG:53B5 A9 00
jmp Sub_D3BC ; CPU:$D3B7 PRG:53B7 4C BC D3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop470
; Global: Branch target inside Sub: taken when Loop470.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop470:
lda #$FF ; CPU:$D3BA PRG:53BA A9 FF
; -----------------------------------------------------------------------------
; Routine: Sub_D3BC
; Global: Branch target inside Sub: taken when D3BC.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D3BC:
rts ; CPU:$D3BC PRG:53BC 60
; -----------------------------------------------------------------------------
; Routine: Sub_D3BD
; Global: Branch target inside Sub: taken when D3BD.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D3BD:
lda SpriteY ; CPU:$D3BD PRG:53BD A5 98
sta Zp1E ; CPU:$D3BF PRG:53BF 85 1E
lda Zp97 ; CPU:$D3C1 PRG:53C1 A5 97
sta Zp8F ; CPU:$D3C3 PRG:53C3 85 8F
jsr Sub_EE87 ; CPU:$D3C5 PRG:53C5 20 87 EE
lda Zp1D ; CPU:$D3C8 PRG:53C8 A5 1D
bne Sub_Loop471 ; CPU:$D3CA PRG:53CA D0 13
tya ; CPU:$D3CC PRG:53CC 98
clc ; CPU:$D3CD PRG:53CD 18
adc #$10 ; CPU:$D3CE PRG:53CE 69 10
sta Zp1F ; CPU:$D3D0 PRG:53D0 85 1F
lda Zp1E ; CPU:$D3D2 PRG:53D2 A5 1E
cmp Zp1F ; CPU:$D3D4 PRG:53D4 C5 1F
bcs Sub_Loop472 ; CPU:$D3D6 PRG:53D6 B0 18
inc SpriteY ; CPU:$D3D8 PRG:53D8 E6 98
inc SpriteY ; CPU:$D3DA PRG:53DA E6 98
jmp Sub_D3B5 ; CPU:$D3DC PRG:53DC 4C B5 D3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop471
; Global: Branch target inside Sub: taken when Loop471.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop471:
txa ; CPU:$D3DF PRG:53DF 8A
sec ; CPU:$D3E0 PRG:53E0 38
sbc #$10 ; CPU:$D3E1 PRG:53E1 E9 10
cmp Zp1E ; CPU:$D3E3 PRG:53E3 C5 1E
bcs Sub_Loop472 ; CPU:$D3E5 PRG:53E5 B0 09
dec SpriteY ; CPU:$D3E7 PRG:53E7 C6 98
dec SpriteY ; CPU:$D3E9 PRG:53E9 C6 98
lda #$00 ; CPU:$D3EB PRG:53EB A9 00
jmp Sub_D3F2 ; CPU:$D3ED PRG:53ED 4C F2 D3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop472
; Global: Branch target inside Sub: taken when Loop472.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop472:
lda #$FF ; CPU:$D3F0 PRG:53F0 A9 FF
; -----------------------------------------------------------------------------
; Routine: Sub_D3F2
; Global: Branch target inside Sub: taken when D3F2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D3F2:
rts ; CPU:$D3F2 PRG:53F2 60
; -----------------------------------------------------------------------------
; Routine: Sub_D3F3
; Global: Branch target inside Sub: taken when D3F3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D3F3:
tay ; CPU:$D3F3 PRG:53F3 A8
lda SpriteX ; CPU:$D3F4 PRG:53F4 A5 96
clc ; CPU:$D3F6 PRG:53F6 18
adc #$10 ; CPU:$D3F7 PRG:53F7 69 10
sec ; CPU:$D3F9 PRG:53F9 38
sbc SpriteY ; CPU:$D3FA PRG:53FA E5 98
ldx Zp1D ; CPU:$D3FC PRG:53FC A6 1D
beq Sub_Loop473 ; CPU:$D3FE PRG:53FE F0 08
lda SpriteY ; CPU:$D400 PRG:5400 A5 98
clc ; CPU:$D402 PRG:5402 18
adc #$10 ; CPU:$D403 PRG:5403 69 10
sec ; CPU:$D405 PRG:5405 38
sbc SpriteX ; CPU:$D406 PRG:5406 E5 96
; -----------------------------------------------------------------------------
; Routine: Sub_Loop473
; Global: Branch target inside Sub: taken when Loop473.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop473:
cmp #$10 ; CPU:$D408 PRG:5408 C9 10
bcc Sub_Loop477 ; CPU:$D40A PRG:540A 90 29
tya ; CPU:$D40C PRG:540C 98
bne Sub_Loop475 ; CPU:$D40D PRG:540D D0 12
lda Zp1D ; CPU:$D40F PRG:540F A5 1D
bne Sub_Loop474 ; CPU:$D411 PRG:5411 D0 07
inc SpriteX ; CPU:$D413 PRG:5413 E6 96
inc SpriteX ; CPU:$D415 PRG:5415 E6 96
jmp Sub_D430 ; CPU:$D417 PRG:5417 4C 30 D4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop474
; Global: Branch target inside Sub: taken when Loop474.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop474:
dec SpriteX ; CPU:$D41A PRG:541A C6 96
dec SpriteX ; CPU:$D41C PRG:541C C6 96
jmp Sub_D430 ; CPU:$D41E PRG:541E 4C 30 D4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop475
; Global: Branch target inside Sub: taken when Loop475.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop475:
lda Zp1D ; CPU:$D421 PRG:5421 A5 1D
bne Sub_Loop476 ; CPU:$D423 PRG:5423 D0 07
dec SpriteY ; CPU:$D425 PRG:5425 C6 98
dec SpriteY ; CPU:$D427 PRG:5427 C6 98
jmp Sub_D430 ; CPU:$D429 PRG:5429 4C 30 D4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop476
; Global: Branch target inside Sub: taken when Loop476.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop476:
inc SpriteY ; CPU:$D42C PRG:542C E6 98
inc SpriteY ; CPU:$D42E PRG:542E E6 98
; -----------------------------------------------------------------------------
; Routine: Sub_D430
; Global: Branch target inside Sub: taken when D430.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D430:
lda #$00 ; CPU:$D430 PRG:5430 A9 00
jmp Sub_D437 ; CPU:$D432 PRG:5432 4C 37 D4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop477
; Global: Branch target inside Sub: taken when Loop477.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop477:
lda #$FF ; CPU:$D435 PRG:5435 A9 FF
; -----------------------------------------------------------------------------
; Routine: Sub_D437
; Global: Branch target inside Sub: taken when D437.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D437:
rts ; CPU:$D437 PRG:5437 60
; -----------------------------------------------------------------------------
; Routine: Sub_D438
; Global: Branch target inside Sub: taken when D438.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D438:
lda Zp95 ; CPU:$D438 PRG:5438 A5 95
ldx Zp1C ; CPU:$D43A PRG:543A A6 1C
beq Sub_Loop478 ; CPU:$D43C PRG:543C F0 02
lda Zp97 ; CPU:$D43E PRG:543E A5 97
; -----------------------------------------------------------------------------
; Routine: Sub_Loop478
; Global: Branch target inside Sub: taken when Loop478.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop478:
cmp #$50 ; CPU:$D440 PRG:5440 C9 50
bcs Sub_Loop479 ; CPU:$D442 PRG:5442 B0 04
lda #$FF ; CPU:$D444 PRG:5444 A9 FF
sta Zp9F ; CPU:$D446 PRG:5446 85 9F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop479
; Global: Branch target inside Sub: taken when Loop479.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop479:
rts ; CPU:$D448 PRG:5448 60
; ---- data $D449-$D4AD (101 bytes) ----
; referenced by `lda $D490,x` at $C832 (operand $D490 falls inside this region)
; referenced by `lda $D491,x` at $C837 (operand $D491 falls inside this region)
; referenced by `lda $D449,x` at $D19F (operand $D449 falls inside this region)
; referenced by `lda $D44A,x` at $D1A3 (operand $D44A falls inside this region)
; referenced by `lda $D481,x` at $D29E (operand $D481 falls inside this region)
.byte $C0, $C7, $C7, $87, $C0, $87, $87, $87, $87, $C7, $80, $C7, $00, $87, $00, $00 ; CPU:$D449 PRG:5449 C0 C7 C7 87 C0 87 87 87 87 C7 80 C7 00 87 00 00
.byte $00, $00, $00, $00, $87, $C7, $00, $C7, $80, $C7, $C0, $87, $87, $80, $C7, $87 ; CPU:$D459 PRG:5459 00 00 00 00 87 C7 00 C7 80 C7 C0 87 87 80 C7 87
.byte $C7, $80, $C7, $C7, $87, $C7, $87, $C0, $C7, $00, $00, $00, $87, $C7, $C7, $80 ; CPU:$D469 PRG:5469 C7 80 C7 C7 87 C7 87 C0 C7 00 00 00 87 C7 C7 80
.byte $00, $00, $00, $00, $C7, $80, $87, $C0, $01, $01, $02, $02, $03, $03, $03, $00 ; CPU:$D479 PRG:5479 00 00 00 00 C7 80 87 C0 01 01 02 02 03 03 03 00
.byte $04, $04, $04, $04, $03, $04, $03, $3F, $C8, $DD, $C8, $E0, $C8, $E0, $C8, $35 ; CPU:$D489 PRG:5489 04 04 04 04 03 04 03 3F C8 DD C8 E0 C8 E0 C8 35
.byte $CA, $7B, $CA, $C3, $CA, $F4, $CA, $7A, $CB, $08, $CC, $39, $CD, $3C, $CE, $71 ; CPU:$D499 PRG:5499 CA 7B CA C3 CA F4 CA 7A CB 08 CC 39 CD 3C CE 71
.byte $CF, $8F, $D0, $2D, $D1 ; CPU:$D4A9 PRG:54A9 CF 8F D0 2D D1
; -----------------------------------------------------------------------------
; Routine: Sub_D4AE
; Global: Branch target inside Sub: taken when D4AE.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D4AE:
rts ; CPU:$D4AE PRG:54AE 60
; -----------------------------------------------------------------------------
; Routine: Sub_D4AF
; Global: Branch target inside Sub: taken when D4AF.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D4AF:
lda Zp40 ; CPU:$D4AF PRG:54AF A5 40
cmp #$15 ; CPU:$D4B1 PRG:54B1 C9 15
bcs Sub_Loop481 ; CPU:$D4B3 PRG:54B3 B0 32
lda #$8C ; CPU:$D4B5 PRG:54B5 A9 8C
jsr Sub_F036 ; CPU:$D4B7 PRG:54B7 20 36 F0
jsr Sub_9BF3 ; CPU:$D4BA PRG:54BA 20 F3 9B
jsr Sub_FD19 ; CPU:$D4BD PRG:54BD 20 19 FD
lda #$03 ; CPU:$D4C0 PRG:54C0 A9 03
sta Zp3F ; CPU:$D4C2 PRG:54C2 85 3F
jsr Sub_E365 ; CPU:$D4C4 PRG:54C4 20 65 E3
ldx #$E9 ; CPU:$D4C7 PRG:54C7 A2 E9
ldy #$A8 ; CPU:$D4C9 PRG:54C9 A0 A8
jsr Sub_FD3A ; CPU:$D4CB PRG:54CB 20 3A FD
ldx #$09 ; CPU:$D4CE PRG:54CE A2 09
lda Zp3E ; CPU:$D4D0 PRG:54D0 A5 3E
and #$20 ; CPU:$D4D2 PRG:54D2 29 20
beq Sub_Loop480 ; CPU:$D4D4 PRG:54D4 F0 02
ldx #$0B ; CPU:$D4D6 PRG:54D6 A2 0B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop480
; Global: Branch target inside Sub: taken when Loop480.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop480:
txa ; CPU:$D4D8 PRG:54D8 8A
jsr Sub_FD40 ; CPU:$D4D9 PRG:54D9 20 40 FD
jsr Sub_E9C6 ; CPU:$D4DC PRG:54DC 20 C6 E9
lda #$40 ; CPU:$D4DF PRG:54DF A9 40
jsr Sub_F227 ; CPU:$D4E1 PRG:54E1 20 27 F2
jmp Sub_FD13 ; CPU:$D4E4 PRG:54E4 4C 13 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop481
; Global: Branch target inside Sub: taken when Loop481.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop481:
lda Zp7B ; CPU:$D4E7 PRG:54E7 A5 7B
and #$20 ; CPU:$D4E9 PRG:54E9 29 20
bne Sub_Loop484 ; CPU:$D4EB PRG:54EB D0 52
lda Zp3E ; CPU:$D4ED PRG:54ED A5 3E
and #$20 ; CPU:$D4EF PRG:54EF 29 20
beq Sub_Loop484 ; CPU:$D4F1 PRG:54F1 F0 4C
lda Zp40 ; CPU:$D4F3 PRG:54F3 A5 40
cmp #$1A ; CPU:$D4F5 PRG:54F5 C9 1A
bcc Sub_Loop484 ; CPU:$D4F7 PRG:54F7 90 46
lda ZpAB ; CPU:$D4F9 PRG:54F9 A5 AB
bne Sub_Loop484 ; CPU:$D4FB PRG:54FB D0 42
jsr Sub_FD2B ; CPU:$D4FD PRG:54FD 20 2B FD
lda Zp19 ; CPU:$D500 PRG:5500 A5 19
cmp #$03 ; CPU:$D502 PRG:5502 C9 03
bne Sub_Loop484 ; CPU:$D504 PRG:5504 D0 39
lda ZpA6 ; CPU:$D506 PRG:5506 A5 A6
cmp #$10 ; CPU:$D508 PRG:5508 C9 10
bcs Sub_Loop482 ; CPU:$D50A PRG:550A B0 14
lda JOY1 ; CPU:$D50C PRG:550C AD 16 40
pha ; CPU:$D50F PRG:550F 48
eor ZpA5 ; CPU:$D510 PRG:5510 45 A5
and #$04 ; CPU:$D512 PRG:5512 29 04
adc #$FC ; CPU:$D514 PRG:5514 69 FC
pla ; CPU:$D516 PRG:5516 68
sta ZpA5 ; CPU:$D517 PRG:5517 85 A5
bcc Sub_Loop484 ; CPU:$D519 PRG:5519 90 24
inc ZpA6 ; CPU:$D51B PRG:551B E6 A6
jmp Sub_Loop484 ; CPU:$D51D PRG:551D 4C 3F D5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop482
; Global: Branch target inside Sub: taken when Loop482.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop482:
lda #$FF ; CPU:$D520 PRG:5520 A9 FF
sta ZpAB ; CPU:$D522 PRG:5522 85 AB
lda Zp3E ; CPU:$D524 PRG:5524 A5 3E
ora #$10 ; CPU:$D526 PRG:5526 09 10
sta Zp3E ; CPU:$D528 PRG:5528 85 3E
lda #$20 ; CPU:$D52A PRG:552A A9 20
sta Zp40 ; CPU:$D52C PRG:552C 85 40
ldx #$13 ; CPU:$D52E PRG:552E A2 13
lda GameState ; CPU:$D530 PRG:5530 A5 36
and #$40 ; CPU:$D532 PRG:5532 29 40
bne Sub_Loop483 ; CPU:$D534 PRG:5534 D0 02
ldx #$18 ; CPU:$D536 PRG:5536 A2 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop483
; Global: Branch target inside Sub: taken when Loop483.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop483:
lda #$06 ; CPU:$D538 PRG:5538 A9 06
sta PlayerTile,x ; CPU:$D53A PRG:553A 95 32
jmp Sub_Loop490 ; CPU:$D53C PRG:553C 4C C3 D5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop484
; Global: Branch target inside Sub: taken when Loop484.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop484:
lda Zp40 ; CPU:$D53F PRG:553F A5 40
cmp #$1A ; CPU:$D541 PRG:5541 C9 1A
bcc Sub_Loop490 ; CPU:$D543 PRG:5543 90 7E
ldx WrestlerIndex ; CPU:$D545 PRG:5545 A6 85
ldy Zp18 ; CPU:$D547 PRG:5547 A4 18
lda Zp3E ; CPU:$D549 PRG:5549 A5 3E
and #$20 ; CPU:$D54B PRG:554B 29 20
bne Sub_Loop485 ; CPU:$D54D PRG:554D D0 04
ldx WrestlerIndex2 ; CPU:$D54F PRG:554F A6 86
ldy Zp19 ; CPU:$D551 PRG:5551 A4 19
; -----------------------------------------------------------------------------
; Routine: Sub_Loop485
; Global: Branch target inside Sub: taken when Loop485.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop485:
lda Zp35,x ; CPU:$D553 PRG:5553 B5 35
and #$FC ; CPU:$D555 PRG:5555 29 FC
bne Sub_Loop488 ; CPU:$D557 PRG:5557 D0 2F
lda Zp7B ; CPU:$D559 PRG:5559 A5 7B
and #$20 ; CPU:$D55B PRG:555B 29 20
bne Sub_Loop486 ; CPU:$D55D PRG:555D D0 06
lda Zp3E ; CPU:$D55F PRG:555F A5 3E
and #$20 ; CPU:$D561 PRG:5561 29 20
beq Sub_Loop490 ; CPU:$D563 PRG:5563 F0 5E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop486
; Global: Branch target inside Sub: taken when Loop486.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop486:
lda Zp40 ; CPU:$D565 PRG:5565 A5 40
cmp #$16 ; CPU:$D567 PRG:5567 C9 16
bcc Sub_Loop490 ; CPU:$D569 PRG:5569 90 58
sty Zp1C ; CPU:$D56B PRG:556B 84 1C
lda Zp3A ; CPU:$D56D PRG:556D A5 3A
eor #$FF ; CPU:$D56F PRG:556F 49 FF
and Zp1C ; CPU:$D571 PRG:5571 25 1C
and #$02 ; CPU:$D573 PRG:5573 29 02
beq Sub_Loop487 ; CPU:$D575 PRG:5575 F0 0C
inc Zp39 ; CPU:$D577 PRG:5577 E6 39
lda Zp39 ; CPU:$D579 PRG:5579 A5 39
and #$07 ; CPU:$D57B PRG:557B 29 07
sta Zp39 ; CPU:$D57D PRG:557D 85 39
bne Sub_Loop487 ; CPU:$D57F PRG:557F D0 02
inc Zp35,x ; CPU:$D581 PRG:5581 F6 35
; -----------------------------------------------------------------------------
; Routine: Sub_Loop487
; Global: Branch target inside Sub: taken when Loop487.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop487:
sty Zp3A ; CPU:$D583 PRG:5583 84 3A
jmp Sub_Loop490 ; CPU:$D585 PRG:5585 4C C3 D5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop488
; Global: Branch target inside Sub: taken when Loop488.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop488:
lda Zp40 ; CPU:$D588 PRG:5588 A5 40
cmp #$30 ; CPU:$D58A PRG:558A C9 30
bcs Sub_Loop490 ; CPU:$D58C PRG:558C B0 35
; -----------------------------------------------------------------------------
; Routine: Sub_D58E
; Global: Branch target inside Sub: taken when D58E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D58E:
ldx WrestlerIndex ; CPU:$D58E PRG:558E A6 85
lda PlayerTile,x ; CPU:$D590 PRG:5590 B5 32
and #$C0 ; CPU:$D592 PRG:5592 29 C0
ora #$07 ; CPU:$D594 PRG:5594 09 07
sta PlayerTile,x ; CPU:$D596 PRG:5596 95 32
lda #$40 ; CPU:$D598 PRG:5598 A9 40
sta GameState,x ; CPU:$D59A PRG:559A 95 36
ldx WrestlerIndex2 ; CPU:$D59C PRG:559C A6 86
lda PlayerTile,x ; CPU:$D59E PRG:559E B5 32
and #$C0 ; CPU:$D5A0 PRG:55A0 29 C0
ora #$07 ; CPU:$D5A2 PRG:55A2 09 07
sta PlayerTile,x ; CPU:$D5A4 PRG:55A4 95 32
lda #$40 ; CPU:$D5A6 PRG:55A6 A9 40
sta GameState,x ; CPU:$D5A8 PRG:55A8 95 36
ldx WrestlerIndex ; CPU:$D5AA PRG:55AA A6 85
lda Zp3E ; CPU:$D5AC PRG:55AC A5 3E
and #$20 ; CPU:$D5AE PRG:55AE 29 20
beq Sub_Loop489 ; CPU:$D5B0 PRG:55B0 F0 02
ldx WrestlerIndex2 ; CPU:$D5B2 PRG:55B2 A6 86
; -----------------------------------------------------------------------------
; Routine: Sub_Loop489
; Global: Branch target inside Sub: taken when Loop489.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop489:
lda #$20 ; CPU:$D5B4 PRG:55B4 A9 20
sta GameState,x ; CPU:$D5B6 PRG:55B6 95 36
lda PlayerX,x ; CPU:$D5B8 PRG:55B8 B5 33
clc ; CPU:$D5BA PRG:55BA 18
adc #$10 ; CPU:$D5BB PRG:55BB 69 10
sta PlayerX,x ; CPU:$D5BD PRG:55BD 95 33
lda #$00 ; CPU:$D5BF PRG:55BF A9 00
sta Zp3E ; CPU:$D5C1 PRG:55C1 85 3E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop490
; Global: Branch target inside Sub: taken when Loop490.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop490:
lda Zp3E ; CPU:$D5C3 PRG:55C3 A5 3E
and #$10 ; CPU:$D5C5 PRG:55C5 29 10
bne Sub_Loop491 ; CPU:$D5C7 PRG:55C7 D0 02
dec Zp40 ; CPU:$D5C9 PRG:55C9 C6 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop491
; Global: Branch target inside Sub: taken when Loop491.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop491:
rts ; CPU:$D5CB PRG:55CB 60
; -----------------------------------------------------------------------------
; Routine: Sub_D5CC
; Global: Branch target inside Sub: taken when D5CC.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D5CC:
lda Zp65 ; CPU:$D5CC PRG:55CC A5 65
and #$C0 ; CPU:$D5CE PRG:55CE 29 C0
sta Zp65 ; CPU:$D5D0 PRG:55D0 85 65
lda Zp40 ; CPU:$D5D2 PRG:55D2 A5 40
cmp #$81 ; CPU:$D5D4 PRG:55D4 C9 81
bcs Sub_Loop493 ; CPU:$D5D6 PRG:55D6 B0 12
cmp #$6A ; CPU:$D5D8 PRG:55D8 C9 6A
bcs Sub_Loop492 ; CPU:$D5DA PRG:55DA B0 0C
cmp #$4B ; CPU:$D5DC PRG:55DC C9 4B
bcs Sub_Loop493 ; CPU:$D5DE PRG:55DE B0 0A
cmp #$30 ; CPU:$D5E0 PRG:55E0 C9 30
bcs Sub_Loop492 ; CPU:$D5E2 PRG:55E2 B0 04
cmp #$1A ; CPU:$D5E4 PRG:55E4 C9 1A
bcs Sub_Loop493 ; CPU:$D5E6 PRG:55E6 B0 02
; -----------------------------------------------------------------------------
; Routine: Sub_Loop492
; Global: Branch target inside Sub: taken when Loop492.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop492:
inc Zp65 ; CPU:$D5E8 PRG:55E8 E6 65
; -----------------------------------------------------------------------------
; Routine: Sub_Loop493
; Global: Branch target inside Sub: taken when Loop493.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop493:
rts ; CPU:$D5EA PRG:55EA 60
; -----------------------------------------------------------------------------
; Routine: Sub_D5EB
; Global: Branch target inside Sub: taken when D5EB.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D5EB:
ldy #$01 ; CPU:$D5EB PRG:55EB A0 01
lda Zp40 ; CPU:$D5ED PRG:55ED A5 40
cmp #$6A ; CPU:$D5EF PRG:55EF C9 6A
bcs Sub_Loop494 ; CPU:$D5F1 PRG:55F1 B0 06
iny ; CPU:$D5F3 PRG:55F3 C8
cmp #$17 ; CPU:$D5F4 PRG:55F4 C9 17
bcs Sub_Loop494 ; CPU:$D5F6 PRG:55F6 B0 01
iny ; CPU:$D5F8 PRG:55F8 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop494
; Global: Branch target inside Sub: taken when Loop494.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop494:
sty Zp3F ; CPU:$D5F9 PRG:55F9 84 3F
ldx #$01 ; CPU:$D5FB PRG:55FB A2 01
cmp #$80 ; CPU:$D5FD PRG:55FD C9 80
beq Sub_Loop495 ; CPU:$D5FF PRG:55FF F0 0A
inx ; CPU:$D601 PRG:5601 E8
cmp #$4A ; CPU:$D602 PRG:5602 C9 4A
beq Sub_Loop495 ; CPU:$D604 PRG:5604 F0 05
inx ; CPU:$D606 PRG:5606 E8
cmp #$16 ; CPU:$D607 PRG:5607 C9 16
bne Sub_Loop496 ; CPU:$D609 PRG:5609 D0 09
; -----------------------------------------------------------------------------
; Routine: Sub_Loop495
; Global: Branch target inside Sub: taken when Loop495.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop495:
txa ; CPU:$D60B PRG:560B 8A
pha ; CPU:$D60C PRG:560C 48
jsr Sub_9BF6 ; CPU:$D60D PRG:560D 20 F6 9B
pla ; CPU:$D610 PRG:5610 68
jsr Sub_F03D ; CPU:$D611 PRG:5611 20 3D F0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop496
; Global: Branch target inside Sub: taken when Loop496.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop496:
rts ; CPU:$D614 PRG:5614 60
; -----------------------------------------------------------------------------
; Routine: Sub_D615
; Global: Branch target inside Sub: taken when D615.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D615:
ldx #$13 ; CPU:$D615 PRG:5615 A2 13
lda GameState ; CPU:$D617 PRG:5617 A5 36
and #$40 ; CPU:$D619 PRG:5619 29 40
bne Sub_Loop497 ; CPU:$D61B PRG:561B D0 02
ldx #$18 ; CPU:$D61D PRG:561D A2 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop497
; Global: Branch target inside Sub: taken when Loop497.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop497:
lda PlayerTile,x ; CPU:$D61F PRG:561F B5 32
and #$3F ; CPU:$D621 PRG:5621 29 3F
cmp #$02 ; CPU:$D623 PRG:5623 C9 02
beq Sub_Loop503 ; CPU:$D625 PRG:5625 F0 2C
cmp #$03 ; CPU:$D627 PRG:5627 C9 03
beq Sub_Loop506 ; CPU:$D629 PRG:5629 F0 49
cmp #$04 ; CPU:$D62B PRG:562B C9 04
bne Sub_Loop498 ; CPU:$D62D PRG:562D D0 03
jmp Sub_D67F ; CPU:$D62F PRG:562F 4C 7F D6
; -----------------------------------------------------------------------------
; Routine: Sub_Loop498
; Global: Branch target inside Sub: taken when Loop498.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop498:
cmp #$05 ; CPU:$D632 PRG:5632 C9 05
bne Sub_Loop499 ; CPU:$D634 PRG:5634 D0 03
jmp Sub_D6DB ; CPU:$D636 PRG:5636 4C DB D6
; -----------------------------------------------------------------------------
; Routine: Sub_Loop499
; Global: Branch target inside Sub: taken when Loop499.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop499:
cmp #$06 ; CPU:$D639 PRG:5639 C9 06
bne Sub_Loop500 ; CPU:$D63B PRG:563B D0 03
jmp Sub_D719 ; CPU:$D63D PRG:563D 4C 19 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop500
; Global: Branch target inside Sub: taken when Loop500.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop500:
cmp #$07 ; CPU:$D640 PRG:5640 C9 07
bne Sub_Loop501 ; CPU:$D642 PRG:5642 D0 03
jmp Sub_D76B ; CPU:$D644 PRG:5644 4C 6B D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop501
; Global: Branch target inside Sub: taken when Loop501.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop501:
cmp #$08 ; CPU:$D647 PRG:5647 C9 08
bne Sub_Loop502 ; CPU:$D649 PRG:5649 D0 03
jmp Sub_D782 ; CPU:$D64B PRG:564B 4C 82 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop502
; Global: Branch target inside Sub: taken when Loop502.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop502:
ldy #$20 ; CPU:$D64E PRG:564E A0 20
jmp Sub_D7DA ; CPU:$D650 PRG:5650 4C DA D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop503
; Global: Branch target inside Sub: taken when Loop503.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop503:
dec GameState,x ; CPU:$D653 PRG:5653 D6 36
beq Sub_Loop505 ; CPU:$D655 PRG:5655 F0 16
lda GameState,x ; CPU:$D657 PRG:5657 B5 36
cmp #$09 ; CPU:$D659 PRG:5659 C9 09
bcs Sub_Loop504 ; CPU:$D65B PRG:565B B0 0D
and #$FE ; CPU:$D65D PRG:565D 29 FE
tay ; CPU:$D65F PRG:565F A8
lda $D7AA,y ; CPU:$D660 PRG:5660 B9 AA D7
sta PlayerX,x ; CPU:$D663 PRG:5663 95 33
lda $D7AB,y ; CPU:$D665 PRG:5665 B9 AB D7
sta PlayerY,x ; CPU:$D668 PRG:5668 95 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop504
; Global: Branch target inside Sub: taken when Loop504.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop504:
jmp Sub_D7A6 ; CPU:$D66A PRG:566A 4C A6 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop505
; Global: Branch target inside Sub: taken when Loop505.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop505:
lda #$40 ; CPU:$D66D PRG:566D A9 40
sta PlayerTile,x ; CPU:$D66F PRG:566F 95 32
jmp Sub_D7A9 ; CPU:$D671 PRG:5671 4C A9 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop506
; Global: Branch target inside Sub: taken when Loop506.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop506:
dec GameState,x ; CPU:$D674 PRG:5674 D6 36
bne Sub_Loop507 ; CPU:$D676 PRG:5676 D0 04
lda #$44 ; CPU:$D678 PRG:5678 A9 44
sta PlayerTile,x ; CPU:$D67A PRG:567A 95 32
; -----------------------------------------------------------------------------
; Routine: Sub_Loop507
; Global: Branch target inside Sub: taken when Loop507.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop507:
jmp Sub_D7A6 ; CPU:$D67C PRG:567C 4C A6 D7
; -----------------------------------------------------------------------------
; Routine: Sub_D67F
; Global: Branch target inside Sub: taken when D67F.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D67F:
txa ; CPU:$D67F PRG:567F 8A
pha ; CPU:$D680 PRG:5680 48
ldx WrestlerIndex2 ; CPU:$D681 PRG:5681 A6 86
lda PlayerX,x ; CPU:$D683 PRG:5683 B5 33
sta PlayerState ; CPU:$D685 PRG:5685 85 1A
lda PlayerY,x ; CPU:$D687 PRG:5687 B5 34
sta Zp1B ; CPU:$D689 PRG:5689 85 1B
pla ; CPU:$D68B PRG:568B 68
tax ; CPU:$D68C PRG:568C AA
lda Zp1B ; CPU:$D68D PRG:568D A5 1B
cmp PlayerY,x ; CPU:$D68F PRG:568F D5 34
beq Sub_Loop511 ; CPU:$D691 PRG:5691 F0 20
bcc Sub_Loop509 ; CPU:$D693 PRG:5693 90 0F
inc PlayerY,x ; CPU:$D695 PRG:5695 F6 34
lda PlayerY,x ; CPU:$D697 PRG:5697 B5 34
cmp Zp1B ; CPU:$D699 PRG:5699 C5 1B
beq Sub_Loop508 ; CPU:$D69B PRG:569B F0 02
inc PlayerY,x ; CPU:$D69D PRG:569D F6 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop508
; Global: Branch target inside Sub: taken when Loop508.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop508:
lda #$C4 ; CPU:$D69F PRG:569F A9 C4
jmp Sub_D6D6 ; CPU:$D6A1 PRG:56A1 4C D6 D6
; -----------------------------------------------------------------------------
; Routine: Sub_Loop509
; Global: Branch target inside Sub: taken when Loop509.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop509:
dec PlayerY,x ; CPU:$D6A4 PRG:56A4 D6 34
lda PlayerY,x ; CPU:$D6A6 PRG:56A6 B5 34
cmp Zp1B ; CPU:$D6A8 PRG:56A8 C5 1B
beq Sub_Loop510 ; CPU:$D6AA PRG:56AA F0 02
dec PlayerY,x ; CPU:$D6AC PRG:56AC D6 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop510
; Global: Branch target inside Sub: taken when Loop510.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop510:
lda #$84 ; CPU:$D6AE PRG:56AE A9 84
jmp Sub_D6D6 ; CPU:$D6B0 PRG:56B0 4C D6 D6
; -----------------------------------------------------------------------------
; Routine: Sub_Loop511
; Global: Branch target inside Sub: taken when Loop511.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop511:
lda PlayerX,x ; CPU:$D6B3 PRG:56B3 B5 33
sec ; CPU:$D6B5 PRG:56B5 38
sbc PlayerState ; CPU:$D6B6 PRG:56B6 E5 1A
cmp #$08 ; CPU:$D6B8 PRG:56B8 C9 08
bcs Sub_Loop512 ; CPU:$D6BA PRG:56BA B0 14
lda ZpA2 ; CPU:$D6BC PRG:56BC A5 A2
ora #$80 ; CPU:$D6BE PRG:56BE 09 80
sta ZpA2 ; CPU:$D6C0 PRG:56C0 85 A2
txa ; CPU:$D6C2 PRG:56C2 8A
pha ; CPU:$D6C3 PRG:56C3 48
lda #$02 ; CPU:$D6C4 PRG:56C4 A9 02
jsr Sub_F036 ; CPU:$D6C6 PRG:56C6 20 36 F0
pla ; CPU:$D6C9 PRG:56C9 68
tax ; CPU:$D6CA PRG:56CA AA
lda #$05 ; CPU:$D6CB PRG:56CB A9 05
jmp Sub_D6D6 ; CPU:$D6CD PRG:56CD 4C D6 D6
; -----------------------------------------------------------------------------
; Routine: Sub_Loop512
; Global: Branch target inside Sub: taken when Loop512.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop512:
dec PlayerX,x ; CPU:$D6D0 PRG:56D0 D6 33
dec PlayerX,x ; CPU:$D6D2 PRG:56D2 D6 33
lda #$44 ; CPU:$D6D4 PRG:56D4 A9 44
; -----------------------------------------------------------------------------
; Routine: Sub_D6D6
; Global: Branch target inside Sub: taken when D6D6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D6D6:
sta PlayerTile,x ; CPU:$D6D6 PRG:56D6 95 32
jmp Sub_D7A6 ; CPU:$D6D8 PRG:56D8 4C A6 D7
; -----------------------------------------------------------------------------
; Routine: Sub_D6DB
; Global: Branch target inside Sub: taken when D6DB.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D6DB:
lda #$00 ; CPU:$D6DB PRG:56DB A9 00
sta ZpA2 ; CPU:$D6DD PRG:56DD 85 A2
lda PlayerX,x ; CPU:$D6DF PRG:56DF B5 33
cmp #$A8 ; CPU:$D6E1 PRG:56E1 C9 A8
bcs Sub_Loop513 ; CPU:$D6E3 PRG:56E3 B0 09
inc PlayerX,x ; CPU:$D6E5 PRG:56E5 F6 33
inc PlayerX,x ; CPU:$D6E7 PRG:56E7 F6 33
lda #$05 ; CPU:$D6E9 PRG:56E9 A9 05
jmp Sub_D714 ; CPU:$D6EB PRG:56EB 4C 14 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop513
; Global: Branch target inside Sub: taken when Loop513.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop513:
lda PlayerY,x ; CPU:$D6EE PRG:56EE B5 34
cmp #$2E ; CPU:$D6F0 PRG:56F0 C9 2E
bcc Sub_Loop514 ; CPU:$D6F2 PRG:56F2 90 0D
cmp #$32 ; CPU:$D6F4 PRG:56F4 C9 32
bcc Sub_Loop515 ; CPU:$D6F6 PRG:56F6 90 12
dec PlayerY,x ; CPU:$D6F8 PRG:56F8 D6 34
dec PlayerY,x ; CPU:$D6FA PRG:56FA D6 34
lda #$85 ; CPU:$D6FC PRG:56FC A9 85
jmp Sub_D714 ; CPU:$D6FE PRG:56FE 4C 14 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop514
; Global: Branch target inside Sub: taken when Loop514.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop514:
inc PlayerY,x ; CPU:$D701 PRG:5701 F6 34
inc PlayerY,x ; CPU:$D703 PRG:5703 F6 34
lda #$C5 ; CPU:$D705 PRG:5705 A9 C5
jmp Sub_D714 ; CPU:$D707 PRG:5707 4C 14 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop515
; Global: Branch target inside Sub: taken when Loop515.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop515:
lda #$B0 ; CPU:$D70A PRG:570A A9 B0
sta PlayerX,x ; CPU:$D70C PRG:570C 95 33
lda #$2A ; CPU:$D70E PRG:570E A9 2A
sta PlayerY,x ; CPU:$D710 PRG:5710 95 34
lda #$40 ; CPU:$D712 PRG:5712 A9 40
; -----------------------------------------------------------------------------
; Routine: Sub_D714
; Global: Branch target inside Sub: taken when D714.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D714:
sta PlayerTile,x ; CPU:$D714 PRG:5714 95 32
jmp Sub_D7A6 ; CPU:$D716 PRG:5716 4C A6 D7
; -----------------------------------------------------------------------------
; Routine: Sub_D719
; Global: Branch target inside Sub: taken when D719.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D719:
stx PlayerState ; CPU:$D719 PRG:5719 86 1A
ldx WrestlerIndex ; CPU:$D71B PRG:571B A6 85
lda PlayerX,x ; CPU:$D71D PRG:571D B5 33
sec ; CPU:$D71F PRG:571F 38
sbc #$10 ; CPU:$D720 PRG:5720 E9 10
sta Zp1B ; CPU:$D722 PRG:5722 85 1B
lda PlayerY,x ; CPU:$D724 PRG:5724 B5 34
clc ; CPU:$D726 PRG:5726 18
adc #$18 ; CPU:$D727 PRG:5727 69 18
sta Zp1C ; CPU:$D729 PRG:5729 85 1C
ldx PlayerState ; CPU:$D72B PRG:572B A6 1A
lda PlayerX,x ; CPU:$D72D PRG:572D B5 33
cmp Zp1B ; CPU:$D72F PRG:572F C5 1B
bcs Sub_Loop516 ; CPU:$D731 PRG:5731 B0 09
lda PlayerY,x ; CPU:$D733 PRG:5733 B5 34
cmp Zp1C ; CPU:$D735 PRG:5735 C5 1C
.byte $B0, $1F ; CPU:$D737 PRG:5737 B0 1F
jmp Sub_D740 ; CPU:$D739 PRG:5739 4C 40 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop516
; Global: Branch target inside Sub: taken when Loop516.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop516:
dec PlayerX,x ; CPU:$D73C PRG:573C D6 33
dec PlayerX,x ; CPU:$D73E PRG:573E D6 33
; -----------------------------------------------------------------------------
; Routine: Sub_D740
; Global: Branch target inside Sub: taken when D740.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D740:
lda PlayerY,x ; CPU:$D740 PRG:5740 B5 34
cmp Zp1C ; CPU:$D742 PRG:5742 C5 1C
bcc Sub_Loop517 ; CPU:$D744 PRG:5744 90 09
dec PlayerY,x ; CPU:$D746 PRG:5746 D6 34
dec PlayerY,x ; CPU:$D748 PRG:5748 D6 34
dec PlayerY,x ; CPU:$D74A PRG:574A D6 34
jmp Sub_D768 ; CPU:$D74C PRG:574C 4C 68 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop517
; Global: Branch target inside Sub: taken when Loop517.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop517:
inc PlayerY,x ; CPU:$D74F PRG:574F F6 34
inc PlayerY,x ; CPU:$D751 PRG:5751 F6 34
inc PlayerY,x ; CPU:$D753 PRG:5753 F6 34
; -----------------------------------------------------------------------------
; Routine: Label_D755
; Global: Branch target inside Label: taken when D755.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_D755:
jmp Sub_D768 ; CPU:$D755 PRG:5755 4C 68 D7
lda Zp1B ; CPU:$D758 PRG:5758 A5 1B
sta PlayerX,x ; CPU:$D75A PRG:575A 95 33
lda Zp1C ; CPU:$D75C PRG:575C A5 1C
sta PlayerY,x ; CPU:$D75E PRG:575E 95 34
lda #$47 ; CPU:$D760 PRG:5760 A9 47
sta PlayerTile,x ; CPU:$D762 PRG:5762 95 32
lda #$10 ; CPU:$D764 PRG:5764 A9 10
sta GameState,x ; CPU:$D766 PRG:5766 95 36
; -----------------------------------------------------------------------------
; Routine: Sub_D768
; Global: Branch target inside Sub: taken when D768.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D768:
jmp Sub_D7A9 ; CPU:$D768 PRG:5768 4C A9 D7
; -----------------------------------------------------------------------------
; Routine: Sub_D76B
; Global: Branch target inside Sub: taken when D76B.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D76B:
dec GameState,x ; CPU:$D76B PRG:576B D6 36
beq Sub_Loop518 ; CPU:$D76D PRG:576D F0 03
jmp Sub_D7A9 ; CPU:$D76F PRG:576F 4C A9 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop518
; Global: Branch target inside Sub: taken when Loop518.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop518:
lda #$10 ; CPU:$D772 PRG:5772 A9 10
sta GameState,x ; CPU:$D774 PRG:5774 95 36
lda #$88 ; CPU:$D776 PRG:5776 A9 88
sta PlayerTile,x ; CPU:$D778 PRG:5778 95 32
lda #$07 ; CPU:$D77A PRG:577A A9 07
jsr Sub_F036 ; CPU:$D77C PRG:577C 20 36 F0
jmp Sub_D7A9 ; CPU:$D77F PRG:577F 4C A9 D7
; -----------------------------------------------------------------------------
; Routine: Sub_D782
; Global: Branch target inside Sub: taken when D782.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D782:
dec GameState,x ; CPU:$D782 PRG:5782 D6 36
beq Sub_Loop519 ; CPU:$D784 PRG:5784 F0 03
jmp Sub_D7A9 ; CPU:$D786 PRG:5786 4C A9 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop519
; Global: Branch target inside Sub: taken when Loop519.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop519:
lda #$B0 ; CPU:$D789 PRG:5789 A9 B0
sta PlayerX,x ; CPU:$D78B PRG:578B 95 33
lda #$2A ; CPU:$D78D PRG:578D A9 2A
sta PlayerY,x ; CPU:$D78F PRG:578F 95 34
lda #$40 ; CPU:$D791 PRG:5791 A9 40
sta PlayerTile,x ; CPU:$D793 PRG:5793 95 32
lda #$F0 ; CPU:$D795 PRG:5795 A9 F0
sta $0700 ; CPU:$D797 PRG:5797 8D 00 07
sta $0704 ; CPU:$D79A PRG:579A 8D 04 07
sta $0708 ; CPU:$D79D PRG:579D 8D 08 07
sta $070C ; CPU:$D7A0 PRG:57A0 8D 0C 07
jmp Sub_D58E ; CPU:$D7A3 PRG:57A3 4C 8E D5
; -----------------------------------------------------------------------------
; Routine: Sub_D7A6
; Global: Branch target inside Sub: taken when D7A6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D7A6:
jmp Sub_D8C8 ; CPU:$D7A6 PRG:57A6 4C C8 D8
; -----------------------------------------------------------------------------
; Routine: Sub_D7A9
; Global: Branch target inside Sub: taken when D7A9.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D7A9:
rts ; CPU:$D7A9 PRG:57A9 60
; ---- data $D7AA-$D7B2 (9 bytes) ----
; referenced by `lda $D7AA,y` at $D660 (operand $D7AA falls inside this region)
; referenced by `lda $D7AB,y` at $D665 (operand $D7AB falls inside this region)
.byte $90, $48, $88, $44, $80, $3A, $88, $34, $98 ; CPU:$D7AA PRG:57AA 90 48 88 44 80 3A 88 34 98
; -----------------------------------------------------------------------------
; Routine: Label_D7B3
; Global: Branch target inside Label: taken when D7B3.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_D7B3:
.byte $30, $A2 ; CPU:$D7B3 PRG:57B3 30 A2
plp ; CPU:$D7B5 PRG:57B5 28
lda GameState ; CPU:$D7B6 PRG:57B6 A5 36
and #$20 ; CPU:$D7B8 PRG:57B8 29 20
beq Sub_Loop520 ; CPU:$D7BA PRG:57BA F0 02
ldx #$23 ; CPU:$D7BC PRG:57BC A2 23
; -----------------------------------------------------------------------------
; Routine: Sub_Loop520
; Global: Branch target inside Sub: taken when Loop520.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop520:
lda PlayerTile,x ; CPU:$D7BE PRG:57BE B5 32
and #$3F ; CPU:$D7C0 PRG:57C0 29 3F
cmp #$02 ; CPU:$D7C2 PRG:57C2 C9 02
beq Sub_Loop525 ; CPU:$D7C4 PRG:57C4 F0 3F
cmp #$03 ; CPU:$D7C6 PRG:57C6 C9 03
beq Sub_Loop528 ; CPU:$D7C8 PRG:57C8 F0 5C
cmp #$04 ; CPU:$D7CA PRG:57CA C9 04
bne Sub_Loop521 ; CPU:$D7CC PRG:57CC D0 03
jmp Sub_D831 ; CPU:$D7CE PRG:57CE 4C 31 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop521
; Global: Branch target inside Sub: taken when Loop521.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop521:
cmp #$05 ; CPU:$D7D1 PRG:57D1 C9 05
bne Sub_Loop522 ; CPU:$D7D3 PRG:57D3 D0 03
jmp Sub_D88D ; CPU:$D7D5 PRG:57D5 4C 8D D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop522
; Global: Branch target inside Sub: taken when Loop522.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop522:
ldy #$00 ; CPU:$D7D8 PRG:57D8 A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_D7DA
; Global: Branch target inside Sub: taken when D7DA.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D7DA:
sty PlayerState ; CPU:$D7DA PRG:57DA 84 1A
lda Zp3B ; CPU:$D7DC PRG:57DC A5 3B
bpl Sub_Loop524 ; CPU:$D7DE PRG:57DE 10 1C
and #$20 ; CPU:$D7E0 PRG:57E0 29 20
cmp PlayerState ; CPU:$D7E2 PRG:57E2 C5 1A
beq Sub_Loop523 ; CPU:$D7E4 PRG:57E4 F0 09
lda ZpAC ; CPU:$D7E6 PRG:57E6 A5 AC
and #$08 ; CPU:$D7E8 PRG:57E8 29 08
beq Sub_Loop524 ; CPU:$D7EA PRG:57EA F0 10
jmp Sub_D7F5 ; CPU:$D7EC PRG:57EC 4C F5 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop523
; Global: Branch target inside Sub: taken when Loop523.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop523:
lda ZpAC ; CPU:$D7EF PRG:57EF A5 AC
and #$20 ; CPU:$D7F1 PRG:57F1 29 20
; -----------------------------------------------------------------------------
; Routine: Label_D7F3
; Global: Branch target inside Label: taken when D7F3.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_D7F3:
beq Sub_Loop524 ; CPU:$D7F3 PRG:57F3 F0 07
; -----------------------------------------------------------------------------
; Routine: Sub_D7F5
; Global: Branch target inside Sub: taken when D7F5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D7F5:
lda PlayerTile,x ; CPU:$D7F5 PRG:57F5 B5 32
ora #$01 ; CPU:$D7F7 PRG:57F7 09 01
jmp Sub_D800 ; CPU:$D7F9 PRG:57F9 4C 00 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop524
; Global: Branch target inside Sub: taken when Loop524.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop524:
lda PlayerTile,x ; CPU:$D7FC PRG:57FC B5 32
and #$C0 ; CPU:$D7FE PRG:57FE 29 C0
; -----------------------------------------------------------------------------
; Routine: Sub_D800
; Global: Branch target inside Sub: taken when D800.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D800:
sta PlayerTile,x ; CPU:$D800 PRG:5800 95 32
jmp Sub_D8C8 ; CPU:$D802 PRG:5802 4C C8 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop525
; Global: Branch target inside Sub: taken when Loop525.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop525:
dec GameState,x ; CPU:$D805 PRG:5805 D6 36
beq Sub_Loop527 ; CPU:$D807 PRG:5807 F0 16
lda GameState,x ; CPU:$D809 PRG:5809 B5 36
cmp #$09 ; CPU:$D80B PRG:580B C9 09
bcs Sub_Loop526 ; CPU:$D80D PRG:580D B0 0D
and #$FE ; CPU:$D80F PRG:580F 29 FE
tay ; CPU:$D811 PRG:5811 A8
lda $D8E3,y ; CPU:$D812 PRG:5812 B9 E3 D8
sta PlayerX,x ; CPU:$D815 PRG:5815 95 33
lda $D8E4,y ; CPU:$D817 PRG:5817 B9 E4 D8
sta PlayerY,x ; CPU:$D81A PRG:581A 95 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop526
; Global: Branch target inside Sub: taken when Loop526.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop526:
jmp Sub_D8C8 ; CPU:$D81C PRG:581C 4C C8 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop527
; Global: Branch target inside Sub: taken when Loop527.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop527:
lda #$00 ; CPU:$D81F PRG:581F A9 00
sta PlayerTile,x ; CPU:$D821 PRG:5821 95 32
jmp Sub_Loop539 ; CPU:$D823 PRG:5823 4C E2 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop528
; Global: Branch target inside Sub: taken when Loop528.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop528:
dec GameState,x ; CPU:$D826 PRG:5826 D6 36
bne Sub_Loop529 ; CPU:$D828 PRG:5828 D0 04
lda #$04 ; CPU:$D82A PRG:582A A9 04
sta PlayerTile,x ; CPU:$D82C PRG:582C 95 32
; -----------------------------------------------------------------------------
; Routine: Sub_Loop529
; Global: Branch target inside Sub: taken when Loop529.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop529:
jmp Sub_D8C8 ; CPU:$D82E PRG:582E 4C C8 D8
; -----------------------------------------------------------------------------
; Routine: Sub_D831
; Global: Branch target inside Sub: taken when D831.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D831:
txa ; CPU:$D831 PRG:5831 8A
pha ; CPU:$D832 PRG:5832 48
ldx WrestlerIndex ; CPU:$D833 PRG:5833 A6 85
lda PlayerX,x ; CPU:$D835 PRG:5835 B5 33
sta PlayerState ; CPU:$D837 PRG:5837 85 1A
lda PlayerY,x ; CPU:$D839 PRG:5839 B5 34
sta Zp1B ; CPU:$D83B PRG:583B 85 1B
pla ; CPU:$D83D PRG:583D 68
tax ; CPU:$D83E PRG:583E AA
lda Zp1B ; CPU:$D83F PRG:583F A5 1B
cmp PlayerY,x ; CPU:$D841 PRG:5841 D5 34
beq Sub_Loop533 ; CPU:$D843 PRG:5843 F0 20
bcc Sub_Loop531 ; CPU:$D845 PRG:5845 90 0F
inc PlayerY,x ; CPU:$D847 PRG:5847 F6 34
lda PlayerY,x ; CPU:$D849 PRG:5849 B5 34
cmp #$1B ; CPU:$D84B PRG:584B C9 1B
beq Sub_Loop530 ; CPU:$D84D PRG:584D F0 02
inc PlayerY,x ; CPU:$D84F PRG:584F F6 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop530
; Global: Branch target inside Sub: taken when Loop530.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop530:
lda #$C4 ; CPU:$D851 PRG:5851 A9 C4
jmp Sub_D888 ; CPU:$D853 PRG:5853 4C 88 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop531
; Global: Branch target inside Sub: taken when Loop531.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop531:
dec PlayerY,x ; CPU:$D856 PRG:5856 D6 34
lda PlayerY,x ; CPU:$D858 PRG:5858 B5 34
cmp Zp1B ; CPU:$D85A PRG:585A C5 1B
beq Sub_Loop532 ; CPU:$D85C PRG:585C F0 02
dec PlayerY,x ; CPU:$D85E PRG:585E D6 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop532
; Global: Branch target inside Sub: taken when Loop532.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop532:
lda #$84 ; CPU:$D860 PRG:5860 A9 84
jmp Sub_D888 ; CPU:$D862 PRG:5862 4C 88 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop533
; Global: Branch target inside Sub: taken when Loop533.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop533:
lda PlayerState ; CPU:$D865 PRG:5865 A5 1A
sec ; CPU:$D867 PRG:5867 38
sbc PlayerX,x ; CPU:$D868 PRG:5868 F5 33
cmp #$08 ; CPU:$D86A PRG:586A C9 08
bcs Sub_Loop534 ; CPU:$D86C PRG:586C B0 14
lda ZpA2 ; CPU:$D86E PRG:586E A5 A2
ora #$80 ; CPU:$D870 PRG:5870 09 80
sta ZpA2 ; CPU:$D872 PRG:5872 85 A2
txa ; CPU:$D874 PRG:5874 8A
pha ; CPU:$D875 PRG:5875 48
lda #$02 ; CPU:$D876 PRG:5876 A9 02
jsr Sub_F036 ; CPU:$D878 PRG:5878 20 36 F0
pla ; CPU:$D87B PRG:587B 68
tax ; CPU:$D87C PRG:587C AA
lda #$05 ; CPU:$D87D PRG:587D A9 05
jmp Sub_D888 ; CPU:$D87F PRG:587F 4C 88 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop534
; Global: Branch target inside Sub: taken when Loop534.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop534:
inc PlayerX,x ; CPU:$D882 PRG:5882 F6 33
inc PlayerX,x ; CPU:$D884 PRG:5884 F6 33
lda #$04 ; CPU:$D886 PRG:5886 A9 04
; -----------------------------------------------------------------------------
; Routine: Sub_D888
; Global: Branch target inside Sub: taken when D888.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D888:
sta PlayerTile,x ; CPU:$D888 PRG:5888 95 32
jmp Sub_D8C8 ; CPU:$D88A PRG:588A 4C C8 D8
; -----------------------------------------------------------------------------
; Routine: Sub_D88D
; Global: Branch target inside Sub: taken when D88D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D88D:
lda #$00 ; CPU:$D88D PRG:588D A9 00
sta ZpA2 ; CPU:$D88F PRG:588F 85 A2
lda PlayerX,x ; CPU:$D891 PRG:5891 B5 33
cmp #$38 ; CPU:$D893 PRG:5893 C9 38
bcc Sub_Loop535 ; CPU:$D895 PRG:5895 90 09
dec PlayerX,x ; CPU:$D897 PRG:5897 D6 33
dec PlayerX,x ; CPU:$D899 PRG:5899 D6 33
lda #$45 ; CPU:$D89B PRG:589B A9 45
jmp Sub_D8C6 ; CPU:$D89D PRG:589D 4C C6 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop535
; Global: Branch target inside Sub: taken when Loop535.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop535:
lda PlayerY,x ; CPU:$D8A0 PRG:58A0 B5 34
cmp #$B2 ; CPU:$D8A2 PRG:58A2 C9 B2
bcs Sub_Loop536 ; CPU:$D8A4 PRG:58A4 B0 0D
cmp #$AE ; CPU:$D8A6 PRG:58A6 C9 AE
bcs Sub_Loop537 ; CPU:$D8A8 PRG:58A8 B0 12
inc PlayerY,x ; CPU:$D8AA PRG:58AA F6 34
inc PlayerY,x ; CPU:$D8AC PRG:58AC F6 34
lda #$C5 ; CPU:$D8AE PRG:58AE A9 C5
jmp Sub_D8C6 ; CPU:$D8B0 PRG:58B0 4C C6 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop536
; Global: Branch target inside Sub: taken when Loop536.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop536:
dec PlayerY,x ; CPU:$D8B3 PRG:58B3 D6 34
dec PlayerY,x ; CPU:$D8B5 PRG:58B5 D6 34
lda #$85 ; CPU:$D8B7 PRG:58B7 A9 85
jmp Sub_D8C6 ; CPU:$D8B9 PRG:58B9 4C C6 D8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop537
; Global: Branch target inside Sub: taken when Loop537.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop537:
lda #$30 ; CPU:$D8BC PRG:58BC A9 30
sta PlayerX,x ; CPU:$D8BE PRG:58BE 95 33
lda #$B4 ; CPU:$D8C0 PRG:58C0 A9 B4
sta PlayerY,x ; CPU:$D8C2 PRG:58C2 95 34
lda #$00 ; CPU:$D8C4 PRG:58C4 A9 00
; -----------------------------------------------------------------------------
; Routine: Sub_D8C6
; Global: Branch target inside Sub: taken when D8C6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D8C6:
sta PlayerTile,x ; CPU:$D8C6 PRG:58C6 95 32
; -----------------------------------------------------------------------------
; Routine: Sub_D8C8
; Global: Branch target inside Sub: taken when D8C8.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D8C8:
ldy #$FF ; CPU:$D8C8 PRG:58C8 A0 FF
lda Zp7B ; CPU:$D8CA PRG:58CA A5 7B
and #$20 ; CPU:$D8CC PRG:58CC 29 20
bne Sub_Loop538 ; CPU:$D8CE PRG:58CE D0 02
ldy #$7F ; CPU:$D8D0 PRG:58D0 A0 7F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop538
; Global: Branch target inside Sub: taken when Loop538.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop538:
sty PlayerState ; CPU:$D8D2 PRG:58D2 84 1A
lda ZpAC ; CPU:$D8D4 PRG:58D4 A5 AC
and PlayerState ; CPU:$D8D6 PRG:58D6 25 1A
bne Sub_Loop539 ; CPU:$D8D8 PRG:58D8 D0 08
lda Zp35,x ; CPU:$D8DA PRG:58DA B5 35
cmp #$14 ; CPU:$D8DC PRG:58DC C9 14
bcs Sub_Loop539 ; CPU:$D8DE PRG:58DE B0 02
inc Zp35,x ; CPU:$D8E0 PRG:58E0 F6 35
; -----------------------------------------------------------------------------
; Routine: Sub_Loop539
; Global: Branch target inside Sub: taken when Loop539.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop539:
rts ; CPU:$D8E2 PRG:58E2 60
; -----------------------------------------------------------------------------
; Routine: Label_D8E3
; Global: Branch target inside Label: taken when D8E3.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_D8E3:
rti ; CPU:$D8E3 PRG:58E3 40
; -----------------------------------------------------------------------------
; Routine: Label_D8E4
; Global: Branch target inside Label: taken when D8E4.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_D8E4:
ldy #$30 ; CPU:$D8E4 PRG:58E4 A0 30
ldx #$24 ; CPU:$D8E6 PRG:58E6 A2 24
ldx Zp22 ; CPU:$D8E8 PRG:58E8 A6 22
ldy $B028 ; CPU:$D8EA PRG:58EA AC 28 B0
; -----------------------------------------------------------------------------
; Routine: Sub_D8ED
; Global: Branch target inside Sub: taken when D8ED.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D8ED:
lda GameState ; CPU:$D8ED PRG:58ED A5 36
bpl Sub_Loop542 ; CPU:$D8EF PRG:58EF 10 49
lda Zp44 ; CPU:$D8F1 PRG:58F1 A5 44
bne Sub_Loop541 ; CPU:$D8F3 PRG:58F3 D0 43
lda Zp43 ; CPU:$D8F5 PRG:58F5 A5 43
cmp #$02 ; CPU:$D8F7 PRG:58F7 C9 02
bne Sub_Loop540 ; CPU:$D8F9 PRG:58F9 D0 23
lda Zp41 ; CPU:$D8FB PRG:58FB A5 41
and #$30 ; CPU:$D8FD PRG:58FD 29 30
beq Sub_Loop542 ; CPU:$D8FF PRG:58FF F0 39
lda #$8C ; CPU:$D901 PRG:5901 A9 8C
jsr Sub_F036 ; CPU:$D903 PRG:5903 20 36 F0
jsr Sub_9BF3 ; CPU:$D906 PRG:5906 20 F3 9B
jsr Sub_FD19 ; CPU:$D909 PRG:5909 20 19 FD
ldx #$D9 ; CPU:$D90C PRG:590C A2 D9
ldy #$3B ; CPU:$D90E PRG:590E A0 3B
jsr Sub_FD3A ; CPU:$D910 PRG:5910 20 3A FD
lda #$0C ; CPU:$D913 PRG:5913 A9 0C
jsr Sub_FD40 ; CPU:$D915 PRG:5915 20 40 FD
jsr Sub_E9C6 ; CPU:$D918 PRG:5918 20 C6 E9
jmp Sub_FD13 ; CPU:$D91B PRG:591B 4C 13 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop540
; Global: Branch target inside Sub: taken when Loop540.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop540:
lda #$05 ; CPU:$D91E PRG:591E A9 05
jsr Sub_F036 ; CPU:$D920 PRG:5920 20 36 F0
lda #$40 ; CPU:$D923 PRG:5923 A9 40
sta Zp44 ; CPU:$D925 PRG:5925 85 44
lda Zp42 ; CPU:$D927 PRG:5927 A5 42
clc ; CPU:$D929 PRG:5929 18
adc #$01 ; CPU:$D92A PRG:592A 69 01
sta Zp42 ; CPU:$D92C PRG:592C 85 42
cmp #$0A ; CPU:$D92E PRG:592E C9 0A
bcc Sub_Loop541 ; CPU:$D930 PRG:5930 90 06
lda #$00 ; CPU:$D932 PRG:5932 A9 00
sta Zp42 ; CPU:$D934 PRG:5934 85 42
inc Zp43 ; CPU:$D936 PRG:5936 E6 43
; -----------------------------------------------------------------------------
; Routine: Sub_Loop541
; Global: Branch target inside Sub: taken when Loop541.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop541:
dec Zp44 ; CPU:$D938 PRG:5938 C6 44
; -----------------------------------------------------------------------------
; Routine: Sub_Loop542
; Global: Branch target inside Sub: taken when Loop542.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop542:
rts ; CPU:$D93A PRG:593A 60
; ---- data $D93B-$D947 (13 bytes) ----
.byte $8B, $21, $52, $49, $4E, $47, $20, $20, $4F, $55, $54, $21, $FF ; CPU:$D93B PRG:593B 8B 21 52 49 4E 47 20 20 4F 55 54 21 FF
; -----------------------------------------------------------------------------
; Routine: Sub_D948
; Global: Branch target inside Sub: taken when D948.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D948:
lda Zp35 ; CPU:$D948 PRG:5948 A5 35
beq Sub_Loop543 ; CPU:$D94A PRG:594A F0 03
jmp Sub_Loop550 ; CPU:$D94C PRG:594C 4C C7 D9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop543
; Global: Branch target inside Sub: taken when Loop543.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop543:
lda #$40 ; CPU:$D94F PRG:594F A9 40
sta Zp35 ; CPU:$D951 PRG:5951 85 35
inc PlayerTile ; CPU:$D953 PRG:5953 E6 32
lda PlayerTile ; CPU:$D955 PRG:5955 A5 32
cmp #$0A ; CPU:$D957 PRG:5957 C9 0A
bcc Sub_Loop544 ; CPU:$D959 PRG:5959 90 12
lda #$00 ; CPU:$D95B PRG:595B A9 00
sta PlayerTile ; CPU:$D95D PRG:595D 85 32
inc PlayerX ; CPU:$D95F PRG:595F E6 33
lda PlayerX ; CPU:$D961 PRG:5961 A5 33
cmp #$06 ; CPU:$D963 PRG:5963 C9 06
bcc Sub_Loop544 ; CPU:$D965 PRG:5965 90 06
lda #$00 ; CPU:$D967 PRG:5967 A9 00
sta PlayerX ; CPU:$D969 PRG:5969 85 33
inc PlayerY ; CPU:$D96B PRG:596B E6 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop544
; Global: Branch target inside Sub: taken when Loop544.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop544:
lda PlayerY ; CPU:$D96D PRG:596D A5 34
cmp #$05 ; CPU:$D96F PRG:596F C9 05
beq Sub_Loop548 ; CPU:$D971 PRG:5971 F0 2F
cmp #$04 ; CPU:$D973 PRG:5973 C9 04
beq Sub_Loop545 ; CPU:$D975 PRG:5975 F0 03
jmp Sub_Loop550 ; CPU:$D977 PRG:5977 4C C7 D9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop545
; Global: Branch target inside Sub: taken when Loop545.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop545:
lda #$80 ; CPU:$D97A PRG:597A A9 80
sta Zp8C ; CPU:$D97C PRG:597C 85 8C
lda PlayerTile ; CPU:$D97E PRG:597E A5 32
ora PlayerX ; CPU:$D980 PRG:5980 05 33
bne Sub_Loop546 ; CPU:$D982 PRG:5982 D0 03
jmp Sub_Loop550 ; CPU:$D984 PRG:5984 4C C7 D9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop546
; Global: Branch target inside Sub: taken when Loop546.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop546:
inc Zp8C ; CPU:$D987 PRG:5987 E6 8C
lda PlayerTile ; CPU:$D989 PRG:5989 A5 32
bne Sub_Loop547 ; CPU:$D98B PRG:598B D0 06
lda PlayerX ; CPU:$D98D PRG:598D A5 33
cmp #$03 ; CPU:$D98F PRG:598F C9 03
beq Sub_Loop550 ; CPU:$D991 PRG:5991 F0 34
; -----------------------------------------------------------------------------
; Routine: Sub_Loop547
; Global: Branch target inside Sub: taken when Loop547.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop547:
inc Zp8C ; CPU:$D993 PRG:5993 E6 8C
lda PlayerX ; CPU:$D995 PRG:5995 A5 33
cmp #$05 ; CPU:$D997 PRG:5997 C9 05
beq Sub_Loop550 ; CPU:$D999 PRG:5999 F0 2C
lda #$00 ; CPU:$D99B PRG:599B A9 00
sta Zp8C ; CPU:$D99D PRG:599D 85 8C
jmp Sub_Loop550 ; CPU:$D99F PRG:599F 4C C7 D9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop548
; Global: Branch target inside Sub: taken when Loop548.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop548:
lda #$8C ; CPU:$D9A2 PRG:59A2 A9 8C
jsr Sub_F036 ; CPU:$D9A4 PRG:59A4 20 36 F0
jsr Sub_9BF3 ; CPU:$D9A7 PRG:59A7 20 F3 9B
jsr Sub_FD19 ; CPU:$D9AA PRG:59AA 20 19 FD
ldx #$D9 ; CPU:$D9AD PRG:59AD A2 D9
ldy #$C8 ; CPU:$D9AF PRG:59AF A0 C8
lda GameState ; CPU:$D9B1 PRG:59B1 A5 36
bpl Sub_Loop549 ; CPU:$D9B3 PRG:59B3 10 04
ldx #$D9 ; CPU:$D9B5 PRG:59B5 A2 D9
ldy #$D7 ; CPU:$D9B7 PRG:59B7 A0 D7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop549
; Global: Branch target inside Sub: taken when Loop549.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop549:
jsr Sub_FD3A ; CPU:$D9B9 PRG:59B9 20 3A FD
lda #$0D ; CPU:$D9BC PRG:59BC A9 0D
jsr Sub_FD40 ; CPU:$D9BE PRG:59BE 20 40 FD
jsr Sub_E9C6 ; CPU:$D9C1 PRG:59C1 20 C6 E9
jmp Sub_FD13 ; CPU:$D9C4 PRG:59C4 4C 13 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop550
; Global: Branch target inside Sub: taken when Loop550.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop550:
rts ; CPU:$D9C7 PRG:59C7 60
; ---- data $D9C8-$D9E5 (30 bytes) ----
.byte $6A, $21, $20, $54, $49, $4D, $45, $20, $20, $4F, $56, $45, $52, $20, $FF, $2A ; CPU:$D9C8 PRG:59C8 6A 21 20 54 49 4D 45 20 20 4F 56 45 52 20 FF 2A
.byte $21, $20, $54, $49, $4D, $45, $20, $20, $4F, $56, $45, $52, $20, $FF ; CPU:$D9D8 PRG:59D8 21 20 54 49 4D 45 20 20 4F 56 45 52 20 FF
; -----------------------------------------------------------------------------
; Routine: Sub_D9E6
; Global: Branch target inside Sub: taken when D9E6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_D9E6:
ldx WrestlerIndex ; CPU:$D9E6 PRG:59E6 A6 85
lda PlayerTile,x ; CPU:$D9E8 PRG:59E8 B5 32
tay ; CPU:$D9EA PRG:59EA A8
and #$3F ; CPU:$D9EB PRG:59EB 29 3F
sta Zp1B ; CPU:$D9ED PRG:59ED 85 1B
asl a ; CPU:$D9EF PRG:59EF 0A
tax ; CPU:$D9F0 PRG:59F0 AA
tya ; CPU:$D9F1 PRG:59F1 98
and #$C0 ; CPU:$D9F2 PRG:59F2 29 C0
tay ; CPU:$D9F4 PRG:59F4 A8
lda $DA82,x ; CPU:$D9F5 PRG:59F5 BD 82 DA
sta Zp22 ; CPU:$D9F8 PRG:59F8 85 22
lda $DA83,x ; CPU:$D9FA PRG:59FA BD 83 DA
sta Zp23 ; CPU:$D9FD PRG:59FD 85 23
jmp (Zp22) ; CPU:$D9FF PRG:59FF 6C 22 00
; -----------------------------------------------------------------------------
; Routine: Label_DA02
; Global: Branch target inside Label: taken when DA02.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DA02:
ldx #$00 ; CPU:$DA02 PRG:5A02 A2 00
cpy #$00 ; CPU:$DA04 PRG:5A04 C0 00
beq Sub_Loop552 ; CPU:$DA06 PRG:5A06 F0 17
ldx #$08 ; CPU:$DA08 PRG:5A08 A2 08
cpy #$40 ; CPU:$DA0A PRG:5A0A C0 40
beq Sub_Loop552 ; CPU:$DA0C PRG:5A0C F0 11
ldx #$14 ; CPU:$DA0E PRG:5A0E A2 14
cpy #$80 ; CPU:$DA10 PRG:5A10 C0 80
beq Sub_Loop551 ; CPU:$DA12 PRG:5A12 F0 02
ldx #$3C ; CPU:$DA14 PRG:5A14 A2 3C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop551
; Global: Branch target inside Sub: taken when Loop551.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop551:
lda Zp6D ; CPU:$DA16 PRG:5A16 A5 6D
bpl Sub_Loop552 ; CPU:$DA18 PRG:5A18 10 05
txa ; CPU:$DA1A PRG:5A1A 8A
clc ; CPU:$DA1B PRG:5A1B 18
adc #$08 ; CPU:$DA1C PRG:5A1C 69 08
tax ; CPU:$DA1E PRG:5A1E AA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop552
; Global: Branch target inside Sub: taken when Loop552.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop552:
lda Zp1B ; CPU:$DA1F PRG:5A1F A5 1B
cmp #$02 ; CPU:$DA21 PRG:5A21 C9 02
bne Sub_Loop553 ; CPU:$DA23 PRG:5A23 D0 01
inx ; CPU:$DA25 PRG:5A25 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop553
; Global: Branch target inside Sub: taken when Loop553.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop553:
jmp Sub_DA4C ; CPU:$DA26 PRG:5A26 4C 4C DA
; -----------------------------------------------------------------------------
; Routine: Label_DA29
; Global: Branch target inside Label: taken when DA29.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DA29:
ldx #$00 ; CPU:$DA29 PRG:5A29 A2 00
jmp Sub_DA4C ; CPU:$DA2B PRG:5A2B 4C 4C DA
; -----------------------------------------------------------------------------
; Routine: Label_DA2E
; Global: Branch target inside Label: taken when DA2E.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DA2E:
ldx #$08 ; CPU:$DA2E PRG:5A2E A2 08
jmp Sub_DA4C ; CPU:$DA30 PRG:5A30 4C 4C DA
; -----------------------------------------------------------------------------
; Routine: Label_DA33
; Global: Branch target inside Label: taken when DA33.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DA33:
ldx #$30 ; CPU:$DA33 PRG:5A33 A2 30
cpy #$80 ; CPU:$DA35 PRG:5A35 C0 80
beq Sub_Loop554 ; CPU:$DA37 PRG:5A37 F0 02
ldx #$58 ; CPU:$DA39 PRG:5A39 A2 58
; -----------------------------------------------------------------------------
; Routine: Sub_Loop554
; Global: Branch target inside Sub: taken when Loop554.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop554:
lda WrestlerIndex ; CPU:$DA3B PRG:5A3B A5 85
cmp #$13 ; CPU:$DA3D PRG:5A3D C9 13
beq Sub_Loop555 ; CPU:$DA3F PRG:5A3F F0 01
inx ; CPU:$DA41 PRG:5A41 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop555
; Global: Branch target inside Sub: taken when Loop555.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop555:
stx ZpA8 ; CPU:$DA42 PRG:5A42 86 A8
jmp Sub_Loop556 ; CPU:$DA44 PRG:5A44 4C 58 DA
; -----------------------------------------------------------------------------
; Routine: Label_DA47
; Global: Branch target inside Label: taken when DA47.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DA47:
rts ; CPU:$DA47 PRG:5A47 60
; -----------------------------------------------------------------------------
; Routine: Label_DA48
; Global: Branch target inside Label: taken when DA48.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DA48:
rts ; CPU:$DA48 PRG:5A48 60
; -----------------------------------------------------------------------------
; Routine: Label_DA49
; Global: Branch target inside Label: taken when DA49.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DA49:
rts ; CPU:$DA49 PRG:5A49 60
; -----------------------------------------------------------------------------
; Routine: Label_DA4A
; Global: Branch target inside Label: taken when DA4A.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DA4A:
ldx #$14 ; CPU:$DA4A PRG:5A4A A2 14
; -----------------------------------------------------------------------------
; Routine: Sub_DA4C
; Global: Branch target inside Sub: taken when DA4C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DA4C:
lda WrestlerIndex ; CPU:$DA4C PRG:5A4C A5 85
cmp #$13 ; CPU:$DA4E PRG:5A4E C9 13
beq Sub_Loop556 ; CPU:$DA50 PRG:5A50 F0 06
inx ; CPU:$DA52 PRG:5A52 E8
inx ; CPU:$DA53 PRG:5A53 E8
jmp Sub_Loop556 ; CPU:$DA54 PRG:5A54 4C 58 DA
; -----------------------------------------------------------------------------
; Routine: Label_DA57
; Global: Branch target inside Label: taken when DA57.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DA57:
rts ; CPU:$DA57 PRG:5A57 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop556
; Global: Branch target inside Sub: taken when Loop556.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop556:
stx Zp8E ; CPU:$DA58 PRG:5A58 86 8E
lda #$80 ; CPU:$DA5A PRG:5A5A A9 80
sta Zp91 ; CPU:$DA5C PRG:5A5C 85 91
lda #$A0 ; CPU:$DA5E PRG:5A5E A9 A0
sta Zp92 ; CPU:$DA60 PRG:5A60 85 92
ldx WrestlerIndex ; CPU:$DA62 PRG:5A62 A6 85
ldy PlayerX,x ; CPU:$DA64 PRG:5A64 B4 33
ldx WrestlerIndex2 ; CPU:$DA66 PRG:5A66 A6 86
tya ; CPU:$DA68 PRG:5A68 98
cmp PlayerX,x ; CPU:$DA69 PRG:5A69 D5 33
bcs Sub_Loop557 ; CPU:$DA6B PRG:5A6B B0 08
lda #$A0 ; CPU:$DA6D PRG:5A6D A9 A0
sta Zp91 ; CPU:$DA6F PRG:5A6F 85 91
lda #$80 ; CPU:$DA71 PRG:5A71 A9 80
sta Zp92 ; CPU:$DA73 PRG:5A73 85 92
; -----------------------------------------------------------------------------
; Routine: Sub_Loop557
; Global: Branch target inside Sub: taken when Loop557.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop557:
ldx WrestlerIndex ; CPU:$DA75 PRG:5A75 A6 85
ldy PlayerX,x ; CPU:$DA77 PRG:5A77 B4 33
lda PlayerY,x ; CPU:$DA79 PRG:5A79 B5 34
tax ; CPU:$DA7B PRG:5A7B AA
lda #$00 ; CPU:$DA7C PRG:5A7C A9 00
jsr Sub_EADE ; CPU:$DA7E PRG:5A7E 20 DE EA
rts ; CPU:$DA81 PRG:5A81 60
; ---- data $DA82-$DA9B (26 bytes) ----
; referenced by `lda $DA82,x` at $D9F5 (operand $DA82 falls inside this region)
; referenced by `lda $DA83,x` at $D9FA (operand $DA83 falls inside this region)
.byte $02, $DA, $02, $DA, $02, $DA, $29, $DA, $29, $DA, $2E, $DA, $2E, $DA, $33, $DA ; CPU:$DA82 PRG:5A82 02 DA 02 DA 02 DA 29 DA 29 DA 2E DA 2E DA 33 DA
.byte $47, $DA, $48, $DA, $49, $DA, $4A, $DA, $57, $DA ; CPU:$DA92 PRG:5A92 47 DA 48 DA 49 DA 4A DA 57 DA
; -----------------------------------------------------------------------------
; Routine: Sub_DA9C
; Global: Branch target inside Sub: taken when DA9C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DA9C:
ldx WrestlerIndex2 ; CPU:$DA9C PRG:5A9C A6 86
lda PlayerTile,x ; CPU:$DA9E PRG:5A9E B5 32
tay ; CPU:$DAA0 PRG:5AA0 A8
and #$3F ; CPU:$DAA1 PRG:5AA1 29 3F
sta Zp1B ; CPU:$DAA3 PRG:5AA3 85 1B
asl a ; CPU:$DAA5 PRG:5AA5 0A
tax ; CPU:$DAA6 PRG:5AA6 AA
tya ; CPU:$DAA7 PRG:5AA7 98
and #$C0 ; CPU:$DAA8 PRG:5AA8 29 C0
tay ; CPU:$DAAA PRG:5AAA A8
lda $DB21,x ; CPU:$DAAB PRG:5AAB BD 21 DB
sta Zp22 ; CPU:$DAAE PRG:5AAE 85 22
lda $DB22,x ; CPU:$DAB0 PRG:5AB0 BD 22 DB
sta Zp23 ; CPU:$DAB3 PRG:5AB3 85 23
jmp (Zp22) ; CPU:$DAB5 PRG:5AB5 6C 22 00
; -----------------------------------------------------------------------------
; Routine: Label_DAB8
; Global: Branch target inside Label: taken when DAB8.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DAB8:
ldx #$04 ; CPU:$DAB8 PRG:5AB8 A2 04
cpy #$00 ; CPU:$DABA PRG:5ABA C0 00
beq Sub_Loop559 ; CPU:$DABC PRG:5ABC F0 17
ldx #$0C ; CPU:$DABE PRG:5ABE A2 0C
cpy #$40 ; CPU:$DAC0 PRG:5AC0 C0 40
beq Sub_Loop559 ; CPU:$DAC2 PRG:5AC2 F0 11
ldx #$18 ; CPU:$DAC4 PRG:5AC4 A2 18
cpy #$80 ; CPU:$DAC6 PRG:5AC6 C0 80
beq Sub_Loop558 ; CPU:$DAC8 PRG:5AC8 F0 02
ldx #$40 ; CPU:$DACA PRG:5ACA A2 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop558
; Global: Branch target inside Sub: taken when Loop558.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop558:
lda Zp70 ; CPU:$DACC PRG:5ACC A5 70
bpl Sub_Loop559 ; CPU:$DACE PRG:5ACE 10 05
txa ; CPU:$DAD0 PRG:5AD0 8A
clc ; CPU:$DAD1 PRG:5AD1 18
adc #$08 ; CPU:$DAD2 PRG:5AD2 69 08
tax ; CPU:$DAD4 PRG:5AD4 AA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop559
; Global: Branch target inside Sub: taken when Loop559.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop559:
lda Zp1B ; CPU:$DAD5 PRG:5AD5 A5 1B
cmp #$02 ; CPU:$DAD7 PRG:5AD7 C9 02
bne Sub_Loop560 ; CPU:$DAD9 PRG:5AD9 D0 01
inx ; CPU:$DADB PRG:5ADB E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop560
; Global: Branch target inside Sub: taken when Loop560.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop560:
jmp Sub_DB02 ; CPU:$DADC PRG:5ADC 4C 02 DB
; -----------------------------------------------------------------------------
; Routine: Label_DADF
; Global: Branch target inside Label: taken when DADF.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DADF:
ldx #$04 ; CPU:$DADF PRG:5ADF A2 04
jmp Sub_DB02 ; CPU:$DAE1 PRG:5AE1 4C 02 DB
; -----------------------------------------------------------------------------
; Routine: Label_DAE4
; Global: Branch target inside Label: taken when DAE4.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DAE4:
ldx #$0C ; CPU:$DAE4 PRG:5AE4 A2 0C
jmp Sub_DB02 ; CPU:$DAE6 PRG:5AE6 4C 02 DB
; -----------------------------------------------------------------------------
; Routine: Label_DAE9
; Global: Branch target inside Label: taken when DAE9.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DAE9:
ldx #$32 ; CPU:$DAE9 PRG:5AE9 A2 32
cpy #$80 ; CPU:$DAEB PRG:5AEB C0 80
beq Sub_Loop561 ; CPU:$DAED PRG:5AED F0 02
ldx #$5A ; CPU:$DAEF PRG:5AEF A2 5A
; -----------------------------------------------------------------------------
; Routine: Sub_Loop561
; Global: Branch target inside Sub: taken when Loop561.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop561:
lda WrestlerIndex2 ; CPU:$DAF1 PRG:5AF1 A5 86
cmp #$23 ; CPU:$DAF3 PRG:5AF3 C9 23
beq Sub_Loop562 ; CPU:$DAF5 PRG:5AF5 F0 01
inx ; CPU:$DAF7 PRG:5AF7 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop562
; Global: Branch target inside Sub: taken when Loop562.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop562:
stx ZpA9 ; CPU:$DAF8 PRG:5AF8 86 A9
jmp Sub_Loop563 ; CPU:$DAFA PRG:5AFA 4C 0E DB
; -----------------------------------------------------------------------------
; Routine: Label_DAFD
; Global: Branch target inside Label: taken when DAFD.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DAFD:
rts ; CPU:$DAFD PRG:5AFD 60
; -----------------------------------------------------------------------------
; Routine: Label_DAFE
; Global: Branch target inside Label: taken when DAFE.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DAFE:
rts ; CPU:$DAFE PRG:5AFE 60
; -----------------------------------------------------------------------------
; Routine: Label_DAFF
; Global: Branch target inside Label: taken when DAFF.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DAFF:
rts ; CPU:$DAFF PRG:5AFF 60
; -----------------------------------------------------------------------------
; Routine: Label_DB00
; Global: Branch target inside Label: taken when DB00.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DB00:
ldx #$40 ; CPU:$DB00 PRG:5B00 A2 40
; -----------------------------------------------------------------------------
; Routine: Sub_DB02
; Global: Branch target inside Sub: taken when DB02.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DB02:
lda WrestlerIndex2 ; CPU:$DB02 PRG:5B02 A5 86
cmp #$23 ; CPU:$DB04 PRG:5B04 C9 23
beq Sub_Loop563 ; CPU:$DB06 PRG:5B06 F0 06
inx ; CPU:$DB08 PRG:5B08 E8
inx ; CPU:$DB09 PRG:5B09 E8
jmp Sub_Loop563 ; CPU:$DB0A PRG:5B0A 4C 0E DB
; -----------------------------------------------------------------------------
; Routine: Label_DB0D
; Global: Branch target inside Label: taken when DB0D.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DB0D:
rts ; CPU:$DB0D PRG:5B0D 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop563
; Global: Branch target inside Sub: taken when Loop563.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop563:
stx Zp8E ; CPU:$DB0E PRG:5B0E 86 8E
lda Zp92 ; CPU:$DB10 PRG:5B10 A5 92
sta Zp91 ; CPU:$DB12 PRG:5B12 85 91
ldx WrestlerIndex2 ; CPU:$DB14 PRG:5B14 A6 86
ldy PlayerX,x ; CPU:$DB16 PRG:5B16 B4 33
lda PlayerY,x ; CPU:$DB18 PRG:5B18 B5 34
tax ; CPU:$DB1A PRG:5B1A AA
lda #$01 ; CPU:$DB1B PRG:5B1B A9 01
jsr Sub_EADE ; CPU:$DB1D PRG:5B1D 20 DE EA
rts ; CPU:$DB20 PRG:5B20 60
; ---- data $DB21-$DB3A (26 bytes) ----
; referenced by `lda $DB21,x` at $DAAB (operand $DB21 falls inside this region)
; referenced by `lda $DB22,x` at $DAB0 (operand $DB22 falls inside this region)
.byte $B8, $DA, $B8, $DA, $B8, $DA, $DF, $DA, $DF, $DA, $E4, $DA, $E4, $DA, $E9, $DA ; CPU:$DB21 PRG:5B21 B8 DA B8 DA B8 DA DF DA DF DA E4 DA E4 DA E9 DA
.byte $FD, $DA, $FE, $DA, $FF, $DA, $00, $DB, $0D, $DB ; CPU:$DB31 PRG:5B31 FD DA FE DA FF DA 00 DB 0D DB
; -----------------------------------------------------------------------------
; Routine: Sub_DB3B
; Global: Branch target inside Sub: taken when DB3B.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DB3B:
ldx #$1C ; CPU:$DB3B PRG:5B3B A2 1C
ldy #$56 ; CPU:$DB3D PRG:5B3D A0 56
lda Zp37 ; CPU:$DB3F PRG:5B3F A5 37
and #$40 ; CPU:$DB41 PRG:5B41 29 40
beq Sub_Loop564 ; CPU:$DB43 PRG:5B43 F0 04
ldx #$44 ; CPU:$DB45 PRG:5B45 A2 44
ldy #$2E ; CPU:$DB47 PRG:5B47 A0 2E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop564
; Global: Branch target inside Sub: taken when Loop564.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop564:
lda Zp37 ; CPU:$DB49 PRG:5B49 A5 37
and #$20 ; CPU:$DB4B PRG:5B4B 29 20
beq Sub_Loop565 ; CPU:$DB4D PRG:5B4D F0 0E
ldx #$2C ; CPU:$DB4F PRG:5B4F A2 2C
ldy #$48 ; CPU:$DB51 PRG:5B51 A0 48
lda Zp37 ; CPU:$DB53 PRG:5B53 A5 37
and #$40 ; CPU:$DB55 PRG:5B55 29 40
beq Sub_Loop565 ; CPU:$DB57 PRG:5B57 F0 04
ldx #$54 ; CPU:$DB59 PRG:5B59 A2 54
ldy #$20 ; CPU:$DB5B PRG:5B5B A0 20
; -----------------------------------------------------------------------------
; Routine: Sub_Loop565
; Global: Branch target inside Sub: taken when Loop565.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop565:
tya ; CPU:$DB5D PRG:5B5D 98
pha ; CPU:$DB5E PRG:5B5E 48
stx Zp8E ; CPU:$DB5F PRG:5B5F 86 8E
ldx WrestlerIndex ; CPU:$DB61 PRG:5B61 A6 85
cpx #$13 ; CPU:$DB63 PRG:5B63 E0 13
beq Sub_Loop566 ; CPU:$DB65 PRG:5B65 F0 0A
inc Zp8E ; CPU:$DB67 PRG:5B67 E6 8E
lda Zp37 ; CPU:$DB69 PRG:5B69 A5 37
and #$20 ; CPU:$DB6B PRG:5B6B 29 20
bne Sub_Loop566 ; CPU:$DB6D PRG:5B6D D0 02
inc Zp8E ; CPU:$DB6F PRG:5B6F E6 8E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop566
; Global: Branch target inside Sub: taken when Loop566.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop566:
ldy PlayerX,x ; CPU:$DB71 PRG:5B71 B4 33
sty ZpB1 ; CPU:$DB73 PRG:5B73 84 B1
lda PlayerY,x ; CPU:$DB75 PRG:5B75 B5 34
tax ; CPU:$DB77 PRG:5B77 AA
stx ZpB2 ; CPU:$DB78 PRG:5B78 86 B2
lda #$80 ; CPU:$DB7A PRG:5B7A A9 80
sta Zp91 ; CPU:$DB7C PRG:5B7C 85 91
lda #$00 ; CPU:$DB7E PRG:5B7E A9 00
jsr Sub_EADE ; CPU:$DB80 PRG:5B80 20 DE EA
lda Zp37 ; CPU:$DB83 PRG:5B83 A5 37
and #$20 ; CPU:$DB85 PRG:5B85 29 20
beq Sub_Loop568 ; CPU:$DB87 PRG:5B87 F0 25
lda ZpB1 ; CPU:$DB89 PRG:5B89 A5 B1
sta $0740 ; CPU:$DB8B PRG:5B8B 8D 40 07
lda #$FF ; CPU:$DB8E PRG:5B8E A9 FF
sta $0741 ; CPU:$DB90 PRG:5B90 8D 41 07
ldy #$00 ; CPU:$DB93 PRG:5B93 A0 00
lda ZpB2 ; CPU:$DB95 PRG:5B95 A5 B2
clc ; CPU:$DB97 PRG:5B97 18
adc #$0E ; CPU:$DB98 PRG:5B98 69 0E
tax ; CPU:$DB9A PRG:5B9A AA
lda Zp37 ; CPU:$DB9B PRG:5B9B A5 37
and #$40 ; CPU:$DB9D PRG:5B9D 29 40
beq Sub_Loop567 ; CPU:$DB9F PRG:5B9F F0 07
txa ; CPU:$DBA1 PRG:5BA1 8A
sec ; CPU:$DBA2 PRG:5BA2 38
sbc #$14 ; CPU:$DBA3 PRG:5BA3 E9 14
tax ; CPU:$DBA5 PRG:5BA5 AA
ldy #$40 ; CPU:$DBA6 PRG:5BA6 A0 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop567
; Global: Branch target inside Sub: taken when Loop567.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop567:
sty $0742 ; CPU:$DBA8 PRG:5BA8 8C 42 07
stx $0743 ; CPU:$DBAB PRG:5BAB 8E 43 07
; -----------------------------------------------------------------------------
; Routine: Sub_Loop568
; Global: Branch target inside Sub: taken when Loop568.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop568:
pla ; CPU:$DBAE PRG:5BAE 68
sta Zp8E ; CPU:$DBAF PRG:5BAF 85 8E
ldx WrestlerIndex2 ; CPU:$DBB1 PRG:5BB1 A6 86
cpx #$23 ; CPU:$DBB3 PRG:5BB3 E0 23
beq Sub_Loop569 ; CPU:$DBB5 PRG:5BB5 F0 0A
inc Zp8E ; CPU:$DBB7 PRG:5BB7 E6 8E
lda Zp37 ; CPU:$DBB9 PRG:5BB9 A5 37
and #$20 ; CPU:$DBBB PRG:5BBB 29 20
beq Sub_Loop569 ; CPU:$DBBD PRG:5BBD F0 02
inc Zp8E ; CPU:$DBBF PRG:5BBF E6 8E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop569
; Global: Branch target inside Sub: taken when Loop569.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop569:
ldy PlayerX,x ; CPU:$DBC1 PRG:5BC1 B4 33
sty ZpB3 ; CPU:$DBC3 PRG:5BC3 84 B3
lda PlayerY,x ; CPU:$DBC5 PRG:5BC5 B5 34
tax ; CPU:$DBC7 PRG:5BC7 AA
stx ZpB4 ; CPU:$DBC8 PRG:5BC8 86 B4
lda #$A0 ; CPU:$DBCA PRG:5BCA A9 A0
sta Zp91 ; CPU:$DBCC PRG:5BCC 85 91
lda #$01 ; CPU:$DBCE PRG:5BCE A9 01
jsr Sub_EADE ; CPU:$DBD0 PRG:5BD0 20 DE EA
lda Zp37 ; CPU:$DBD3 PRG:5BD3 A5 37
and #$20 ; CPU:$DBD5 PRG:5BD5 29 20
bne Sub_Loop571 ; CPU:$DBD7 PRG:5BD7 D0 25
lda ZpB3 ; CPU:$DBD9 PRG:5BD9 A5 B3
sta $0740 ; CPU:$DBDB PRG:5BDB 8D 40 07
lda #$FF ; CPU:$DBDE PRG:5BDE A9 FF
sta $0741 ; CPU:$DBE0 PRG:5BE0 8D 41 07
ldy #$40 ; CPU:$DBE3 PRG:5BE3 A0 40
lda ZpB4 ; CPU:$DBE5 PRG:5BE5 A5 B4
sec ; CPU:$DBE7 PRG:5BE7 38
sbc #$06 ; CPU:$DBE8 PRG:5BE8 E9 06
tax ; CPU:$DBEA PRG:5BEA AA
lda Zp37 ; CPU:$DBEB PRG:5BEB A5 37
and #$40 ; CPU:$DBED PRG:5BED 29 40
beq Sub_Loop570 ; CPU:$DBEF PRG:5BEF F0 07
ldy #$00 ; CPU:$DBF1 PRG:5BF1 A0 00
txa ; CPU:$DBF3 PRG:5BF3 8A
clc ; CPU:$DBF4 PRG:5BF4 18
adc #$14 ; CPU:$DBF5 PRG:5BF5 69 14
tax ; CPU:$DBF7 PRG:5BF7 AA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop570
; Global: Branch target inside Sub: taken when Loop570.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop570:
sty $0742 ; CPU:$DBF8 PRG:5BF8 8C 42 07
stx $0743 ; CPU:$DBFB PRG:5BFB 8E 43 07
; -----------------------------------------------------------------------------
; Routine: Sub_Loop571
; Global: Branch target inside Sub: taken when Loop571.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop571:
lda ZpB1 ; CPU:$DBFE PRG:5BFE A5 B1
clc ; CPU:$DC00 PRG:5C00 18
adc #$04 ; CPU:$DC01 PRG:5C01 69 04
tay ; CPU:$DC03 PRG:5C03 A8
lda ZpB2 ; CPU:$DC04 PRG:5C04 A5 B2
sec ; CPU:$DC06 PRG:5C06 38
sbc #$0C ; CPU:$DC07 PRG:5C07 E9 0C
tax ; CPU:$DC09 PRG:5C09 AA
lda Zp37 ; CPU:$DC0A PRG:5C0A A5 37
and #$40 ; CPU:$DC0C PRG:5C0C 29 40
beq Sub_Loop572 ; CPU:$DC0E PRG:5C0E F0 05
txa ; CPU:$DC10 PRG:5C10 8A
clc ; CPU:$DC11 PRG:5C11 18
adc #$18 ; CPU:$DC12 PRG:5C12 69 18
tax ; CPU:$DC14 PRG:5C14 AA
; -----------------------------------------------------------------------------
; Routine: Sub_Loop572
; Global: Branch target inside Sub: taken when Loop572.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop572:
jsr Sub_EED9 ; CPU:$DC15 PRG:5C15 20 D9 EE
rts ; CPU:$DC18 PRG:5C18 60
; -----------------------------------------------------------------------------
; Routine: Sub_DC19
; Global: Branch target inside Sub: taken when DC19.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DC19:
lda Zp37 ; CPU:$DC19 PRG:5C19 A5 37
bpl Sub_Loop575 ; CPU:$DC1B PRG:5C1B 10 3D
and #$20 ; CPU:$DC1D PRG:5C1D 29 20
beq Sub_Loop573 ; CPU:$DC1F PRG:5C1F F0 09
lda Zp7B ; CPU:$DC21 PRG:5C21 A5 7B
and #$20 ; CPU:$DC23 PRG:5C23 29 20
bne Sub_Loop573 ; CPU:$DC25 PRG:5C25 D0 03
jmp Sub_Loop575 ; CPU:$DC27 PRG:5C27 4C 5A DC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop573
; Global: Branch target inside Sub: taken when Loop573.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop573:
ldx Zp6A ; CPU:$DC2A PRG:5C2A A6 6A
ldy Zp69 ; CPU:$DC2C PRG:5C2C A4 69
jsr Sub_FD34 ; CPU:$DC2E PRG:5C2E 20 34 FD
ldx #$00 ; CPU:$DC31 PRG:5C31 A2 00
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero10
; Global: Branch target inside Sub: taken when OnNonzero10.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero10:
lda $DC5B,x ; CPU:$DC33 PRG:5C33 BD 5B DC
sta PPUDATA ; CPU:$DC36 PRG:5C36 8D 07 20
inx ; CPU:$DC39 PRG:5C39 E8
cpx #$09 ; CPU:$DC3A PRG:5C3A E0 09
bne Sub_OnNonzero10 ; CPU:$DC3C PRG:5C3C D0 F5
ldy #$13 ; CPU:$DC3E PRG:5C3E A0 13
lda Zp38 ; CPU:$DC40 PRG:5C40 A5 38
cmp #$54 ; CPU:$DC42 PRG:5C42 C9 54
bcs Sub_Loop574 ; CPU:$DC44 PRG:5C44 B0 0E
ldy #$12 ; CPU:$DC46 PRG:5C46 A0 12
cmp #$30 ; CPU:$DC48 PRG:5C48 C9 30
bcs Sub_Loop574 ; CPU:$DC4A PRG:5C4A B0 08
ldy #$11 ; CPU:$DC4C PRG:5C4C A0 11
cmp #$08 ; CPU:$DC4E PRG:5C4E C9 08
bcs Sub_Loop574 ; CPU:$DC50 PRG:5C50 B0 02
ldy #$10 ; CPU:$DC52 PRG:5C52 A0 10
; -----------------------------------------------------------------------------
; Routine: Sub_Loop574
; Global: Branch target inside Sub: taken when Loop574.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop574:
sty PPUDATA ; CPU:$DC54 PRG:5C54 8C 07 20
jsr Sub_FD37 ; CPU:$DC57 PRG:5C57 20 37 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop575
; Global: Branch target inside Sub: taken when Loop575.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop575:
rts ; CPU:$DC5A PRG:5C5A 60
; ---- data $DC5B-$DC63 (9 bytes) ----
; referenced by `lda $DC5B,x` at $DC33 (operand $DC5B falls inside this region)
.byte $00, $21, $34, $34, $21, $23, $2B, $01, $00 ; CPU:$DC5B PRG:5C5B 00 21 34 34 21 23 2B 01 00
; -----------------------------------------------------------------------------
; Routine: Sub_DC64
; Global: Branch target inside Sub: taken when DC64.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DC64:
lda Zp3C ; CPU:$DC64 PRG:5C64 A5 3C
bne Sub_Loop576 ; CPU:$DC66 PRG:5C66 D0 03
jmp Sub_DFB2 ; CPU:$DC68 PRG:5C68 4C B2 DF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop576
; Global: Branch target inside Sub: taken when Loop576.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop576:
lda #$00 ; CPU:$DC6B PRG:5C6B A9 00
sta Zp1C ; CPU:$DC6D PRG:5C6D 85 1C
lda Zp3B ; CPU:$DC6F PRG:5C6F A5 3B
and #$20 ; CPU:$DC71 PRG:5C71 29 20
beq Sub_Loop577 ; CPU:$DC73 PRG:5C73 F0 04
lda #$FF ; CPU:$DC75 PRG:5C75 A9 FF
sta Zp1C ; CPU:$DC77 PRG:5C77 85 1C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop577
; Global: Branch target inside Sub: taken when Loop577.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop577:
lda #$00 ; CPU:$DC79 PRG:5C79 A9 00
sta Zp1D ; CPU:$DC7B PRG:5C7B 85 1D
lda Zp3B ; CPU:$DC7D PRG:5C7D A5 3B
and #$40 ; CPU:$DC7F PRG:5C7F 29 40
beq Sub_Loop578 ; CPU:$DC81 PRG:5C81 F0 04
lda #$FF ; CPU:$DC83 PRG:5C83 A9 FF
sta Zp1D ; CPU:$DC85 PRG:5C85 85 1D
; -----------------------------------------------------------------------------
; Routine: Sub_Loop578
; Global: Branch target inside Sub: taken when Loop578.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop578:
lda Zp3B ; CPU:$DC87 PRG:5C87 A5 3B
and #$1F ; CPU:$DC89 PRG:5C89 29 1F
sta Zp1E ; CPU:$DC8B PRG:5C8B 85 1E
asl a ; CPU:$DC8D PRG:5C8D 0A
tax ; CPU:$DC8E PRG:5C8E AA
lda $E18C,x ; CPU:$DC8F PRG:5C8F BD 8C E1
sta Zp22 ; CPU:$DC92 PRG:5C92 85 22
lda $E18D,x ; CPU:$DC94 PRG:5C94 BD 8D E1
sta Zp23 ; CPU:$DC97 PRG:5C97 85 23
jmp (Zp22) ; CPU:$DC99 PRG:5C99 6C 22 00
; -----------------------------------------------------------------------------
; Routine: Label_DC9C
; Global: Branch target inside Label: taken when DC9C.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DC9C:
jmp Sub_DEBC ; CPU:$DC9C PRG:5C9C 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Label_DC9F
; Global: Branch target inside Label: taken when DC9F.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DC9F:
lda Zp3C ; CPU:$DC9F PRG:5C9F A5 3C
cmp #$02 ; CPU:$DCA1 PRG:5CA1 C9 02
beq Sub_Loop579 ; CPU:$DCA3 PRG:5CA3 F0 0C
cmp #$03 ; CPU:$DCA5 PRG:5CA5 C9 03
beq Sub_Loop580 ; CPU:$DCA7 PRG:5CA7 F0 0B
cmp #$04 ; CPU:$DCA9 PRG:5CA9 C9 04
beq Sub_Loop582 ; CPU:$DCAB PRG:5CAB F0 17
cmp #$05 ; CPU:$DCAD PRG:5CAD C9 05
beq Sub_Loop584 ; CPU:$DCAF PRG:5CAF F0 23
; -----------------------------------------------------------------------------
; Routine: Sub_Loop579
; Global: Branch target inside Sub: taken when Loop579.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop579:
jmp Sub_DEBC ; CPU:$DCB1 PRG:5CB1 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop580
; Global: Branch target inside Sub: taken when Loop580.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop580:
lda Zp1C ; CPU:$DCB4 PRG:5CB4 A5 1C
bne Sub_Loop581 ; CPU:$DCB6 PRG:5CB6 D0 06
jsr Sub_DFC8 ; CPU:$DCB8 PRG:5CB8 20 C8 DF
jmp Sub_DEBC ; CPU:$DCBB PRG:5CBB 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop581
; Global: Branch target inside Sub: taken when Loop581.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop581:
jsr Sub_DFB3 ; CPU:$DCBE PRG:5CBE 20 B3 DF
jmp Sub_DEBC ; CPU:$DCC1 PRG:5CC1 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop582
; Global: Branch target inside Sub: taken when Loop582.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop582:
lda Zp1C ; CPU:$DCC4 PRG:5CC4 A5 1C
bne Sub_Loop583 ; CPU:$DCC6 PRG:5CC6 D0 06
jsr Sub_DFE4 ; CPU:$DCC8 PRG:5CC8 20 E4 DF
jmp Sub_DEBC ; CPU:$DCCB PRG:5CCB 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop583
; Global: Branch target inside Sub: taken when Loop583.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop583:
jsr Sub_DFDD ; CPU:$DCCE PRG:5CCE 20 DD DF
jmp Sub_DEBC ; CPU:$DCD1 PRG:5CD1 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop584
; Global: Branch target inside Sub: taken when Loop584.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop584:
jsr Sub_DFF3 ; CPU:$DCD4 PRG:5CD4 20 F3 DF
jmp Sub_DEBC ; CPU:$DCD7 PRG:5CD7 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Label_DCDA
; Global: Branch target inside Label: taken when DCDA.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DCDA:
jmp Sub_DCDD ; CPU:$DCDA PRG:5CDA 4C DD DC
; -----------------------------------------------------------------------------
; Routine: Sub_DCDD
; Global: Branch target inside Sub: taken when DCDD.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DCDD:
lda Zp3C ; CPU:$DCDD PRG:5CDD A5 3C
cmp #$02 ; CPU:$DCDF PRG:5CDF C9 02
beq Sub_Loop586 ; CPU:$DCE1 PRG:5CE1 F0 0A
cmp #$05 ; CPU:$DCE3 PRG:5CE3 C9 05
bne Sub_Loop585 ; CPU:$DCE5 PRG:5CE5 D0 03
jmp Sub_DDDA ; CPU:$DCE7 PRG:5CE7 4C DA DD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop585
; Global: Branch target inside Sub: taken when Loop585.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop585:
jmp Sub_DEBC ; CPU:$DCEA PRG:5CEA 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop586
; Global: Branch target inside Sub: taken when Loop586.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop586:
lda Zp9D ; CPU:$DCED PRG:5CED A5 9D
and #$C0 ; CPU:$DCEF PRG:5CEF 29 C0
cmp #$40 ; CPU:$DCF1 PRG:5CF1 C9 40
beq Sub_Loop590 ; CPU:$DCF3 PRG:5CF3 F0 1E
cmp #$80 ; CPU:$DCF5 PRG:5CF5 C9 80
beq Sub_Loop593 ; CPU:$DCF7 PRG:5CF7 F0 2F
ldx #$24 ; CPU:$DCF9 PRG:5CF9 A2 24
lda Zp1D ; CPU:$DCFB PRG:5CFB A5 1D
beq Sub_Loop587 ; CPU:$DCFD PRG:5CFD F0 02
ldx #$4C ; CPU:$DCFF PRG:5CFF A2 4C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop587
; Global: Branch target inside Sub: taken when Loop587.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop587:
lda WrestlerIndex ; CPU:$DD01 PRG:5D01 A5 85
cmp #$13 ; CPU:$DD03 PRG:5D03 C9 13
beq Sub_Loop588 ; CPU:$DD05 PRG:5D05 F0 02
inx ; CPU:$DD07 PRG:5D07 E8
inx ; CPU:$DD08 PRG:5D08 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop588
; Global: Branch target inside Sub: taken when Loop588.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop588:
lda ZpAC ; CPU:$DD09 PRG:5D09 A5 AC
and #$04 ; CPU:$DD0B PRG:5D0B 29 04
beq Sub_Loop589 ; CPU:$DD0D PRG:5D0D F0 01
inx ; CPU:$DD0F PRG:5D0F E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop589
; Global: Branch target inside Sub: taken when Loop589.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop589:
jmp Sub_Loop598 ; CPU:$DD10 PRG:5D10 4C 5E DD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop590
; Global: Branch target inside Sub: taken when Loop590.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop590:
jsr Sub_DFB3 ; CPU:$DD13 PRG:5D13 20 B3 DF
ldx #$54 ; CPU:$DD16 PRG:5D16 A2 54
lda Zp1D ; CPU:$DD18 PRG:5D18 A5 1D
beq Sub_Loop591 ; CPU:$DD1A PRG:5D1A F0 02
ldx #$2C ; CPU:$DD1C PRG:5D1C A2 2C
; -----------------------------------------------------------------------------
; Routine: Sub_Loop591
; Global: Branch target inside Sub: taken when Loop591.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop591:
lda WrestlerIndex ; CPU:$DD1E PRG:5D1E A5 85
cmp #$13 ; CPU:$DD20 PRG:5D20 C9 13
beq Sub_Loop592 ; CPU:$DD22 PRG:5D22 F0 01
inx ; CPU:$DD24 PRG:5D24 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop592
; Global: Branch target inside Sub: taken when Loop592.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop592:
jmp Sub_Loop598 ; CPU:$DD25 PRG:5D25 4C 5E DD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop593
; Global: Branch target inside Sub: taken when Loop593.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop593:
jsr Sub_DFDD ; CPU:$DD28 PRG:5D28 20 DD DF
lda Zp1E ; CPU:$DD2B PRG:5D2B A5 1E
cmp #$02 ; CPU:$DD2D PRG:5D2D C9 02
beq Sub_Loop595 ; CPU:$DD2F PRG:5D2F F0 16
lda Zp1C ; CPU:$DD31 PRG:5D31 A5 1C
bne Sub_Loop595 ; CPU:$DD33 PRG:5D33 D0 12
ldx #$64 ; CPU:$DD35 PRG:5D35 A2 64
lda Zp1D ; CPU:$DD37 PRG:5D37 A5 1D
beq Sub_Loop594 ; CPU:$DD39 PRG:5D39 F0 02
ldx #$68 ; CPU:$DD3B PRG:5D3B A2 68
; -----------------------------------------------------------------------------
; Routine: Sub_Loop594
; Global: Branch target inside Sub: taken when Loop594.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop594:
lda WrestlerIndex ; CPU:$DD3D PRG:5D3D A5 85
cmp #$13 ; CPU:$DD3F PRG:5D3F C9 13
beq Sub_Loop598 ; CPU:$DD41 PRG:5D41 F0 1B
inx ; CPU:$DD43 PRG:5D43 E8
jmp Sub_Loop598 ; CPU:$DD44 PRG:5D44 4C 5E DD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop595
; Global: Branch target inside Sub: taken when Loop595.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop595:
ldx #$4C ; CPU:$DD47 PRG:5D47 A2 4C
lda Zp1D ; CPU:$DD49 PRG:5D49 A5 1D
beq Sub_Loop596 ; CPU:$DD4B PRG:5D4B F0 02
ldx #$24 ; CPU:$DD4D PRG:5D4D A2 24
; -----------------------------------------------------------------------------
; Routine: Sub_Loop596
; Global: Branch target inside Sub: taken when Loop596.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop596:
lda WrestlerIndex ; CPU:$DD4F PRG:5D4F A5 85
cmp #$13 ; CPU:$DD51 PRG:5D51 C9 13
beq Sub_Loop597 ; CPU:$DD53 PRG:5D53 F0 02
inx ; CPU:$DD55 PRG:5D55 E8
inx ; CPU:$DD56 PRG:5D56 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop597
; Global: Branch target inside Sub: taken when Loop597.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop597:
lda ZpAC ; CPU:$DD57 PRG:5D57 A5 AC
and #$04 ; CPU:$DD59 PRG:5D59 29 04
beq Sub_Loop598 ; CPU:$DD5B PRG:5D5B F0 01
inx ; CPU:$DD5D PRG:5D5D E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop598
; Global: Branch target inside Sub: taken when Loop598.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop598:
lda Zp9E ; CPU:$DD5E PRG:5D5E A5 9E
and #$C0 ; CPU:$DD60 PRG:5D60 29 C0
cmp #$40 ; CPU:$DD62 PRG:5D62 C9 40
beq Sub_Loop602 ; CPU:$DD64 PRG:5D64 F0 1E
cmp #$80 ; CPU:$DD66 PRG:5D66 C9 80
beq Sub_Loop605 ; CPU:$DD68 PRG:5D68 F0 33
ldy #$50 ; CPU:$DD6A PRG:5D6A A0 50
lda Zp1D ; CPU:$DD6C PRG:5D6C A5 1D
beq Sub_Loop599 ; CPU:$DD6E PRG:5D6E F0 02
ldy #$28 ; CPU:$DD70 PRG:5D70 A0 28
; -----------------------------------------------------------------------------
; Routine: Sub_Loop599
; Global: Branch target inside Sub: taken when Loop599.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop599:
lda WrestlerIndex2 ; CPU:$DD72 PRG:5D72 A5 86
cmp #$23 ; CPU:$DD74 PRG:5D74 C9 23
beq Sub_Loop600 ; CPU:$DD76 PRG:5D76 F0 02
iny ; CPU:$DD78 PRG:5D78 C8
iny ; CPU:$DD79 PRG:5D79 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop600
; Global: Branch target inside Sub: taken when Loop600.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop600:
lda ZpAC ; CPU:$DD7A PRG:5D7A A5 AC
and #$04 ; CPU:$DD7C PRG:5D7C 29 04
beq Sub_Loop601 ; CPU:$DD7E PRG:5D7E F0 01
iny ; CPU:$DD80 PRG:5D80 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop601
; Global: Branch target inside Sub: taken when Loop601.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop601:
jmp Sub_Loop610 ; CPU:$DD81 PRG:5D81 4C D7 DD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop602
; Global: Branch target inside Sub: taken when Loop602.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop602:
txa ; CPU:$DD84 PRG:5D84 8A
pha ; CPU:$DD85 PRG:5D85 48
jsr Sub_DFC8 ; CPU:$DD86 PRG:5D86 20 C8 DF
pla ; CPU:$DD89 PRG:5D89 68
tax ; CPU:$DD8A PRG:5D8A AA
ldy #$2E ; CPU:$DD8B PRG:5D8B A0 2E
lda Zp1D ; CPU:$DD8D PRG:5D8D A5 1D
beq Sub_Loop603 ; CPU:$DD8F PRG:5D8F F0 02
ldy #$56 ; CPU:$DD91 PRG:5D91 A0 56
; -----------------------------------------------------------------------------
; Routine: Sub_Loop603
; Global: Branch target inside Sub: taken when Loop603.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop603:
lda WrestlerIndex2 ; CPU:$DD93 PRG:5D93 A5 86
cmp #$23 ; CPU:$DD95 PRG:5D95 C9 23
beq Sub_Loop604 ; CPU:$DD97 PRG:5D97 F0 01
iny ; CPU:$DD99 PRG:5D99 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop604
; Global: Branch target inside Sub: taken when Loop604.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop604:
jmp Sub_Loop610 ; CPU:$DD9A PRG:5D9A 4C D7 DD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop605
; Global: Branch target inside Sub: taken when Loop605.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop605:
txa ; CPU:$DD9D PRG:5D9D 8A
pha ; CPU:$DD9E PRG:5D9E 48
jsr Sub_DFE4 ; CPU:$DD9F PRG:5D9F 20 E4 DF
pla ; CPU:$DDA2 PRG:5DA2 68
tax ; CPU:$DDA3 PRG:5DA3 AA
lda Zp1E ; CPU:$DDA4 PRG:5DA4 A5 1E
cmp #$02 ; CPU:$DDA6 PRG:5DA6 C9 02
beq Sub_Loop607 ; CPU:$DDA8 PRG:5DA8 F0 16
lda Zp1C ; CPU:$DDAA PRG:5DAA A5 1C
beq Sub_Loop607 ; CPU:$DDAC PRG:5DAC F0 12
ldy #$6A ; CPU:$DDAE PRG:5DAE A0 6A
lda Zp1D ; CPU:$DDB0 PRG:5DB0 A5 1D
beq Sub_Loop606 ; CPU:$DDB2 PRG:5DB2 F0 02
ldy #$66 ; CPU:$DDB4 PRG:5DB4 A0 66
; -----------------------------------------------------------------------------
; Routine: Sub_Loop606
; Global: Branch target inside Sub: taken when Loop606.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop606:
lda WrestlerIndex2 ; CPU:$DDB6 PRG:5DB6 A5 86
cmp #$23 ; CPU:$DDB8 PRG:5DB8 C9 23
beq Sub_Loop610 ; CPU:$DDBA PRG:5DBA F0 1B
iny ; CPU:$DDBC PRG:5DBC C8
jmp Sub_Loop610 ; CPU:$DDBD PRG:5DBD 4C D7 DD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop607
; Global: Branch target inside Sub: taken when Loop607.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop607:
ldy #$28 ; CPU:$DDC0 PRG:5DC0 A0 28
lda Zp1D ; CPU:$DDC2 PRG:5DC2 A5 1D
beq Sub_Loop608 ; CPU:$DDC4 PRG:5DC4 F0 02
ldy #$50 ; CPU:$DDC6 PRG:5DC6 A0 50
; -----------------------------------------------------------------------------
; Routine: Sub_Loop608
; Global: Branch target inside Sub: taken when Loop608.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop608:
lda WrestlerIndex2 ; CPU:$DDC8 PRG:5DC8 A5 86
cmp #$23 ; CPU:$DDCA PRG:5DCA C9 23
beq Sub_Loop609 ; CPU:$DDCC PRG:5DCC F0 02
iny ; CPU:$DDCE PRG:5DCE C8
iny ; CPU:$DDCF PRG:5DCF C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop609
; Global: Branch target inside Sub: taken when Loop609.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop609:
lda ZpAC ; CPU:$DDD0 PRG:5DD0 A5 AC
and #$04 ; CPU:$DDD2 PRG:5DD2 29 04
beq Sub_Loop610 ; CPU:$DDD4 PRG:5DD4 F0 01
iny ; CPU:$DDD6 PRG:5DD6 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop610
; Global: Branch target inside Sub: taken when Loop610.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop610:
jmp Sub_Loop632 ; CPU:$DDD7 PRG:5DD7 4C 69 DF
; -----------------------------------------------------------------------------
; Routine: Sub_DDDA
; Global: Branch target inside Sub: taken when DDDA.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DDDA:
jsr Sub_DFF3 ; CPU:$DDDA PRG:5DDA 20 F3 DF
jmp Sub_DEBC ; CPU:$DDDD PRG:5DDD 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Label_DDE0
; Global: Branch target inside Label: taken when DDE0.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DDE0:
jmp Sub_DEBC ; CPU:$DDE0 PRG:5DE0 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Label_DDE3
; Global: Branch target inside Label: taken when DDE3.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DDE3:
jmp Sub_DEBC ; CPU:$DDE3 PRG:5DE3 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Label_DDE6
; Global: Branch target inside Label: taken when DDE6.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DDE6:
jmp Sub_DEBC ; CPU:$DDE6 PRG:5DE6 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Label_DDE9
; Global: Branch target inside Label: taken when DDE9.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DDE9:
lda Zp3C ; CPU:$DDE9 PRG:5DE9 A5 3C
cmp #$02 ; CPU:$DDEB PRG:5DEB C9 02
beq Sub_Loop611 ; CPU:$DDED PRG:5DED F0 06
jsr Sub_EF2F ; CPU:$DDEF PRG:5DEF 20 2F EF
jmp Sub_DEBC ; CPU:$DDF2 PRG:5DF2 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop611
; Global: Branch target inside Sub: taken when Loop611.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop611:
jsr Sub_DFF3 ; CPU:$DDF5 PRG:5DF5 20 F3 DF
jmp Sub_DEBC ; CPU:$DDF8 PRG:5DF8 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Label_DDFB
; Global: Branch target inside Label: taken when DDFB.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DDFB:
lda Zp3C ; CPU:$DDFB PRG:5DFB A5 3C
cmp #$01 ; CPU:$DDFD PRG:5DFD C9 01
beq Sub_Loop612 ; CPU:$DDFF PRG:5DFF F0 03
jsr Sub_DFF3 ; CPU:$DE01 PRG:5E01 20 F3 DF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop612
; Global: Branch target inside Sub: taken when Loop612.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop612:
jmp Sub_DEBC ; CPU:$DE04 PRG:5E04 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Label_DE07
; Global: Branch target inside Label: taken when DE07.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DE07:
lda Zp3C ; CPU:$DE07 PRG:5E07 A5 3C
cmp #$02 ; CPU:$DE09 PRG:5E09 C9 02
beq Sub_Loop613 ; CPU:$DE0B PRG:5E0B F0 10
cmp #$03 ; CPU:$DE0D PRG:5E0D C9 03
beq Sub_Loop614 ; CPU:$DE0F PRG:5E0F F0 0F
cmp #$04 ; CPU:$DE11 PRG:5E11 C9 04
beq Sub_Loop615 ; CPU:$DE13 PRG:5E13 F0 11
cmp #$05 ; CPU:$DE15 PRG:5E15 C9 05
beq Sub_Loop616 ; CPU:$DE17 PRG:5E17 F0 13
cmp #$06 ; CPU:$DE19 PRG:5E19 C9 06
beq Sub_Loop617 ; CPU:$DE1B PRG:5E1B F0 15
; -----------------------------------------------------------------------------
; Routine: Sub_Loop613
; Global: Branch target inside Sub: taken when Loop613.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop613:
jmp Sub_DEBC ; CPU:$DE1D PRG:5E1D 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop614
; Global: Branch target inside Sub: taken when Loop614.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop614:
jsr Sub_DFB3 ; CPU:$DE20 PRG:5E20 20 B3 DF
jmp Sub_DEBC ; CPU:$DE23 PRG:5E23 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop615
; Global: Branch target inside Sub: taken when Loop615.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop615:
jsr Sub_DFDD ; CPU:$DE26 PRG:5E26 20 DD DF
jmp Sub_DEBC ; CPU:$DE29 PRG:5E29 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop616
; Global: Branch target inside Sub: taken when Loop616.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop616:
jsr Sub_DFF3 ; CPU:$DE2C PRG:5E2C 20 F3 DF
jmp Sub_DEBC ; CPU:$DE2F PRG:5E2F 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop617
; Global: Branch target inside Sub: taken when Loop617.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop617:
jmp Sub_DEBC ; CPU:$DE32 PRG:5E32 4C BC DE
; -----------------------------------------------------------------------------
; Routine: Label_DE35
; Global: Branch target inside Label: taken when DE35.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_DE35:
jmp Sub_DEBC ; CPU:$DE35 PRG:5E35 4C BC DE
; ---- data $DE38-$DEBB (132 bytes) ----
.byte $4C, $BC, $DE, $A5, $3C, $C9, $01, $F0, $03, $20, $F3, $DF, $4C, $BC, $DE, $A5 ; CPU:$DE38 PRG:5E38 4C BC DE A5 3C C9 01 F0 03 20 F3 DF 4C BC DE A5
.byte $3C, $C9, $02, $F0, $17, $A6, $85, $A5, $1C, $F0, $02, $A6, $86, $B5, $33, $38 ; CPU:$DE48 PRG:5E48 3C C9 02 F0 17 A6 85 A5 1C F0 02 A6 86 B5 33 38
.byte $E9, $0E, $A8, $B5, $34, $AA, $20, $3B, $EF, $4C, $BC, $DE, $20, $F3, $DF, $A5 ; CPU:$DE58 PRG:5E58 E9 0E A8 B5 34 AA 20 3B EF 4C BC DE 20 F3 DF A5
.byte $1C, $D0, $1D, $A6, $85, $B5, $33, $38, $E9, $02, $A8, $B5, $34, $38, $E9, $0C ; CPU:$DE68 PRG:5E68 1C D0 1D A6 85 B5 33 38 E9 02 A8 B5 34 38 E9 0C
.byte $AA, $A5, $1D, $F0, $05, $8A, $18, $69, $18, $AA, $20, $3B, $EF, $4C, $BC, $DE ; CPU:$DE78 PRG:5E78 AA A5 1D F0 05 8A 18 69 18 AA 20 3B EF 4C BC DE
.byte $A6, $86, $B5, $33, $38, $E9, $02, $A8, $B5, $34, $18, $69, $0C, $AA, $A5, $1D ; CPU:$DE88 PRG:5E88 A6 86 B5 33 38 E9 02 A8 B5 34 18 69 0C AA A5 1D
.byte $F0, $05, $8A, $38, $E9, $18, $AA, $20, $3B, $EF, $4C, $BC, $DE, $A2, $01, $A5 ; CPU:$DE98 PRG:5E98 F0 05 8A 38 E9 18 AA 20 3B EF 4C BC DE A2 01 A5
.byte $41, $29, $20, $F0, $02, $A2, $30, $A0, $05, $A5, $41, $29, $10, $F0, $02, $A0 ; CPU:$DEA8 PRG:5EA8 41 29 20 F0 02 A2 30 A0 05 A5 41 29 10 F0 02 A0
.byte $32, $4C, $24, $DF ; CPU:$DEB8 PRG:5EB8 32 4C 24 DF
; -----------------------------------------------------------------------------
; Routine: Sub_DEBC
; Global: Branch target inside Sub: taken when DEBC.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DEBC:
lda Zp1E ; CPU:$DEBC PRG:5EBC A5 1E
asl a ; CPU:$DEBE PRG:5EBE 0A
asl a ; CPU:$DEBF PRG:5EBF 0A
tax ; CPU:$DEC0 PRG:5EC0 AA
lda Zp1C ; CPU:$DEC1 PRG:5EC1 A5 1C
beq Sub_Loop618 ; CPU:$DEC3 PRG:5EC3 F0 02
inx ; CPU:$DEC5 PRG:5EC5 E8
inx ; CPU:$DEC6 PRG:5EC6 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop618
; Global: Branch target inside Sub: taken when Loop618.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop618:
lda $E014,x ; CPU:$DEC7 PRG:5EC7 BD 14 E0
sta Zp22 ; CPU:$DECA PRG:5ECA 85 22
lda $E015,x ; CPU:$DECC PRG:5ECC BD 15 E0
sta Zp23 ; CPU:$DECF PRG:5ECF 85 23
ldx Zp3C ; CPU:$DED1 PRG:5ED1 A6 3C
dex ; CPU:$DED3 PRG:5ED3 CA
txa ; CPU:$DED4 PRG:5ED4 8A
sta Zp1F ; CPU:$DED5 PRG:5ED5 85 1F
asl a ; CPU:$DED7 PRG:5ED7 0A
asl a ; CPU:$DED8 PRG:5ED8 0A
clc ; CPU:$DED9 PRG:5ED9 18
adc Zp1F ; CPU:$DEDA PRG:5EDA 65 1F
clc ; CPU:$DEDC PRG:5EDC 18
adc Zp22 ; CPU:$DEDD PRG:5EDD 65 22
sta Zp22 ; CPU:$DEDF PRG:5EDF 85 22
lda Zp23 ; CPU:$DEE1 PRG:5EE1 A5 23
adc #$00 ; CPU:$DEE3 PRG:5EE3 69 00
sta Zp23 ; CPU:$DEE5 PRG:5EE5 85 23
ldy #$04 ; CPU:$DEE7 PRG:5EE7 A0 04
lda (Zp22),y ; CPU:$DEE9 PRG:5EE9 B1 22
sta Zp1F ; CPU:$DEEB PRG:5EEB 85 1F
ldy #$00 ; CPU:$DEED PRG:5EED A0 00
lda Zp1D ; CPU:$DEEF PRG:5EEF A5 1D
beq Sub_Loop619 ; CPU:$DEF1 PRG:5EF1 F0 02
iny ; CPU:$DEF3 PRG:5EF3 C8
iny ; CPU:$DEF4 PRG:5EF4 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop619
; Global: Branch target inside Sub: taken when Loop619.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop619:
lda (Zp22),y ; CPU:$DEF5 PRG:5EF5 B1 22
tax ; CPU:$DEF7 PRG:5EF7 AA
iny ; CPU:$DEF8 PRG:5EF8 C8
lda (Zp22),y ; CPU:$DEF9 PRG:5EF9 B1 22
tay ; CPU:$DEFB PRG:5EFB A8
lda ZpAC ; CPU:$DEFC PRG:5EFC A5 AC
and #$04 ; CPU:$DEFE PRG:5EFE 29 04
beq Sub_Loop621 ; CPU:$DF00 PRG:5F00 F0 0E
lda Zp1F ; CPU:$DF02 PRG:5F02 A5 1F
and #$80 ; CPU:$DF04 PRG:5F04 29 80
beq Sub_Loop620 ; CPU:$DF06 PRG:5F06 F0 01
inx ; CPU:$DF08 PRG:5F08 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop620
; Global: Branch target inside Sub: taken when Loop620.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop620:
lda Zp1F ; CPU:$DF09 PRG:5F09 A5 1F
and #$40 ; CPU:$DF0B PRG:5F0B 29 40
beq Sub_Loop621 ; CPU:$DF0D PRG:5F0D F0 01
iny ; CPU:$DF0F PRG:5F0F C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop621
; Global: Branch target inside Sub: taken when Loop621.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop621:
lda Zp1F ; CPU:$DF10 PRG:5F10 A5 1F
and #$3F ; CPU:$DF12 PRG:5F12 29 3F
cmp #$01 ; CPU:$DF14 PRG:5F14 C9 01
beq Sub_Loop624 ; CPU:$DF16 PRG:5F16 F0 1D
cmp #$02 ; CPU:$DF18 PRG:5F18 C9 02
beq Sub_Loop627 ; CPU:$DF1A PRG:5F1A F0 2B
cmp #$03 ; CPU:$DF1C PRG:5F1C C9 03
beq Sub_Loop630 ; CPU:$DF1E PRG:5F1E F0 39
cmp #$04 ; CPU:$DF20 PRG:5F20 C9 04
beq Sub_Loop632 ; CPU:$DF22 PRG:5F22 F0 45
lda WrestlerIndex ; CPU:$DF24 PRG:5F24 A5 85
cmp #$13 ; CPU:$DF26 PRG:5F26 C9 13
beq Sub_Loop622 ; CPU:$DF28 PRG:5F28 F0 01
inx ; CPU:$DF2A PRG:5F2A E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop622
; Global: Branch target inside Sub: taken when Loop622.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop622:
lda WrestlerIndex2 ; CPU:$DF2B PRG:5F2B A5 86
cmp #$23 ; CPU:$DF2D PRG:5F2D C9 23
beq Sub_Loop623 ; CPU:$DF2F PRG:5F2F F0 01
iny ; CPU:$DF31 PRG:5F31 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop623
; Global: Branch target inside Sub: taken when Loop623.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop623:
jmp Sub_Loop632 ; CPU:$DF32 PRG:5F32 4C 69 DF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop624
; Global: Branch target inside Sub: taken when Loop624.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop624:
lda WrestlerIndex ; CPU:$DF35 PRG:5F35 A5 85
cmp #$13 ; CPU:$DF37 PRG:5F37 C9 13
beq Sub_Loop625 ; CPU:$DF39 PRG:5F39 F0 01
inx ; CPU:$DF3B PRG:5F3B E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop625
; Global: Branch target inside Sub: taken when Loop625.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop625:
lda WrestlerIndex2 ; CPU:$DF3C PRG:5F3C A5 86
cmp #$23 ; CPU:$DF3E PRG:5F3E C9 23
beq Sub_Loop626 ; CPU:$DF40 PRG:5F40 F0 02
iny ; CPU:$DF42 PRG:5F42 C8
iny ; CPU:$DF43 PRG:5F43 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop626
; Global: Branch target inside Sub: taken when Loop626.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop626:
jmp Sub_Loop632 ; CPU:$DF44 PRG:5F44 4C 69 DF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop627
; Global: Branch target inside Sub: taken when Loop627.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop627:
lda WrestlerIndex ; CPU:$DF47 PRG:5F47 A5 85
cmp #$13 ; CPU:$DF49 PRG:5F49 C9 13
beq Sub_Loop628 ; CPU:$DF4B PRG:5F4B F0 02
inx ; CPU:$DF4D PRG:5F4D E8
inx ; CPU:$DF4E PRG:5F4E E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop628
; Global: Branch target inside Sub: taken when Loop628.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop628:
lda WrestlerIndex2 ; CPU:$DF4F PRG:5F4F A5 86
cmp #$23 ; CPU:$DF51 PRG:5F51 C9 23
beq Sub_Loop629 ; CPU:$DF53 PRG:5F53 F0 01
iny ; CPU:$DF55 PRG:5F55 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop629
; Global: Branch target inside Sub: taken when Loop629.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop629:
jmp Sub_Loop632 ; CPU:$DF56 PRG:5F56 4C 69 DF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop630
; Global: Branch target inside Sub: taken when Loop630.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop630:
lda WrestlerIndex ; CPU:$DF59 PRG:5F59 A5 85
cmp #$13 ; CPU:$DF5B PRG:5F5B C9 13
beq Sub_Loop631 ; CPU:$DF5D PRG:5F5D F0 02
inx ; CPU:$DF5F PRG:5F5F E8
inx ; CPU:$DF60 PRG:5F60 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop631
; Global: Branch target inside Sub: taken when Loop631.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop631:
lda WrestlerIndex2 ; CPU:$DF61 PRG:5F61 A5 86
cmp #$23 ; CPU:$DF63 PRG:5F63 C9 23
beq Sub_Loop632 ; CPU:$DF65 PRG:5F65 F0 02
iny ; CPU:$DF67 PRG:5F67 C8
iny ; CPU:$DF68 PRG:5F68 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop632
; Global: Branch target inside Sub: taken when Loop632.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop632:
tya ; CPU:$DF69 PRG:5F69 98
pha ; CPU:$DF6A PRG:5F6A 48
stx Zp8E ; CPU:$DF6B PRG:5F6B 86 8E
ldx #$80 ; CPU:$DF6D PRG:5F6D A2 80
ldy #$A0 ; CPU:$DF6F PRG:5F6F A0 A0
lda Zp1C ; CPU:$DF71 PRG:5F71 A5 1C
beq Sub_Loop633 ; CPU:$DF73 PRG:5F73 F0 04
ldx #$A0 ; CPU:$DF75 PRG:5F75 A2 A0
ldy #$80 ; CPU:$DF77 PRG:5F77 A0 80
; -----------------------------------------------------------------------------
; Routine: Sub_Loop633
; Global: Branch target inside Sub: taken when Loop633.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop633:
stx Zp91 ; CPU:$DF79 PRG:5F79 86 91
sty Zp92 ; CPU:$DF7B PRG:5F7B 84 92
lda Zp1E ; CPU:$DF7D PRG:5F7D A5 1E
cmp #$0A ; CPU:$DF7F PRG:5F7F C9 0A
beq Sub_Loop634 ; CPU:$DF81 PRG:5F81 F0 08
cmp #$0B ; CPU:$DF83 PRG:5F83 C9 0B
beq Sub_Loop634 ; CPU:$DF85 PRG:5F85 F0 04
cmp #$0C ; CPU:$DF87 PRG:5F87 C9 0C
bne Sub_Loop635 ; CPU:$DF89 PRG:5F89 D0 08
; -----------------------------------------------------------------------------
; Routine: Sub_Loop634
; Global: Branch target inside Sub: taken when Loop634.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop634:
lda Zp91 ; CPU:$DF8B PRG:5F8B A5 91
ldx Zp92 ; CPU:$DF8D PRG:5F8D A6 92
sta Zp92 ; CPU:$DF8F PRG:5F8F 85 92
stx Zp91 ; CPU:$DF91 PRG:5F91 86 91
; -----------------------------------------------------------------------------
; Routine: Sub_Loop635
; Global: Branch target inside Sub: taken when Loop635.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop635:
ldx WrestlerIndex ; CPU:$DF93 PRG:5F93 A6 85
ldy PlayerX,x ; CPU:$DF95 PRG:5F95 B4 33
lda PlayerY,x ; CPU:$DF97 PRG:5F97 B5 34
tax ; CPU:$DF99 PRG:5F99 AA
lda #$00 ; CPU:$DF9A PRG:5F9A A9 00
jsr Sub_EADE ; CPU:$DF9C PRG:5F9C 20 DE EA
pla ; CPU:$DF9F PRG:5F9F 68
sta Zp8E ; CPU:$DFA0 PRG:5FA0 85 8E
lda Zp92 ; CPU:$DFA2 PRG:5FA2 A5 92
sta Zp91 ; CPU:$DFA4 PRG:5FA4 85 91
ldx WrestlerIndex2 ; CPU:$DFA6 PRG:5FA6 A6 86
ldy PlayerX,x ; CPU:$DFA8 PRG:5FA8 B4 33
lda PlayerY,x ; CPU:$DFAA PRG:5FAA B5 34
tax ; CPU:$DFAC PRG:5FAC AA
lda #$01 ; CPU:$DFAD PRG:5FAD A9 01
jsr Sub_EADE ; CPU:$DFAF PRG:5FAF 20 DE EA
; -----------------------------------------------------------------------------
; Routine: Sub_DFB2
; Global: Branch target inside Sub: taken when DFB2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DFB2:
rts ; CPU:$DFB2 PRG:5FB2 60
; -----------------------------------------------------------------------------
; Routine: Sub_DFB3
; Global: Branch target inside Sub: taken when DFB3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DFB3:
ldx WrestlerIndex ; CPU:$DFB3 PRG:5FB3 A6 85
ldy PlayerX,x ; CPU:$DFB5 PRG:5FB5 B4 33
lda PlayerY,x ; CPU:$DFB7 PRG:5FB7 B5 34
tax ; CPU:$DFB9 PRG:5FB9 AA
lda Zp1D ; CPU:$DFBA PRG:5FBA A5 1D
bne Sub_Loop636 ; CPU:$DFBC PRG:5FBC D0 06
jsr $EFD0 ; CPU:$DFBE PRG:5FBE 20 D0 EF
jmp Sub_DFC7 ; CPU:$DFC1 PRG:5FC1 4C C7 DF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop636
; Global: Branch target inside Sub: taken when Loop636.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop636:
jsr Sub_EF8D ; CPU:$DFC4 PRG:5FC4 20 8D EF
; -----------------------------------------------------------------------------
; Routine: Sub_DFC7
; Global: Branch target inside Sub: taken when DFC7.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DFC7:
rts ; CPU:$DFC7 PRG:5FC7 60
; -----------------------------------------------------------------------------
; Routine: Sub_DFC8
; Global: Branch target inside Sub: taken when DFC8.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DFC8:
ldx WrestlerIndex2 ; CPU:$DFC8 PRG:5FC8 A6 86
ldy PlayerX,x ; CPU:$DFCA PRG:5FCA B4 33
lda PlayerY,x ; CPU:$DFCC PRG:5FCC B5 34
tax ; CPU:$DFCE PRG:5FCE AA
lda Zp1D ; CPU:$DFCF PRG:5FCF A5 1D
bne Sub_Loop637 ; CPU:$DFD1 PRG:5FD1 D0 06
jsr Sub_EF8D ; CPU:$DFD3 PRG:5FD3 20 8D EF
jmp Sub_DFDC ; CPU:$DFD6 PRG:5FD6 4C DC DF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop637
; Global: Branch target inside Sub: taken when Loop637.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop637:
jsr $EFD0 ; CPU:$DFD9 PRG:5FD9 20 D0 EF
; -----------------------------------------------------------------------------
; Routine: Sub_DFDC
; Global: Branch target inside Sub: taken when DFDC.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DFDC:
rts ; CPU:$DFDC PRG:5FDC 60
; -----------------------------------------------------------------------------
; Routine: Sub_DFDD
; Global: Branch target inside Sub: taken when DFDD.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DFDD:
lda Zp1D ; CPU:$DFDD PRG:5FDD A5 1D
beq Sub_Loop638 ; CPU:$DFDF PRG:5FDF F0 0A
jmp Sub_Loop639 ; CPU:$DFE1 PRG:5FE1 4C EF DF
; -----------------------------------------------------------------------------
; Routine: Sub_DFE4
; Global: Branch target inside Sub: taken when DFE4.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DFE4:
lda Zp1D ; CPU:$DFE4 PRG:5FE4 A5 1D
beq Sub_Loop639 ; CPU:$DFE6 PRG:5FE6 F0 07
jmp Sub_Loop638 ; CPU:$DFE8 PRG:5FE8 4C EB DF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop638
; Global: Branch target inside Sub: taken when Loop638.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop638:
jsr Sub_F01C ; CPU:$DFEB PRG:5FEB 20 1C F0
rts ; CPU:$DFEE PRG:5FEE 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop639
; Global: Branch target inside Sub: taken when Loop639.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop639:
jsr Sub_F010 ; CPU:$DFEF PRG:5FEF 20 10 F0
rts ; CPU:$DFF2 PRG:5FF2 60
; -----------------------------------------------------------------------------
; Routine: Sub_DFF3
; Global: Branch target inside Sub: taken when DFF3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_DFF3:
ldx WrestlerIndex2 ; CPU:$DFF3 PRG:5FF3 A6 86
lda PlayerX,x ; CPU:$DFF5 PRG:5FF5 B5 33
ldx WrestlerIndex ; CPU:$DFF7 PRG:5FF7 A6 85
clc ; CPU:$DFF9 PRG:5FF9 18
adc PlayerX,x ; CPU:$DFFA PRG:5FFA 75 33
ror a ; CPU:$DFFC PRG:5FFC 6A
clc ; CPU:$DFFD PRG:5FFD 18
adc #$18 ; CPU:$DFFE PRG:5FFE 69 18
tay ; CPU:$E000 PRG:6000 A8
lda PlayerY,x ; CPU:$E001 PRG:6001 B5 34
ldx WrestlerIndex2 ; CPU:$E003 PRG:6003 A6 86
clc ; CPU:$E005 PRG:6005 18
adc PlayerY,x ; CPU:$E006 PRG:6006 75 34
ror a ; CPU:$E008 PRG:6008 6A
tax ; CPU:$E009 PRG:6009 AA
lda Zp1C ; CPU:$E00A PRG:600A A5 1C
pha ; CPU:$E00C PRG:600C 48
jsr Sub_EED9 ; CPU:$E00D PRG:600D 20 D9 EE
pla ; CPU:$E010 PRG:6010 68
sta Zp1C ; CPU:$E011 PRG:6011 85 1C
rts ; CPU:$E013 PRG:6013 60
; -----------------------------------------------------------------------------
; Routine: Label_E014
; Global: Branch target inside Label: taken when E014.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_E014:
jmp $51E0 ; CPU:$E014 PRG:6014 4C E0 51
; -----------------------------------------------------------------------------
; Routine: Label_E017
; Global: Branch target inside Label: taken when E017.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_E017:
cpx #$56 ; CPU:$E017 PRG:6017 E0 56
cpx #$6F ; CPU:$E019 PRG:6019 E0 6F
cpx #$88 ; CPU:$E01B PRG:601B E0 88
cpx #$A1 ; CPU:$E01D PRG:601D E0 A1
cpx #$BA ; CPU:$E01F PRG:601F E0 BA
cpx #$D3 ; CPU:$E021 PRG:6021 E0 D3
cpx #$EC ; CPU:$E023 PRG:6023 E0 EC
cpx #$F6 ; CPU:$E025 PRG:6025 E0 F6
cpx #$00 ; CPU:$E027 PRG:6027 E0 00
sbc (Zp05,x) ; CPU:$E029 PRG:6029 E1 05
sbc (Zp0A,x) ; CPU:$E02B PRG:602B E1 0A
sbc (Zp0F,x) ; CPU:$E02D PRG:602D E1 0F
sbc (Zp14,x) ; CPU:$E02F PRG:602F E1 14
sbc (Zp1E,x) ; CPU:$E031 PRG:6031 E1 1E
sbc (Zp28,x) ; CPU:$E033 PRG:6033 E1 28
sbc (Zp28,x) ; CPU:$E035 PRG:6035 E1 28
sbc (PlayerTile,x) ; CPU:$E037 PRG:6037 E1 32
sbc (PlayerTile,x) ; CPU:$E039 PRG:6039 E1 32
sbc (Zp50,x) ; CPU:$E03B PRG:603B E1 50
sbc (Zp50,x) ; CPU:$E03D PRG:603D E1 50
sbc (Zp5A,x) ; CPU:$E03F PRG:603F E1 5A
sbc (Zp5A,x) ; CPU:$E041 PRG:6041 E1 5A
sbc (Zp64,x) ; CPU:$E043 PRG:6043 E1 64
sbc (Zp6E,x) ; CPU:$E045 PRG:6045 E1 6E
sbc (Zp78,x) ; CPU:$E047 PRG:6047 E1 78
sbc (Zp82,x) ; CPU:$E049 PRG:6049 E1 82
sbc (Zp4C,x) ; CPU:$E04B PRG:604B E1 4C
ror Zp24 ; CPU:$E04D PRG:604D 66 24
ror a ; CPU:$E04F PRG:604F 6A
; ---- data $E050-$E1A9 (346 bytes) ----
; referenced by `lda $E18C,x` at $DC8F (operand $E18C falls inside this region)
; referenced by `lda $E18D,x` at $DC94 (operand $E18D falls inside this region)
.byte $02, $68, $28, $64, $50, $01, $14, $40, $3C, $18, $03, $4C, $40, $24, $18, $43 ; CPU:$E050 PRG:6050 02 68 28 64 50 01 14 40 3C 18 03 4C 40 24 18 43
.byte $4C, $2E, $24, $56, $02, $58, $18, $30, $40, $41, $58, $2E, $30, $56, $00, $14 ; CPU:$E060 PRG:6060 4C 2E 24 56 02 58 18 30 40 41 58 2E 30 56 00 14
.byte $40, $3C, $18, $03, $14, $28, $3C, $50, $83, $54, $28, $2C, $50, $01, $3C, $32 ; CPU:$E070 PRG:6070 40 3C 18 03 14 28 3C 50 83 54 28 2C 50 01 3C 32
.byte $14, $5A, $82, $54, $32, $2C, $5A, $00, $14, $40, $3C, $18, $03, $00, $00, $00 ; CPU:$E080 PRG:6080 14 5A 82 54 32 2C 5A 00 14 40 3C 18 03 00 00 00
.byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $3C, $2E, $14, $56 ; CPU:$E090 PRG:6090 00 00 00 00 00 00 00 00 00 00 00 00 3C 2E 14 56
.byte $02, $14, $40, $3C, $18, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; CPU:$E0A0 PRG:60A0 02 14 40 3C 18 03 00 00 00 00 00 00 00 00 00 00
.byte $00, $00, $00, $00, $00, $54, $18, $2C, $40, $01, $14, $40, $3C, $18, $03, $00 ; CPU:$E0B0 PRG:60B0 00 00 00 00 00 54 18 2C 40 01 14 40 3C 18 03 00
.byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $64, $2E ; CPU:$E0C0 PRG:60C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 64 2E
.byte $68, $56, $00, $14, $40, $3C, $18, $03, $00, $00, $00, $00, $00, $00, $00, $00 ; CPU:$E0D0 PRG:60D0 68 56 00 14 40 3C 18 03 00 00 00 00 00 00 00 00
.byte $00, $00, $00, $00, $00, $00, $00, $54, $6A, $2C, $66, $00, $1C, $2E, $44, $56 ; CPU:$E0E0 PRG:60E0 00 00 00 00 00 00 00 54 6A 2C 66 00 1C 2E 44 56
.byte $02, $24, $32, $4C, $5A, $02, $54, $48, $2C, $20, $01, $58, $50, $30, $28, $01 ; CPU:$E0F0 PRG:60F0 02 24 32 4C 5A 02 54 48 2C 20 01 58 50 30 28 01
.byte $24, $56, $4C, $2E, $02, $2C, $50, $54, $28, $01, $24, $32, $4C, $5A, $02, $58 ; CPU:$E100 PRG:6100 24 56 4C 2E 02 2C 50 54 28 01 24 32 4C 5A 02 58
.byte $50, $30, $28, $01, $14, $40, $3C, $18, $03, $1C, $56, $44, $2E, $02, $14, $40 ; CPU:$E110 PRG:6110 50 30 28 01 14 40 3C 18 03 1C 56 44 2E 02 14 40
.byte $3C, $18, $03, $2C, $48, $54, $20, $01, $2D, $5A, $55, $32, $04, $5F, $5E, $37 ; CPU:$E120 PRG:6120 3C 18 03 2C 48 54 20 01 2D 5A 55 32 04 5F 5E 37
.byte $36, $04, $14, $42, $3C, $1A, $04, $14, $2A, $3C, $52, $84, $54, $2A, $2C, $52 ; CPU:$E130 PRG:6130 36 04 14 42 3C 1A 04 14 2A 3C 52 84 54 2A 2C 52
.byte $04, $3C, $2A, $14, $52, $C4, $39, $38, $61, $60, $04, $58, $1A, $30, $42, $04 ; CPU:$E140 PRG:6140 04 3C 2A 14 52 C4 39 38 61 60 04 58 1A 30 42 04
.byte $26, $6C, $4E, $6D, $04, $26, $6C, $4E, $6D, $04, $00, $5B, $00, $33, $04, $5C ; CPU:$E150 PRG:6150 26 6C 4E 6D 04 26 6C 4E 6D 04 00 5B 00 33 04 5C
.byte $5D, $34, $35, $04, $24, $18, $4C, $40, $C3, $24, $18, $4C, $40, $03, $3C, $50 ; CPU:$E160 PRG:6160 5D 34 35 04 24 18 4C 40 C3 24 18 4C 40 03 3C 50
.byte $14, $28, $C3, $3C, $50, $14, $28, $03, $24, $40, $4C, $18, $83, $14, $56, $3C ; CPU:$E170 PRG:6170 14 28 C3 3C 50 14 28 03 24 40 4C 18 83 14 56 3C
.byte $2E, $02, $14, $50, $3C, $28, $43, $2C, $40, $54, $18, $01, $9C, $DC, $9F, $DC ; CPU:$E180 PRG:6180 2E 02 14 50 3C 28 43 2C 40 54 18 01 9C DC 9F DC
.byte $DA, $DC, $DD, $DC, $E0, $DD, $E3, $DD, $E6, $DD, $E9, $DD, $FB, $DD, $07, $DE ; CPU:$E190 PRG:6190 DA DC DD DC E0 DD E3 DD E6 DD E9 DD FB DD 07 DE
.byte $35, $DE, $38, $DE, $3B, $DE, $47, $DE, $A5, $DE ; CPU:$E1A0 PRG:61A0 35 DE 38 DE 3B DE 47 DE A5 DE
; -----------------------------------------------------------------------------
; Routine: Sub_E1AA
; Global: Branch target inside Sub: taken when E1AA.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E1AA:
lda Zp37 ; CPU:$E1AA PRG:61AA A5 37
bmi Sub_Loop642 ; CPU:$E1AC PRG:61AC 30 43
lda Zp3B ; CPU:$E1AE PRG:61AE A5 3B
bmi Sub_Loop642 ; CPU:$E1B0 PRG:61B0 30 3F
ldx #$21 ; CPU:$E1B2 PRG:61B2 A2 21
ldy #$AB ; CPU:$E1B4 PRG:61B4 A0 AB
jsr Sub_FD34 ; CPU:$E1B6 PRG:61B6 20 34 FD
ldx #$00 ; CPU:$E1B9 PRG:61B9 A2 00
lda GameState ; CPU:$E1BB PRG:61BB A5 36
bmi Sub_Loop641 ; CPU:$E1BD PRG:61BD 30 23
ldx #$0A ; CPU:$E1BF PRG:61BF A2 0A
lda ZpAA ; CPU:$E1C1 PRG:61C1 A5 AA
beq Sub_Loop640 ; CPU:$E1C3 PRG:61C3 F0 02
ldx #$14 ; CPU:$E1C5 PRG:61C5 A2 14
; -----------------------------------------------------------------------------
; Routine: Sub_Loop640
; Global: Branch target inside Sub: taken when Loop640.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop640:
ldy #$0A ; CPU:$E1C7 PRG:61C7 A0 0A
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero11
; Global: Branch target inside Sub: taken when OnNonzero11.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero11:
lda $E256,x ; CPU:$E1C9 PRG:61C9 BD 56 E2
sta PPUDATA ; CPU:$E1CC PRG:61CC 8D 07 20
inx ; CPU:$E1CF PRG:61CF E8
dey ; CPU:$E1D0 PRG:61D0 88
bne Sub_OnNonzero11 ; CPU:$E1D1 PRG:61D1 D0 F6
ldx #$22 ; CPU:$E1D3 PRG:61D3 A2 22
ldy #$6B ; CPU:$E1D5 PRG:61D5 A0 6B
jsr Sub_FD34 ; CPU:$E1D7 PRG:61D7 20 34 FD
ldx #$0A ; CPU:$E1DA PRG:61DA A2 0A
lda ZpAA ; CPU:$E1DC PRG:61DC A5 AA
beq Sub_Loop641 ; CPU:$E1DE PRG:61DE F0 02
ldx #$1E ; CPU:$E1E0 PRG:61E0 A2 1E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop641
; Global: Branch target inside Sub: taken when Loop641.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop641:
ldy #$0A ; CPU:$E1E2 PRG:61E2 A0 0A
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero12
; Global: Branch target inside Sub: taken when OnNonzero12.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero12:
lda $E256,x ; CPU:$E1E4 PRG:61E4 BD 56 E2
sta PPUDATA ; CPU:$E1E7 PRG:61E7 8D 07 20
inx ; CPU:$E1EA PRG:61EA E8
dey ; CPU:$E1EB PRG:61EB 88
bne Sub_OnNonzero12 ; CPU:$E1EC PRG:61EC D0 F6
jmp Sub_Loop647 ; CPU:$E1EE PRG:61EE 4C 52 E2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop642
; Global: Branch target inside Sub: taken when Loop642.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop642:
ldx #$21 ; CPU:$E1F1 PRG:61F1 A2 21
ldy #$AB ; CPU:$E1F3 PRG:61F3 A0 AB
lda GameState ; CPU:$E1F5 PRG:61F5 A5 36
bmi Sub_Loop643 ; CPU:$E1F7 PRG:61F7 30 08
lda ZpA4 ; CPU:$E1F9 PRG:61F9 A5 A4
beq Sub_Loop643 ; CPU:$E1FB PRG:61FB F0 04
ldx #$22 ; CPU:$E1FD PRG:61FD A2 22
ldy #$6B ; CPU:$E1FF PRG:61FF A0 6B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop643
; Global: Branch target inside Sub: taken when Loop643.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop643:
jsr Sub_FD34 ; CPU:$E201 PRG:6201 20 34 FD
ldx #$00 ; CPU:$E204 PRG:6204 A2 00
lda Zp37 ; CPU:$E206 PRG:6206 A5 37
and #$20 ; CPU:$E208 PRG:6208 29 20
beq Sub_Loop644 ; CPU:$E20A PRG:620A F0 07
inx ; CPU:$E20C PRG:620C E8
lda Zp7B ; CPU:$E20D PRG:620D A5 7B
and #$20 ; CPU:$E20F PRG:620F 29 20
beq Sub_Loop647 ; CPU:$E211 PRG:6211 F0 3F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop644
; Global: Branch target inside Sub: taken when Loop644.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop644:
ldy #$11 ; CPU:$E213 PRG:6213 A0 11
cpx #$00 ; CPU:$E215 PRG:6215 E0 00
beq Sub_Loop645 ; CPU:$E217 PRG:6217 F0 02
ldy #$12 ; CPU:$E219 PRG:6219 A0 12
; -----------------------------------------------------------------------------
; Routine: Sub_Loop645
; Global: Branch target inside Sub: taken when Loop645.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop645:
sty PPUDATA ; CPU:$E21B PRG:621B 8C 07 20
lda #$30 ; CPU:$E21E PRG:621E A9 30
sta PPUDATA ; CPU:$E220 PRG:6220 8D 07 20
lda #$1A ; CPU:$E223 PRG:6223 A9 1A
sta PPUDATA ; CPU:$E225 PRG:6225 8D 07 20
lda Zp37 ; CPU:$E228 PRG:6228 A5 37
and #$1F ; CPU:$E22A PRG:622A 29 1F
cmp #$07 ; CPU:$E22C PRG:622C C9 07
bne Sub_Loop646 ; CPU:$E22E PRG:622E D0 02
lda Zp9B ; CPU:$E230 PRG:6230 A5 9B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop646
; Global: Branch target inside Sub: taken when Loop646.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop646:
asl a ; CPU:$E232 PRG:6232 0A
sta PlayerState ; CPU:$E233 PRG:6233 85 1A
asl a ; CPU:$E235 PRG:6235 0A
clc ; CPU:$E236 PRG:6236 18
adc PlayerState ; CPU:$E237 PRG:6237 65 1A
tay ; CPU:$E239 PRG:6239 A8
ldx #$06 ; CPU:$E23A PRG:623A A2 06
lda #$7E ; CPU:$E23C PRG:623C A9 7E
sta Zp22 ; CPU:$E23E PRG:623E 85 22
lda #$E2 ; CPU:$E240 PRG:6240 A9 E2
sta Zp23 ; CPU:$E242 PRG:6242 85 23
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero13
; Global: Branch target inside Sub: taken when OnNonzero13.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero13:
lda (Zp22),y ; CPU:$E244 PRG:6244 B1 22
sta PPUDATA ; CPU:$E246 PRG:6246 8D 07 20
iny ; CPU:$E249 PRG:6249 C8
dex ; CPU:$E24A PRG:624A CA
bne Sub_OnNonzero13 ; CPU:$E24B PRG:624B D0 F7
lda #$00 ; CPU:$E24D PRG:624D A9 00
sta PPUDATA ; CPU:$E24F PRG:624F 8D 07 20
; -----------------------------------------------------------------------------
; Routine: Sub_Loop647
; Global: Branch target inside Sub: taken when Loop647.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop647:
jsr Sub_FD37 ; CPU:$E252 PRG:6252 20 37 FD
rts ; CPU:$E255 PRG:6255 60
; ---- data $E256-$E2D1 (124 bytes) ----
; referenced by `lda $E256,x` at $E1C9 (operand $E256 falls inside this region)
; referenced by `lda $E256,x` at $E1E4 (operand $E256 falls inside this region)
.byte $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $FF, $FF, $FF, $FF, $FF, $FF ; CPU:$E256 PRG:6256 CA CA CA CA CA CA CA CA CA CA FF FF FF FF FF FF
.byte $FF, $FF, $FF, $FF, $4E, $44, $44, $44, $44, $44, $44, $44, $44, $58, $FF, $FF ; CPU:$E266 PRG:6266 FF FF FF FF 4E 44 44 44 44 44 44 44 44 58 FF FF
.byte $AC, $AD, $44, $44, $AF, $AE, $FF, $FF, $22, $0E, $33, $2C, $21, $2D, $24, $0E ; CPU:$E276 PRG:6276 AC AD 44 44 AF AE FF FF 22 0E 33 2C 21 2D 24 0E
.byte $2B, $29, $23, $2B, $22, $0E, $21, $34, $21, $23, $26, $0E, $28, $22, $21, $34 ; CPU:$E286 PRG:6286 2B 29 23 2B 22 0E 21 34 21 23 26 0E 28 22 21 34
.byte $22, $0E, $24, $32, $2F, $30, $2E, $0E, $28, $21, $2E, $27, $22, $0E, $22, $32 ; CPU:$E296 PRG:6296 22 0E 24 32 2F 30 2E 0E 28 21 2E 27 22 0E 22 32
.byte $29, $2B, $00, $00, $00, $00, $00, $00, $25, $2E, $3A, $35, $29, $00, $37, $0E ; CPU:$E2A6 PRG:62A6 29 2B 00 00 00 00 00 00 25 2E 3A 35 29 00 37 0E
.byte $2C, $21, $32, $29, $22, $0E, $22, $35, $33, $34, $33, $21, $33, $2F, $32, $29 ; CPU:$E2B6 PRG:62B6 2C 21 32 29 22 0E 22 35 33 34 33 21 33 2F 32 29
.byte $34, $25, $23, $23, $28, $35, $2B, $39, $2F, $35, $2B, $29 ; CPU:$E2C6 PRG:62C6 34 25 23 23 28 35 2B 39 2F 35 2B 29
; -----------------------------------------------------------------------------
; Routine: Sub_E2D2
; Global: Branch target inside Sub: taken when E2D2.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E2D2:
lda Zp3E ; CPU:$E2D2 PRG:62D2 A5 3E
and #$20 ; CPU:$E2D4 PRG:62D4 29 20
bne Sub_Loop649 ; CPU:$E2D6 PRG:62D6 D0 36
ldx #$10 ; CPU:$E2D8 PRG:62D8 A2 10
lda WrestlerIndex ; CPU:$E2DA PRG:62DA A5 85
cmp #$13 ; CPU:$E2DC PRG:62DC C9 13
beq Sub_Loop648 ; CPU:$E2DE PRG:62DE F0 01
inx ; CPU:$E2E0 PRG:62E0 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop648
; Global: Branch target inside Sub: taken when Loop648.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop648:
stx Zp8E ; CPU:$E2E1 PRG:62E1 86 8E
ldx WrestlerIndex2 ; CPU:$E2E3 PRG:62E3 A6 86
lda PlayerX,x ; CPU:$E2E5 PRG:62E5 B5 33
sec ; CPU:$E2E7 PRG:62E7 38
sbc #$08 ; CPU:$E2E8 PRG:62E8 E9 08
tay ; CPU:$E2EA PRG:62EA A8
lda PlayerY,x ; CPU:$E2EB PRG:62EB B5 34
tax ; CPU:$E2ED PRG:62ED AA
lda #$80 ; CPU:$E2EE PRG:62EE A9 80
sta Zp91 ; CPU:$E2F0 PRG:62F0 85 91
lda #$00 ; CPU:$E2F2 PRG:62F2 A9 00
jsr Sub_EADE ; CPU:$E2F4 PRG:62F4 20 DE EA
ldx WrestlerIndex2 ; CPU:$E2F7 PRG:62F7 A6 86
ldy PlayerX,x ; CPU:$E2F9 PRG:62F9 B4 33
lda PlayerY,x ; CPU:$E2FB PRG:62FB B5 34
tax ; CPU:$E2FD PRG:62FD AA
lda ZpA9 ; CPU:$E2FE PRG:62FE A5 A9
sta Zp8E ; CPU:$E300 PRG:6300 85 8E
lda #$A0 ; CPU:$E302 PRG:6302 A9 A0
sta Zp91 ; CPU:$E304 PRG:6304 85 91
lda #$01 ; CPU:$E306 PRG:6306 A9 01
jsr Sub_EADE ; CPU:$E308 PRG:6308 20 DE EA
jmp Sub_E341 ; CPU:$E30B PRG:630B 4C 41 E3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop649
; Global: Branch target inside Sub: taken when Loop649.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop649:
ldx #$12 ; CPU:$E30E PRG:630E A2 12
lda WrestlerIndex2 ; CPU:$E310 PRG:6310 A5 86
cmp #$23 ; CPU:$E312 PRG:6312 C9 23
beq Sub_Loop650 ; CPU:$E314 PRG:6314 F0 01
inx ; CPU:$E316 PRG:6316 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop650
; Global: Branch target inside Sub: taken when Loop650.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop650:
stx Zp8E ; CPU:$E317 PRG:6317 86 8E
ldx WrestlerIndex ; CPU:$E319 PRG:6319 A6 85
lda PlayerX,x ; CPU:$E31B PRG:631B B5 33
sec ; CPU:$E31D PRG:631D 38
sbc #$08 ; CPU:$E31E PRG:631E E9 08
tay ; CPU:$E320 PRG:6320 A8
lda PlayerY,x ; CPU:$E321 PRG:6321 B5 34
tax ; CPU:$E323 PRG:6323 AA
lda #$80 ; CPU:$E324 PRG:6324 A9 80
sta Zp91 ; CPU:$E326 PRG:6326 85 91
lda #$01 ; CPU:$E328 PRG:6328 A9 01
jsr Sub_EADE ; CPU:$E32A PRG:632A 20 DE EA
ldx WrestlerIndex ; CPU:$E32D PRG:632D A6 85
ldy PlayerX,x ; CPU:$E32F PRG:632F B4 33
lda PlayerY,x ; CPU:$E331 PRG:6331 B5 34
tax ; CPU:$E333 PRG:6333 AA
lda ZpA8 ; CPU:$E334 PRG:6334 A5 A8
sta Zp8E ; CPU:$E336 PRG:6336 85 8E
lda #$A0 ; CPU:$E338 PRG:6338 A9 A0
sta Zp91 ; CPU:$E33A PRG:633A 85 91
lda #$00 ; CPU:$E33C PRG:633C A9 00
jsr Sub_EADE ; CPU:$E33E PRG:633E 20 DE EA
; -----------------------------------------------------------------------------
; Routine: Sub_E341
; Global: Branch target inside Sub: taken when E341.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E341:
rts ; CPU:$E341 PRG:6341 60
; -----------------------------------------------------------------------------
; Routine: Sub_E342
; Global: Branch target inside Sub: taken when E342.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E342:
ldx #$3A ; CPU:$E342 PRG:6342 A2 3A
lda Zp65 ; CPU:$E344 PRG:6344 A5 65
and #$C0 ; CPU:$E346 PRG:6346 29 C0
cmp #$80 ; CPU:$E348 PRG:6348 C9 80
beq Sub_Loop651 ; CPU:$E34A PRG:634A F0 02
ldx #$62 ; CPU:$E34C PRG:634C A2 62
; -----------------------------------------------------------------------------
; Routine: Sub_Loop651
; Global: Branch target inside Sub: taken when Loop651.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop651:
lda Zp65 ; CPU:$E34E PRG:634E A5 65
and #$1F ; CPU:$E350 PRG:6350 29 1F
beq Sub_Loop652 ; CPU:$E352 PRG:6352 F0 01
inx ; CPU:$E354 PRG:6354 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop652
; Global: Branch target inside Sub: taken when Loop652.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop652:
stx Zp8E ; CPU:$E355 PRG:6355 86 8E
lda #$40 ; CPU:$E357 PRG:6357 A9 40
sta Zp91 ; CPU:$E359 PRG:6359 85 91
ldy Zp66 ; CPU:$E35B PRG:635B A4 66
ldx Zp67 ; CPU:$E35D PRG:635D A6 67
lda #$04 ; CPU:$E35F PRG:635F A9 04
jsr Sub_EADE ; CPU:$E361 PRG:6361 20 DE EA
rts ; CPU:$E364 PRG:6364 60
; -----------------------------------------------------------------------------
; Routine: Sub_E365
; Global: Branch target inside Sub: taken when E365.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E365:
ldy Zp6B ; CPU:$E365 PRG:6365 A4 6B
ldx Zp6C ; CPU:$E367 PRG:6367 A6 6C
jsr Sub_FD34 ; CPU:$E369 PRG:6369 20 34 FD
lda Zp3F ; CPU:$E36C PRG:636C A5 3F
clc ; CPU:$E36E PRG:636E 18
adc #$10 ; CPU:$E36F PRG:636F 69 10
sta PPUDATA ; CPU:$E371 PRG:6371 8D 07 20
jsr Sub_FD37 ; CPU:$E374 PRG:6374 20 37 FD
rts ; CPU:$E377 PRG:6377 60
; -----------------------------------------------------------------------------
; Routine: Sub_E378
; Global: Branch target inside Sub: taken when E378.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E378:
lda GameState ; CPU:$E378 PRG:6378 A5 36
bmi Sub_Loop654 ; CPU:$E37A PRG:637A 30 38
ldy #$31 ; CPU:$E37C PRG:637C A0 31
ldx #$B4 ; CPU:$E37E PRG:637E A2 B4
lda #$6E ; CPU:$E380 PRG:6380 A9 6E
sta Zp8E ; CPU:$E382 PRG:6382 85 8E
lda #$C0 ; CPU:$E384 PRG:6384 A9 C0
sta Zp91 ; CPU:$E386 PRG:6386 85 91
lda #$05 ; CPU:$E388 PRG:6388 A9 05
jsr Sub_EADE ; CPU:$E38A PRG:638A 20 DE EA
ldx #$13 ; CPU:$E38D PRG:638D A2 13
lda GameState ; CPU:$E38F PRG:638F A5 36
and #$40 ; CPU:$E391 PRG:6391 29 40
bne Sub_Loop653 ; CPU:$E393 PRG:6393 D0 02
ldx #$18 ; CPU:$E395 PRG:6395 A2 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop653
; Global: Branch target inside Sub: taken when Loop653.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop653:
lda PlayerTile,x ; CPU:$E397 PRG:6397 B5 32
and #$1F ; CPU:$E399 PRG:6399 29 1F
cmp #$03 ; CPU:$E39B PRG:639B C9 03
bcc Sub_Loop656 ; CPU:$E39D PRG:639D 90 54
lda #$6E ; CPU:$E39F PRG:639F A9 6E
sta Zp8E ; CPU:$E3A1 PRG:63A1 85 8E
lda #$40 ; CPU:$E3A3 PRG:63A3 A9 40
sta Zp91 ; CPU:$E3A5 PRG:63A5 85 91
ldy #$B1 ; CPU:$E3A7 PRG:63A7 A0 B1
lda PlayerY,x ; CPU:$E3A9 PRG:63A9 B5 34
tax ; CPU:$E3AB PRG:63AB AA
lda #$05 ; CPU:$E3AC PRG:63AC A9 05
jsr Sub_EADE ; CPU:$E3AE PRG:63AE 20 DE EA
jmp Sub_Loop657 ; CPU:$E3B1 PRG:63B1 4C 00 E4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop654
; Global: Branch target inside Sub: taken when Loop654.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop654:
lda Zp41 ; CPU:$E3B4 PRG:63B4 A5 41
and #$20 ; CPU:$E3B6 PRG:63B6 29 20
bne Sub_Loop655 ; CPU:$E3B8 PRG:63B8 D0 17
ldx WrestlerIndex ; CPU:$E3BA PRG:63BA A6 85
lda PlayerY,x ; CPU:$E3BC PRG:63BC B5 34
tax ; CPU:$E3BE PRG:63BE AA
ldy #$7F ; CPU:$E3BF PRG:63BF A0 7F
lda #$6F ; CPU:$E3C1 PRG:63C1 A9 6F
sta Zp8E ; CPU:$E3C3 PRG:63C3 85 8E
lda #$20 ; CPU:$E3C5 PRG:63C5 A9 20
sta Zp91 ; CPU:$E3C7 PRG:63C7 85 91
lda #$05 ; CPU:$E3C9 PRG:63C9 A9 05
jsr Sub_EADE ; CPU:$E3CB PRG:63CB 20 DE EA
jmp Sub_E3D6 ; CPU:$E3CE PRG:63CE 4C D6 E3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop655
; Global: Branch target inside Sub: taken when Loop655.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop655:
ldx #$20 ; CPU:$E3D1 PRG:63D1 A2 20
jsr Sub_EEC5 ; CPU:$E3D3 PRG:63D3 20 C5 EE
; -----------------------------------------------------------------------------
; Routine: Sub_E3D6
; Global: Branch target inside Sub: taken when E3D6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E3D6:
lda Zp41 ; CPU:$E3D6 PRG:63D6 A5 41
and #$10 ; CPU:$E3D8 PRG:63D8 29 10
bne Sub_Loop656 ; CPU:$E3DA PRG:63DA D0 17
ldx WrestlerIndex2 ; CPU:$E3DC PRG:63DC A6 86
lda PlayerY,x ; CPU:$E3DE PRG:63DE B5 34
tax ; CPU:$E3E0 PRG:63E0 AA
ldy #$7F ; CPU:$E3E1 PRG:63E1 A0 7F
lda #$6F ; CPU:$E3E3 PRG:63E3 A9 6F
sta Zp8E ; CPU:$E3E5 PRG:63E5 85 8E
lda #$40 ; CPU:$E3E7 PRG:63E7 A9 40
sta Zp91 ; CPU:$E3E9 PRG:63E9 85 91
lda #$05 ; CPU:$E3EB PRG:63EB A9 05
jsr Sub_EADE ; CPU:$E3ED PRG:63ED 20 DE EA
jmp Sub_Loop657 ; CPU:$E3F0 PRG:63F0 4C 00 E4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop656
; Global: Branch target inside Sub: taken when Loop656.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop656:
lda Zp37 ; CPU:$E3F3 PRG:63F3 A5 37
bmi Sub_Loop657 ; CPU:$E3F5 PRG:63F5 30 09
lda Zp3E ; CPU:$E3F7 PRG:63F7 A5 3E
bmi Sub_Loop657 ; CPU:$E3F9 PRG:63F9 30 05
ldx #$40 ; CPU:$E3FB PRG:63FB A2 40
jsr Sub_EEC5 ; CPU:$E3FD PRG:63FD 20 C5 EE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop657
; Global: Branch target inside Sub: taken when Loop657.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop657:
rts ; CPU:$E400 PRG:6400 60
; -----------------------------------------------------------------------------
; Routine: Sub_E401
; Global: Branch target inside Sub: taken when E401.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E401:
ldx #$13 ; CPU:$E401 PRG:6401 A2 13
lda GameState ; CPU:$E403 PRG:6403 A5 36
and #$40 ; CPU:$E405 PRG:6405 29 40
bne Sub_Loop658 ; CPU:$E407 PRG:6407 D0 02
ldx #$18 ; CPU:$E409 PRG:6409 A2 18
; -----------------------------------------------------------------------------
; Routine: Sub_Loop658
; Global: Branch target inside Sub: taken when Loop658.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop658:
lda PlayerTile,x ; CPU:$E40B PRG:640B B5 32
and #$3F ; CPU:$E40D PRG:640D 29 3F
sta PlayerState ; CPU:$E40F PRG:640F 85 1A
cmp #$02 ; CPU:$E411 PRG:6411 C9 02
beq Sub_Loop662 ; CPU:$E413 PRG:6413 F0 2B
cmp #$03 ; CPU:$E415 PRG:6415 C9 03
beq Sub_Loop662 ; CPU:$E417 PRG:6417 F0 27
cmp #$04 ; CPU:$E419 PRG:6419 C9 04
beq Sub_Loop662 ; CPU:$E41B PRG:641B F0 23
cmp #$05 ; CPU:$E41D PRG:641D C9 05
beq Sub_Loop662 ; CPU:$E41F PRG:641F F0 1F
cmp #$06 ; CPU:$E421 PRG:6421 C9 06
beq Sub_Loop659 ; CPU:$E423 PRG:6423 F0 0B
cmp #$07 ; CPU:$E425 PRG:6425 C9 07
beq Sub_Loop667 ; CPU:$E427 PRG:6427 F0 57
cmp #$08 ; CPU:$E429 PRG:6429 C9 08
bne Sub_Loop659 ; CPU:$E42B PRG:642B D0 03
jmp Sub_E4CD ; CPU:$E42D PRG:642D 4C CD E4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop659
; Global: Branch target inside Sub: taken when Loop659.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop659:
ldy #$08 ; CPU:$E430 PRG:6430 A0 08
cpx #$13 ; CPU:$E432 PRG:6432 E0 13
beq Sub_Loop660 ; CPU:$E434 PRG:6434 F0 02
ldy #$0A ; CPU:$E436 PRG:6436 A0 0A
; -----------------------------------------------------------------------------
; Routine: Sub_Loop660
; Global: Branch target inside Sub: taken when Loop660.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop660:
cmp #$00 ; CPU:$E438 PRG:6438 C9 00
beq Sub_Loop661 ; CPU:$E43A PRG:643A F0 01
iny ; CPU:$E43C PRG:643C C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop661
; Global: Branch target inside Sub: taken when Loop661.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop661:
jmp Sub_Loop665 ; CPU:$E43D PRG:643D 4C 65 E4
; -----------------------------------------------------------------------------
; Routine: Sub_Loop662
; Global: Branch target inside Sub: taken when Loop662.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop662:
lda PlayerTile,x ; CPU:$E440 PRG:6440 B5 32
and #$C0 ; CPU:$E442 PRG:6442 29 C0
ldy #$14 ; CPU:$E444 PRG:6444 A0 14
cmp #$80 ; CPU:$E446 PRG:6446 C9 80
beq Sub_Loop663 ; CPU:$E448 PRG:6448 F0 0E
ldy #$3C ; CPU:$E44A PRG:644A A0 3C
cmp #$C0 ; CPU:$E44C PRG:644C C9 C0
beq Sub_Loop663 ; CPU:$E44E PRG:644E F0 08
ldy #$08 ; CPU:$E450 PRG:6450 A0 08
cmp #$40 ; CPU:$E452 PRG:6452 C9 40
beq Sub_Loop663 ; CPU:$E454 PRG:6454 F0 02
ldy #$00 ; CPU:$E456 PRG:6456 A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_Loop663
; Global: Branch target inside Sub: taken when Loop663.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop663:
cpx #$13 ; CPU:$E458 PRG:6458 E0 13
beq Sub_Loop664 ; CPU:$E45A PRG:645A F0 02
iny ; CPU:$E45C PRG:645C C8
iny ; CPU:$E45D PRG:645D C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop664
; Global: Branch target inside Sub: taken when Loop664.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop664:
lda ZpAC ; CPU:$E45E PRG:645E A5 AC
and #$08 ; CPU:$E460 PRG:6460 29 08
beq Sub_Loop665 ; CPU:$E462 PRG:6462 F0 01
iny ; CPU:$E464 PRG:6464 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop665
; Global: Branch target inside Sub: taken when Loop665.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop665:
sty Zp8E ; CPU:$E465 PRG:6465 84 8E
lda #$60 ; CPU:$E467 PRG:6467 A9 60
sta Zp91 ; CPU:$E469 PRG:6469 85 91
ldy PlayerX,x ; CPU:$E46B PRG:646B B4 33
lda PlayerY,x ; CPU:$E46D PRG:646D B5 34
tax ; CPU:$E46F PRG:646F AA
lda PlayerState ; CPU:$E470 PRG:6470 A5 1A
cmp #$03 ; CPU:$E472 PRG:6472 C9 03
bne Sub_Loop666 ; CPU:$E474 PRG:6474 D0 02
ldy #$A0 ; CPU:$E476 PRG:6476 A0 A0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop666
; Global: Branch target inside Sub: taken when Loop666.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop666:
lda #$02 ; CPU:$E478 PRG:6478 A9 02
jsr Sub_EADE ; CPU:$E47A PRG:647A 20 DE EA
jmp Sub_E534 ; CPU:$E47D PRG:647D 4C 34 E5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop667
; Global: Branch target inside Sub: taken when Loop667.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop667:
lda PlayerX,x ; CPU:$E480 PRG:6480 B5 33
sec ; CPU:$E482 PRG:6482 38
sbc #$08 ; CPU:$E483 PRG:6483 E9 08
sta $0700 ; CPU:$E485 PRG:6485 8D 00 07
lda #$F7 ; CPU:$E488 PRG:6488 A9 F7
sta $0701 ; CPU:$E48A PRG:648A 8D 01 07
lda #$03 ; CPU:$E48D PRG:648D A9 03
sta $0702 ; CPU:$E48F PRG:648F 8D 02 07
lda PlayerY,x ; CPU:$E492 PRG:6492 B5 34
sec ; CPU:$E494 PRG:6494 38
sbc #$08 ; CPU:$E495 PRG:6495 E9 08
sta $0703 ; CPU:$E497 PRG:6497 8D 03 07
lda PlayerX,x ; CPU:$E49A PRG:649A B5 33
sec ; CPU:$E49C PRG:649C 38
sbc #$08 ; CPU:$E49D PRG:649D E9 08
sta $0704 ; CPU:$E49F PRG:649F 8D 04 07
lda #$F8 ; CPU:$E4A2 PRG:64A2 A9 F8
sta $0705 ; CPU:$E4A4 PRG:64A4 8D 05 07
lda #$03 ; CPU:$E4A7 PRG:64A7 A9 03
sta $0706 ; CPU:$E4A9 PRG:64A9 8D 06 07
lda PlayerY,x ; CPU:$E4AC PRG:64AC B5 34
sta $0707 ; CPU:$E4AE PRG:64AE 8D 07 07
lda PlayerX,x ; CPU:$E4B1 PRG:64B1 B5 33
sta $0708 ; CPU:$E4B3 PRG:64B3 8D 08 07
lda #$F9 ; CPU:$E4B6 PRG:64B6 A9 F9
sta $0709 ; CPU:$E4B8 PRG:64B8 8D 09 07
lda #$03 ; CPU:$E4BB PRG:64BB A9 03
sta $070A ; CPU:$E4BD PRG:64BD 8D 0A 07
lda PlayerY,x ; CPU:$E4C0 PRG:64C0 B5 34
sec ; CPU:$E4C2 PRG:64C2 38
sbc #$04 ; CPU:$E4C3 PRG:64C3 E9 04
sta $070B ; CPU:$E4C5 PRG:64C5 8D 0B 07
ldy #$24 ; CPU:$E4C8 PRG:64C8 A0 24
jmp Sub_Loop663 ; CPU:$E4CA PRG:64CA 4C 58 E4
; -----------------------------------------------------------------------------
; Routine: Sub_E4CD
; Global: Branch target inside Sub: taken when E4CD.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E4CD:
lda PlayerX,x ; CPU:$E4CD PRG:64CD B5 33
sta $0700 ; CPU:$E4CF PRG:64CF 8D 00 07
lda #$FA ; CPU:$E4D2 PRG:64D2 A9 FA
sta $0701 ; CPU:$E4D4 PRG:64D4 8D 01 07
lda #$03 ; CPU:$E4D7 PRG:64D7 A9 03
sta $0702 ; CPU:$E4D9 PRG:64D9 8D 02 07
lda PlayerY,x ; CPU:$E4DC PRG:64DC B5 34
sec ; CPU:$E4DE PRG:64DE 38
sbc #$10 ; CPU:$E4DF PRG:64DF E9 10
sta $0703 ; CPU:$E4E1 PRG:64E1 8D 03 07
lda PlayerX,x ; CPU:$E4E4 PRG:64E4 B5 33
sta $0704 ; CPU:$E4E6 PRG:64E6 8D 04 07
lda #$FB ; CPU:$E4E9 PRG:64E9 A9 FB
sta $0705 ; CPU:$E4EB PRG:64EB 8D 05 07
lda #$03 ; CPU:$E4EE PRG:64EE A9 03
sta $0706 ; CPU:$E4F0 PRG:64F0 8D 06 07
lda PlayerY,x ; CPU:$E4F3 PRG:64F3 B5 34
sec ; CPU:$E4F5 PRG:64F5 38
sbc #$08 ; CPU:$E4F6 PRG:64F6 E9 08
sta $0707 ; CPU:$E4F8 PRG:64F8 8D 07 07
lda PlayerX,x ; CPU:$E4FB PRG:64FB B5 33
clc ; CPU:$E4FD PRG:64FD 18
adc #$08 ; CPU:$E4FE PRG:64FE 69 08
sta $0708 ; CPU:$E500 PRG:6500 8D 08 07
lda #$FA ; CPU:$E503 PRG:6503 A9 FA
sta $0709 ; CPU:$E505 PRG:6505 8D 09 07
lda #$83 ; CPU:$E508 PRG:6508 A9 83
sta $070A ; CPU:$E50A PRG:650A 8D 0A 07
lda PlayerY,x ; CPU:$E50D PRG:650D B5 34
sec ; CPU:$E50F PRG:650F 38
sbc #$10 ; CPU:$E510 PRG:6510 E9 10
sta $070B ; CPU:$E512 PRG:6512 8D 0B 07
lda PlayerX,x ; CPU:$E515 PRG:6515 B5 33
clc ; CPU:$E517 PRG:6517 18
adc #$08 ; CPU:$E518 PRG:6518 69 08
sta $070C ; CPU:$E51A PRG:651A 8D 0C 07
lda #$FB ; CPU:$E51D PRG:651D A9 FB
sta $070D ; CPU:$E51F PRG:651F 8D 0D 07
lda #$83 ; CPU:$E522 PRG:6522 A9 83
sta $070E ; CPU:$E524 PRG:6524 8D 0E 07
lda PlayerY,x ; CPU:$E527 PRG:6527 B5 34
sec ; CPU:$E529 PRG:6529 38
sbc #$08 ; CPU:$E52A PRG:652A E9 08
sta $070F ; CPU:$E52C PRG:652C 8D 0F 07
ldy #$1C ; CPU:$E52F PRG:652F A0 1C
jmp Sub_Loop663 ; CPU:$E531 PRG:6531 4C 58 E4
; -----------------------------------------------------------------------------
; Routine: Sub_E534
; Global: Branch target inside Sub: taken when E534.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E534:
rts ; CPU:$E534 PRG:6534 60
; -----------------------------------------------------------------------------
; Routine: Sub_E535
; Global: Branch target inside Sub: taken when E535.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E535:
ldx #$23 ; CPU:$E535 PRG:6535 A2 23
lda GameState ; CPU:$E537 PRG:6537 A5 36
and #$20 ; CPU:$E539 PRG:6539 29 20
bne Sub_Loop668 ; CPU:$E53B PRG:653B D0 02
ldx #$28 ; CPU:$E53D PRG:653D A2 28
; -----------------------------------------------------------------------------
; Routine: Sub_Loop668
; Global: Branch target inside Sub: taken when Loop668.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop668:
lda PlayerTile,x ; CPU:$E53F PRG:653F B5 32
and #$3F ; CPU:$E541 PRG:6541 29 3F
sta PlayerState ; CPU:$E543 PRG:6543 85 1A
cmp #$02 ; CPU:$E545 PRG:6545 C9 02
beq Sub_Loop670 ; CPU:$E547 PRG:6547 F0 1C
cmp #$03 ; CPU:$E549 PRG:6549 C9 03
beq Sub_Loop670 ; CPU:$E54B PRG:654B F0 18
cmp #$04 ; CPU:$E54D PRG:654D C9 04
beq Sub_Loop670 ; CPU:$E54F PRG:654F F0 14
cmp #$05 ; CPU:$E551 PRG:6551 C9 05
beq Sub_Loop670 ; CPU:$E553 PRG:6553 F0 10
ldy #$04 ; CPU:$E555 PRG:6555 A0 04
cpx #$23 ; CPU:$E557 PRG:6557 E0 23
beq Sub_Loop669 ; CPU:$E559 PRG:6559 F0 02
ldy #$06 ; CPU:$E55B PRG:655B A0 06
; -----------------------------------------------------------------------------
; Routine: Sub_Loop669
; Global: Branch target inside Sub: taken when Loop669.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop669:
cmp #$00 ; CPU:$E55D PRG:655D C9 00
beq Sub_Loop673 ; CPU:$E55F PRG:655F F0 29
iny ; CPU:$E561 PRG:6561 C8
jmp Sub_Loop673 ; CPU:$E562 PRG:6562 4C 8A E5
; -----------------------------------------------------------------------------
; Routine: Sub_Loop670
; Global: Branch target inside Sub: taken when Loop670.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop670:
lda PlayerTile,x ; CPU:$E565 PRG:6565 B5 32
and #$C0 ; CPU:$E567 PRG:6567 29 C0
ldy #$18 ; CPU:$E569 PRG:6569 A0 18
cmp #$80 ; CPU:$E56B PRG:656B C9 80
beq Sub_Loop671 ; CPU:$E56D PRG:656D F0 0E
ldy #$40 ; CPU:$E56F PRG:656F A0 40
cmp #$C0 ; CPU:$E571 PRG:6571 C9 C0
beq Sub_Loop671 ; CPU:$E573 PRG:6573 F0 08
ldy #$0C ; CPU:$E575 PRG:6575 A0 0C
cmp #$40 ; CPU:$E577 PRG:6577 C9 40
beq Sub_Loop671 ; CPU:$E579 PRG:6579 F0 02
ldy #$04 ; CPU:$E57B PRG:657B A0 04
; -----------------------------------------------------------------------------
; Routine: Sub_Loop671
; Global: Branch target inside Sub: taken when Loop671.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop671:
cpx #$23 ; CPU:$E57D PRG:657D E0 23
beq Sub_Loop672 ; CPU:$E57F PRG:657F F0 02
iny ; CPU:$E581 PRG:6581 C8
iny ; CPU:$E582 PRG:6582 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop672
; Global: Branch target inside Sub: taken when Loop672.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop672:
lda ZpAC ; CPU:$E583 PRG:6583 A5 AC
and #$08 ; CPU:$E585 PRG:6585 29 08
beq Sub_Loop673 ; CPU:$E587 PRG:6587 F0 01
iny ; CPU:$E589 PRG:6589 C8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop673
; Global: Branch target inside Sub: taken when Loop673.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop673:
sty Zp8E ; CPU:$E58A PRG:658A 84 8E
lda #$E0 ; CPU:$E58C PRG:658C A9 E0
sta Zp91 ; CPU:$E58E PRG:658E 85 91
ldy PlayerX,x ; CPU:$E590 PRG:6590 B4 33
lda PlayerY,x ; CPU:$E592 PRG:6592 B5 34
tax ; CPU:$E594 PRG:6594 AA
lda PlayerState ; CPU:$E595 PRG:6595 A5 1A
cmp #$03 ; CPU:$E597 PRG:6597 C9 03
bne Sub_Loop674 ; CPU:$E599 PRG:6599 D0 02
ldy #$20 ; CPU:$E59B PRG:659B A0 20
; -----------------------------------------------------------------------------
; Routine: Sub_Loop674
; Global: Branch target inside Sub: taken when Loop674.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop674:
lda #$03 ; CPU:$E59D PRG:659D A9 03
jsr Sub_EADE ; CPU:$E59F PRG:659F 20 DE EA
lda Zp9F ; CPU:$E5A2 PRG:65A2 A5 9F
beq Sub_Loop675 ; CPU:$E5A4 PRG:65A4 F0 1A
lda ZpAC ; CPU:$E5A6 PRG:65A6 A5 AC
lsr a ; CPU:$E5A8 PRG:65A8 4A
bcc Sub_Loop675 ; CPU:$E5A9 PRG:65A9 90 15
ldx #$00 ; CPU:$E5AB PRG:65AB A2 00
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero14
; Global: Branch target inside Sub: taken when OnNonzero14.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero14:
lda $07D0,x ; CPU:$E5AD PRG:65AD BD D0 07
pha ; CPU:$E5B0 PRG:65B0 48
lda $07F0,x ; CPU:$E5B1 PRG:65B1 BD F0 07
sta $07D0,x ; CPU:$E5B4 PRG:65B4 9D D0 07
pla ; CPU:$E5B7 PRG:65B7 68
sta $07F0,x ; CPU:$E5B8 PRG:65B8 9D F0 07
inx ; CPU:$E5BB PRG:65BB E8
cpx #$10 ; CPU:$E5BC PRG:65BC E0 10
bne Sub_OnNonzero14 ; CPU:$E5BE PRG:65BE D0 ED
; -----------------------------------------------------------------------------
; Routine: Sub_Loop675
; Global: Branch target inside Sub: taken when Loop675.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop675:
rts ; CPU:$E5C0 PRG:65C0 60
; -----------------------------------------------------------------------------
; Routine: Sub_E5C1
; Global: Branch target inside Sub: taken when E5C1.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E5C1:
lda GameState ; CPU:$E5C1 PRG:65C1 A5 36
bmi Sub_Loop677 ; CPU:$E5C3 PRG:65C3 30 30
lda ZpA3 ; CPU:$E5C5 PRG:65C5 A5 A3
bpl Sub_Loop677 ; CPU:$E5C7 PRG:65C7 10 2C
ldx #$23 ; CPU:$E5C9 PRG:65C9 A2 23
ldy #$28 ; CPU:$E5CB PRG:65CB A0 28
lda ZpA3 ; CPU:$E5CD PRG:65CD A5 A3
lsr a ; CPU:$E5CF PRG:65CF 4A
bcc Sub_Loop676 ; CPU:$E5D0 PRG:65D0 90 04
ldx #$21 ; CPU:$E5D2 PRG:65D2 A2 21
ldy #$53 ; CPU:$E5D4 PRG:65D4 A0 53
; -----------------------------------------------------------------------------
; Routine: Sub_Loop676
; Global: Branch target inside Sub: taken when Loop676.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop676:
jsr Sub_FD34 ; CPU:$E5D6 PRG:65D6 20 34 FD
lda #$34 ; CPU:$E5D9 PRG:65D9 A9 34
sta PPUDATA ; CPU:$E5DB PRG:65DB 8D 07 20
lda #$2F ; CPU:$E5DE PRG:65DE A9 2F
sta PPUDATA ; CPU:$E5E0 PRG:65E0 8D 07 20
lda #$35 ; CPU:$E5E3 PRG:65E3 A9 35
sta PPUDATA ; CPU:$E5E5 PRG:65E5 8D 07 20
lda #$23 ; CPU:$E5E8 PRG:65E8 A9 23
sta PPUDATA ; CPU:$E5EA PRG:65EA 8D 07 20
lda #$28 ; CPU:$E5ED PRG:65ED A9 28
sta PPUDATA ; CPU:$E5EF PRG:65EF 8D 07 20
jsr Sub_FD37 ; CPU:$E5F2 PRG:65F2 20 37 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop677
; Global: Branch target inside Sub: taken when Loop677.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop677:
rts ; CPU:$E5F5 PRG:65F5 60
; -----------------------------------------------------------------------------
; Routine: Sub_E5F6
; Global: Branch target inside Sub: taken when E5F6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E5F6:
lda GameState ; CPU:$E5F6 PRG:65F6 A5 36
bmi Sub_Loop678 ; CPU:$E5F8 PRG:65F8 30 04
lda ZpA3 ; CPU:$E5FA PRG:65FA A5 A3
bmi Sub_Loop680 ; CPU:$E5FC PRG:65FC 30 37
; -----------------------------------------------------------------------------
; Routine: Sub_Loop678
; Global: Branch target inside Sub: taken when Loop678.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop678:
lda Zp37 ; CPU:$E5FE PRG:65FE A5 37
bmi Sub_Loop680 ; CPU:$E600 PRG:6600 30 33
lda GameState ; CPU:$E602 PRG:6602 A5 36
bpl Sub_Loop679 ; CPU:$E604 PRG:6604 10 09
ldx #$22 ; CPU:$E606 PRG:6606 A2 22
ldy #$87 ; CPU:$E608 PRG:6608 A0 87
lda #$12 ; CPU:$E60A PRG:660A A9 12
jmp Sub_E626 ; CPU:$E60C PRG:660C 4C 26 E6
; -----------------------------------------------------------------------------
; Routine: Sub_Loop679
; Global: Branch target inside Sub: taken when Loop679.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop679:
ldx #$21 ; CPU:$E60F PRG:660F A2 21
ldy #$4F ; CPU:$E611 PRG:6611 A0 4F
jsr Sub_FD34 ; CPU:$E613 PRG:6613 20 34 FD
ldx #$0A ; CPU:$E616 PRG:6616 A2 0A
lda #$44 ; CPU:$E618 PRG:6618 A9 44
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero15
; Global: Branch target inside Sub: taken when OnNonzero15.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero15:
sta PPUDATA ; CPU:$E61A PRG:661A 8D 07 20
dex ; CPU:$E61D PRG:661D CA
bne Sub_OnNonzero15 ; CPU:$E61E PRG:661E D0 FA
ldx #$23 ; CPU:$E620 PRG:6620 A2 23
ldy #$28 ; CPU:$E622 PRG:6622 A0 28
lda #$0A ; CPU:$E624 PRG:6624 A9 0A
; -----------------------------------------------------------------------------
; Routine: Sub_E626
; Global: Branch target inside Sub: taken when E626.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E626:
jsr Sub_FD34 ; CPU:$E626 PRG:6626 20 34 FD
tax ; CPU:$E629 PRG:6629 AA
lda #$44 ; CPU:$E62A PRG:662A A9 44
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero16
; Global: Branch target inside Sub: taken when OnNonzero16.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero16:
sta PPUDATA ; CPU:$E62C PRG:662C 8D 07 20
dex ; CPU:$E62F PRG:662F CA
bne Sub_OnNonzero16 ; CPU:$E630 PRG:6630 D0 FA
jsr Sub_FD37 ; CPU:$E632 PRG:6632 20 37 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop680
; Global: Branch target inside Sub: taken when Loop680.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop680:
rts ; CPU:$E635 PRG:6635 60
; -----------------------------------------------------------------------------
; Routine: Sub_E636
; Global: Branch target inside Sub: taken when E636.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E636:
ldx #$20 ; CPU:$E636 PRG:6636 A2 20
ldy #$75 ; CPU:$E638 PRG:6638 A0 75
jsr Sub_FD34 ; CPU:$E63A PRG:663A 20 34 FD
ldx WrestlerIndex ; CPU:$E63D PRG:663D A6 85
jsr Sub_E652 ; CPU:$E63F PRG:663F 20 52 E6
ldx #$20 ; CPU:$E642 PRG:6642 A2 20
ldy #$95 ; CPU:$E644 PRG:6644 A0 95
jsr Sub_FD34 ; CPU:$E646 PRG:6646 20 34 FD
ldx WrestlerIndex2 ; CPU:$E649 PRG:6649 A6 86
jsr Sub_E652 ; CPU:$E64B PRG:664B 20 52 E6
jsr Sub_FD37 ; CPU:$E64E PRG:664E 20 37 FD
rts ; CPU:$E651 PRG:6651 60
; -----------------------------------------------------------------------------
; Routine: Sub_E652
; Global: Branch target inside Sub: taken when E652.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E652:
lda Zp35,x ; CPU:$E652 PRG:6652 B5 35
asl a ; CPU:$E654 PRG:6654 0A
sta PlayerState ; CPU:$E655 PRG:6655 85 1A
asl a ; CPU:$E657 PRG:6657 0A
clc ; CPU:$E658 PRG:6658 18
adc PlayerState ; CPU:$E659 PRG:6659 65 1A
tay ; CPU:$E65B PRG:665B A8
ldx #$06 ; CPU:$E65C PRG:665C A2 06
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero17
; Global: Branch target inside Sub: taken when OnNonzero17.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero17:
lda $E669,y ; CPU:$E65E PRG:665E B9 69 E6
sta PPUDATA ; CPU:$E661 PRG:6661 8D 07 20
iny ; CPU:$E664 PRG:6664 C8
dex ; CPU:$E665 PRG:6665 CA
bne Sub_OnNonzero17 ; CPU:$E666 PRG:6666 D0 F6
rts ; CPU:$E668 PRG:6668 60
; ---- data $E669-$E6FE (150 bytes) ----
; referenced by `lda $E669,y` at $E65E (operand $E669 falls inside this region)
.byte $00, $00, $00, $00, $00, $00, $E3, $00, $00, $00, $00, $00, $E2, $00, $00, $00 ; CPU:$E669 PRG:6669 00 00 00 00 00 00 E3 00 00 00 00 00 E2 00 00 00
.byte $00, $00, $E1, $00, $00, $00, $00, $00, $E0, $00, $00, $00, $00, $00, $E0, $E3 ; CPU:$E679 PRG:6679 00 00 E1 00 00 00 00 00 E0 00 00 00 00 00 E0 E3
.byte $00, $00, $00, $00, $E0, $E2, $00, $00, $00, $00, $E0, $E1, $00, $00, $00, $00 ; CPU:$E689 PRG:6689 00 00 00 00 E0 E2 00 00 00 00 E0 E1 00 00 00 00
.byte $E0, $E0, $00, $00, $00, $00, $E0, $E0, $E3, $00, $00, $00, $E0, $E0, $E2, $00 ; CPU:$E699 PRG:6699 E0 E0 00 00 00 00 E0 E0 E3 00 00 00 E0 E0 E2 00
.byte $00, $00, $E0, $E0, $E1, $00, $00, $00, $E0, $E0, $E0, $00, $00, $00, $E0, $E0 ; CPU:$E6A9 PRG:66A9 00 00 E0 E0 E1 00 00 00 E0 E0 E0 00 00 00 E0 E0
.byte $E0, $E3, $00, $00, $E0, $E0, $E0, $E2, $00, $00, $E0, $E0, $E0, $E1, $00, $00 ; CPU:$E6B9 PRG:66B9 E0 E3 00 00 E0 E0 E0 E2 00 00 E0 E0 E0 E1 00 00
.byte $E0, $E0, $E0, $E0, $00, $00, $E0, $E0, $E0, $E0, $E3, $00, $E0, $E0, $E0, $E0 ; CPU:$E6C9 PRG:66C9 E0 E0 E0 E0 00 00 E0 E0 E0 E0 E3 00 E0 E0 E0 E0
.byte $E2, $00, $E0, $E0, $E0, $E0, $E1, $00, $E0, $E0, $E0, $E0, $E0, $00, $E0, $E0 ; CPU:$E6D9 PRG:66D9 E2 00 E0 E0 E0 E0 E1 00 E0 E0 E0 E0 E0 00 E0 E0
.byte $E0, $E0, $E0, $E3, $E0, $E0, $E0, $E0, $E0, $E2, $E0, $E0, $E0, $E0, $E0, $E1 ; CPU:$E6E9 PRG:66E9 E0 E0 E0 E3 E0 E0 E0 E0 E0 E2 E0 E0 E0 E0 E0 E1
.byte $E0, $E0, $E0, $E0, $E0, $E0 ; CPU:$E6F9 PRG:66F9 E0 E0 E0 E0 E0 E0
; -----------------------------------------------------------------------------
; Routine: Sub_E6FF
; Global: Branch target inside Sub: taken when E6FF.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E6FF:
lda ZpAD ; CPU:$E6FF PRG:66FF A5 AD
asl a ; CPU:$E701 PRG:6701 0A
and #$0E ; CPU:$E702 PRG:6702 29 0E
sta PlayerState ; CPU:$E704 PRG:6704 85 1A
tay ; CPU:$E706 PRG:6706 A8
lda #$53 ; CPU:$E707 PRG:6707 A9 53
sta Zp22 ; CPU:$E709 PRG:6709 85 22
lda #$E7 ; CPU:$E70B PRG:670B A9 E7
sta Zp23 ; CPU:$E70D PRG:670D 85 23
lda #$73 ; CPU:$E70F PRG:670F A9 73
sta Zp24 ; CPU:$E711 PRG:6711 85 24
lda #$E7 ; CPU:$E713 PRG:6713 A9 E7
sta Zp25 ; CPU:$E715 PRG:6715 85 25
lda GameState ; CPU:$E717 PRG:6717 A5 36
bpl Sub_Loop681 ; CPU:$E719 PRG:6719 10 10
lda #$63 ; CPU:$E71B PRG:671B A9 63
sta Zp22 ; CPU:$E71D PRG:671D 85 22
lda #$E7 ; CPU:$E71F PRG:671F A9 E7
sta Zp23 ; CPU:$E721 PRG:6721 85 23
lda #$83 ; CPU:$E723 PRG:6723 A9 83
sta Zp24 ; CPU:$E725 PRG:6725 85 24
lda #$E7 ; CPU:$E727 PRG:6727 A9 E7
sta Zp25 ; CPU:$E729 PRG:6729 85 25
; -----------------------------------------------------------------------------
; Routine: Sub_Loop681
; Global: Branch target inside Sub: taken when Loop681.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop681:
jsr Sub_E830 ; CPU:$E72B PRG:672B 20 30 E8
ldx #$E7 ; CPU:$E72E PRG:672E A2 E7
ldy #$93 ; CPU:$E730 PRG:6730 A0 93
lda ZpAD ; CPU:$E732 PRG:6732 A5 AD
and #$08 ; CPU:$E734 PRG:6734 29 08
beq Sub_Loop682 ; CPU:$E736 PRG:6736 F0 04
ldx #$E7 ; CPU:$E738 PRG:6738 A2 E7
ldy #$9D ; CPU:$E73A PRG:673A A0 9D
; -----------------------------------------------------------------------------
; Routine: Sub_Loop682
; Global: Branch target inside Sub: taken when Loop682.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop682:
jsr Sub_FD3A ; CPU:$E73C PRG:673C 20 3A FD
ldx #$E7 ; CPU:$E73F PRG:673F A2 E7
ldy #$A7 ; CPU:$E741 PRG:6741 A0 A7
lda ZpAD ; CPU:$E743 PRG:6743 A5 AD
and #$10 ; CPU:$E745 PRG:6745 29 10
beq Sub_Loop683 ; CPU:$E747 PRG:6747 F0 04
ldx #$E7 ; CPU:$E749 PRG:6749 A2 E7
ldy #$B3 ; CPU:$E74B PRG:674B A0 B3
; -----------------------------------------------------------------------------
; Routine: Sub_Loop683
; Global: Branch target inside Sub: taken when Loop683.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop683:
jsr Sub_FD3A ; CPU:$E74D PRG:674D 20 3A FD
inc ZpAD ; CPU:$E750 PRG:6750 E6 AD
rts ; CPU:$E752 PRG:6752 60
; ---- data $E753-$E7BE (108 bytes) ----
.byte $E2, $20, $EB, $20, $F4, $20, $FC, $20, $21, $21, $3D, $21, $60, $21, $7E, $21 ; CPU:$E753 PRG:6753 E2 20 EB 20 F4 20 FC 20 21 21 3D 21 60 21 7E 21
.byte $C5, $21, $CC, $21, $D2, $21, $D9, $21, $E1, $21, $FD, $21, $21, $22, $3D, $22 ; CPU:$E763 PRG:6763 C5 21 CC 21 D2 21 D9 21 E1 21 FD 21 21 22 3D 22
.byte $C7, $71, $C7, $71, $C7, $71, $C7, $71, $C2, $CB, $C2, $CB, $BE, $BF, $BE, $BF ; CPU:$E773 PRG:6773 C7 71 C7 71 C7 71 C7 71 C2 CB C2 CB BE BF BE BF
.byte $CA, $CB, $CA, $CB, $CA, $CB, $CA, $CB, $CB, $CA, $CB, $CA, $CB, $CA, $CB, $CA ; CPU:$E783 PRG:6783 CA CB CA CB CA CB CA CB CB CA CB CA CB CA CB CA
.byte $6A, $23, $B2, $B0, $B6, $1F, $B3, $B1, $B7, $FF, $6A, $23, $BA, $B8, $BE, $1F ; CPU:$E793 PRG:6793 6A 23 B2 B0 B6 1F B3 B1 B7 FF 6A 23 BA B8 BE 1F
.byte $BB, $B9, $BF, $FF, $72, $23, $AE, $AC, $A6, $A4, $1F, $AF, $AD, $A7, $A5, $FF ; CPU:$E7A3 PRG:67A3 BB B9 BF FF 72 23 AE AC A6 A4 1F AF AD A7 A5 FF
.byte $72, $23, $AA, $A8, $A2, $A0, $1F, $AB, $A9, $A3, $A1, $FF ; CPU:$E7B3 PRG:67B3 72 23 AA A8 A2 A0 1F AB A9 A3 A1 FF
; -----------------------------------------------------------------------------
; Routine: Sub_E7BF
; Global: Branch target inside Sub: taken when E7BF.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E7BF:
lda ZpAC ; CPU:$E7BF PRG:67BF A5 AC
and #$0E ; CPU:$E7C1 PRG:67C1 29 0E
sta PlayerState ; CPU:$E7C3 PRG:67C3 85 1A
tay ; CPU:$E7C5 PRG:67C5 A8
lda #$F0 ; CPU:$E7C6 PRG:67C6 A9 F0
sta Zp22 ; CPU:$E7C8 PRG:67C8 85 22
lda #$E7 ; CPU:$E7CA PRG:67CA A9 E7
sta Zp23 ; CPU:$E7CC PRG:67CC 85 23
lda #$10 ; CPU:$E7CE PRG:67CE A9 10
sta Zp24 ; CPU:$E7D0 PRG:67D0 85 24
lda #$E8 ; CPU:$E7D2 PRG:67D2 A9 E8
sta Zp25 ; CPU:$E7D4 PRG:67D4 85 25
lda GameState ; CPU:$E7D6 PRG:67D6 A5 36
bpl Sub_Loop684 ; CPU:$E7D8 PRG:67D8 10 10
lda #$00 ; CPU:$E7DA PRG:67DA A9 00
sta Zp22 ; CPU:$E7DC PRG:67DC 85 22
lda #$E8 ; CPU:$E7DE PRG:67DE A9 E8
sta Zp23 ; CPU:$E7E0 PRG:67E0 85 23
lda #$20 ; CPU:$E7E2 PRG:67E2 A9 20
sta Zp24 ; CPU:$E7E4 PRG:67E4 85 24
lda #$E8 ; CPU:$E7E6 PRG:67E6 A9 E8
sta Zp25 ; CPU:$E7E8 PRG:67E8 85 25
; -----------------------------------------------------------------------------
; Routine: Sub_Loop684
; Global: Branch target inside Sub: taken when Loop684.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop684:
jsr Sub_E830 ; CPU:$E7EA PRG:67EA 20 30 E8
inc ZpAC ; CPU:$E7ED PRG:67ED E6 AC
rts ; CPU:$E7EF PRG:67EF 60
; ---- data $E7F0-$E82F (64 bytes) ----
.byte $E7, $20, $EF, $20, $F7, $20, $01, $21, $1D, $21, $40, $21, $5E, $21, $A0, $21 ; CPU:$E7F0 PRG:67F0 E7 20 EF 20 F7 20 01 21 1D 21 40 21 5E 21 A0 21
.byte $C1, $21, $C8, $21, $D5, $21, $DD, $21, $01, $22, $1D, $22, $41, $22, $5D, $22 ; CPU:$E800 PRG:6800 C1 21 C8 21 D5 21 DD 21 01 22 1D 22 41 22 5D 22
.byte $C7, $71, $C7, $71, $C7, $71, $CA, $CB, $CA, $CB, $C3, $C2, $C3, $C2, $C3, $C2 ; CPU:$E810 PRG:6810 C7 71 C7 71 C7 71 CA CB CA CB C3 C2 C3 C2 C3 C2
.byte $CA, $CB, $CA, $CB, $CA, $CB, $CA, $CB, $CA, $CB, $CA, $CB, $BE, $BF, $BE, $BF ; CPU:$E820 PRG:6820 CA CB CA CB CA CB CA CB CA CB CA CB BE BF BE BF
; -----------------------------------------------------------------------------
; Routine: Sub_E830
; Global: Branch target inside Sub: taken when E830.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E830:
lda (Zp22),y ; CPU:$E830 PRG:6830 B1 22
pha ; CPU:$E832 PRG:6832 48
iny ; CPU:$E833 PRG:6833 C8
lda (Zp22),y ; CPU:$E834 PRG:6834 B1 22
tax ; CPU:$E836 PRG:6836 AA
pla ; CPU:$E837 PRG:6837 68
tay ; CPU:$E838 PRG:6838 A8
jsr Sub_FD34 ; CPU:$E839 PRG:6839 20 34 FD
ldy PlayerState ; CPU:$E83C PRG:683C A4 1A
lda (Zp24),y ; CPU:$E83E PRG:683E B1 24
sta PPUDATA ; CPU:$E840 PRG:6840 8D 07 20
iny ; CPU:$E843 PRG:6843 C8
lda (Zp24),y ; CPU:$E844 PRG:6844 B1 24
sta PPUDATA ; CPU:$E846 PRG:6846 8D 07 20
lda PlayerState ; CPU:$E849 PRG:6849 A5 1A
clc ; CPU:$E84B PRG:684B 18
adc #$08 ; CPU:$E84C PRG:684C 69 08
and #$0E ; CPU:$E84E PRG:684E 29 0E
sta PlayerState ; CPU:$E850 PRG:6850 85 1A
tay ; CPU:$E852 PRG:6852 A8
lda (Zp22),y ; CPU:$E853 PRG:6853 B1 22
pha ; CPU:$E855 PRG:6855 48
iny ; CPU:$E856 PRG:6856 C8
lda (Zp22),y ; CPU:$E857 PRG:6857 B1 22
tax ; CPU:$E859 PRG:6859 AA
pla ; CPU:$E85A PRG:685A 68
tay ; CPU:$E85B PRG:685B A8
jsr Sub_FD34 ; CPU:$E85C PRG:685C 20 34 FD
ldy PlayerState ; CPU:$E85F PRG:685F A4 1A
iny ; CPU:$E861 PRG:6861 C8
lda (Zp24),y ; CPU:$E862 PRG:6862 B1 24
sta PPUDATA ; CPU:$E864 PRG:6864 8D 07 20
dey ; CPU:$E867 PRG:6867 88
lda (Zp24),y ; CPU:$E868 PRG:6868 B1 24
sta PPUDATA ; CPU:$E86A PRG:686A 8D 07 20
jsr Sub_FD37 ; CPU:$E86D PRG:686D 20 37 FD
rts ; CPU:$E870 PRG:6870 60
; -----------------------------------------------------------------------------
; Routine: Sub_E871
; Global: Branch target inside Sub: taken when E871.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E871:
lda GameState ; CPU:$E871 PRG:6871 A5 36
bpl Sub_Loop685 ; CPU:$E873 PRG:6873 10 1D
lda ZpAE ; CPU:$E875 PRG:6875 A5 AE
asl a ; CPU:$E877 PRG:6877 0A
and #$0E ; CPU:$E878 PRG:6878 29 0E
sta PlayerState ; CPU:$E87A PRG:687A 85 1A
tay ; CPU:$E87C PRG:687C A8
lda #$93 ; CPU:$E87D PRG:687D A9 93
sta Zp22 ; CPU:$E87F PRG:687F 85 22
lda #$E8 ; CPU:$E881 PRG:6881 A9 E8
sta Zp23 ; CPU:$E883 PRG:6883 85 23
lda #$A3 ; CPU:$E885 PRG:6885 A9 A3
sta Zp24 ; CPU:$E887 PRG:6887 85 24
lda #$E8 ; CPU:$E889 PRG:6889 A9 E8
sta Zp25 ; CPU:$E88B PRG:688B 85 25
jsr Sub_E830 ; CPU:$E88D PRG:688D 20 30 E8
inc ZpAE ; CPU:$E890 PRG:6890 E6 AE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop685
; Global: Branch target inside Sub: taken when Loop685.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop685:
rts ; CPU:$E892 PRG:6892 60
; ---- data $E893-$E8B2 (32 bytes) ----
.byte $63, $23, $68, $23, $6F, $23, $76, $23, $7A, $23, $86, $23, $8E, $23, $96, $23 ; CPU:$E893 PRG:6893 63 23 68 23 6F 23 76 23 7A 23 86 23 8E 23 96 23
.byte $CD, $CF, $CD, $CF, $CD, $CF, $CD, $CF, $CD, $CF, $CD, $CF, $CD, $CF, $CD, $CF ; CPU:$E8A3 PRG:68A3 CD CF CD CF CD CF CD CF CD CF CD CF CD CF CD CF
; -----------------------------------------------------------------------------
; Routine: Sub_E8B3
; Global: Branch target inside Sub: taken when E8B3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E8B3:
ldx #$20 ; CPU:$E8B3 PRG:68B3 A2 20
ldy #$F3 ; CPU:$E8B5 PRG:68B5 A0 F3
jsr Sub_FD34 ; CPU:$E8B7 PRG:68B7 20 34 FD
lda Zp43 ; CPU:$E8BA PRG:68BA A5 43
clc ; CPU:$E8BC PRG:68BC 18
adc #$10 ; CPU:$E8BD PRG:68BD 69 10
sta PPUDATA ; CPU:$E8BF PRG:68BF 8D 07 20
lda Zp42 ; CPU:$E8C2 PRG:68C2 A5 42
clc ; CPU:$E8C4 PRG:68C4 18
adc #$10 ; CPU:$E8C5 PRG:68C5 69 10
sta PPUDATA ; CPU:$E8C7 PRG:68C7 8D 07 20
jsr Sub_FD37 ; CPU:$E8CA PRG:68CA 20 37 FD
rts ; CPU:$E8CD PRG:68CD 60
; -----------------------------------------------------------------------------
; Routine: Sub_E8CE
; Global: Branch target inside Sub: taken when E8CE.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E8CE:
lda Zp8C ; CPU:$E8CE PRG:68CE A5 8C
bmi Sub_Loop686 ; CPU:$E8D0 PRG:68D0 30 03
jmp Sub_E93D ; CPU:$E8D2 PRG:68D2 4C 3D E9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop686
; Global: Branch target inside Sub: taken when Loop686.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop686:
and #$03 ; CPU:$E8D5 PRG:68D5 29 03
beq Sub_Loop687 ; CPU:$E8D7 PRG:68D7 F0 07
cmp #$01 ; CPU:$E8D9 PRG:68D9 C9 01
beq Sub_Loop689 ; CPU:$E8DB PRG:68DB F0 12
jmp Sub_E901 ; CPU:$E8DD PRG:68DD 4C 01 E9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop687
; Global: Branch target inside Sub: taken when Loop687.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop687:
ldx #$E9 ; CPU:$E8E0 PRG:68E0 A2 E9
ldy #$56 ; CPU:$E8E2 PRG:68E2 A0 56
lda GameState ; CPU:$E8E4 PRG:68E4 A5 36
bpl Sub_Loop688 ; CPU:$E8E6 PRG:68E6 10 04
ldx #$E9 ; CPU:$E8E8 PRG:68E8 A2 E9
ldy #$65 ; CPU:$E8EA PRG:68EA A0 65
; -----------------------------------------------------------------------------
; Routine: Sub_Loop688
; Global: Branch target inside Sub: taken when Loop688.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop688:
jmp Sub_Loop690 ; CPU:$E8EC PRG:68EC 4C FB E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop689
; Global: Branch target inside Sub: taken when Loop689.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop689:
ldx #$E9 ; CPU:$E8EF PRG:68EF A2 E9
ldy #$74 ; CPU:$E8F1 PRG:68F1 A0 74
lda GameState ; CPU:$E8F3 PRG:68F3 A5 36
bpl Sub_Loop690 ; CPU:$E8F5 PRG:68F5 10 04
ldx #$E9 ; CPU:$E8F7 PRG:68F7 A2 E9
ldy #$83 ; CPU:$E8F9 PRG:68F9 A0 83
; -----------------------------------------------------------------------------
; Routine: Sub_Loop690
; Global: Branch target inside Sub: taken when Loop690.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop690:
jsr Sub_FD3A ; CPU:$E8FB PRG:68FB 20 3A FD
jmp Sub_E932 ; CPU:$E8FE PRG:68FE 4C 32 E9
; -----------------------------------------------------------------------------
; Routine: Sub_E901
; Global: Branch target inside Sub: taken when E901.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E901:
ldx #$E9 ; CPU:$E901 PRG:6901 A2 E9
ldy #$56 ; CPU:$E903 PRG:6903 A0 56
lda GameState ; CPU:$E905 PRG:6905 A5 36
bpl Sub_Loop691 ; CPU:$E907 PRG:6907 10 04
ldx #$E9 ; CPU:$E909 PRG:6909 A2 E9
ldy #$65 ; CPU:$E90B PRG:690B A0 65
; -----------------------------------------------------------------------------
; Routine: Sub_Loop691
; Global: Branch target inside Sub: taken when Loop691.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop691:
jsr Sub_FD3A ; CPU:$E90D PRG:690D 20 3A FD
ldx #$21 ; CPU:$E910 PRG:6910 A2 21
ldy #$6F ; CPU:$E912 PRG:6912 A0 6F
lda GameState ; CPU:$E914 PRG:6914 A5 36
bpl Sub_Loop692 ; CPU:$E916 PRG:6916 10 04
ldx #$21 ; CPU:$E918 PRG:6918 A2 21
ldy #$2F ; CPU:$E91A PRG:691A A0 2F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop692
; Global: Branch target inside Sub: taken when Loop692.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop692:
jsr Sub_FD34 ; CPU:$E91C PRG:691C 20 34 FD
lda PlayerTile ; CPU:$E91F PRG:691F A5 32
asl a ; CPU:$E921 PRG:6921 0A
tax ; CPU:$E922 PRG:6922 AA
lda $E992,x ; CPU:$E923 PRG:6923 BD 92 E9
sta PPUDATA ; CPU:$E926 PRG:6926 8D 07 20
lda $E993,x ; CPU:$E929 PRG:6929 BD 93 E9
sta PPUDATA ; CPU:$E92C PRG:692C 8D 07 20
jsr Sub_FD37 ; CPU:$E92F PRG:692F 20 37 FD
; -----------------------------------------------------------------------------
; Routine: Sub_E932
; Global: Branch target inside Sub: taken when E932.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E932:
lda #$00 ; CPU:$E932 PRG:6932 A9 00
sta Zp8C ; CPU:$E934 PRG:6934 85 8C
lda #$40 ; CPU:$E936 PRG:6936 A9 40
sta Zp8D ; CPU:$E938 PRG:6938 85 8D
jmp Sub_E955 ; CPU:$E93A PRG:693A 4C 55 E9
; -----------------------------------------------------------------------------
; Routine: Sub_E93D
; Global: Branch target inside Sub: taken when E93D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E93D:
lda Zp8D ; CPU:$E93D PRG:693D A5 8D
bne Sub_Loop694 ; CPU:$E93F PRG:693F D0 12
ldx #$E9 ; CPU:$E941 PRG:6941 A2 E9
ldy #$A8 ; CPU:$E943 PRG:6943 A0 A8
lda GameState ; CPU:$E945 PRG:6945 A5 36
bpl Sub_Loop693 ; CPU:$E947 PRG:6947 10 04
ldx #$E9 ; CPU:$E949 PRG:6949 A2 E9
ldy #$B7 ; CPU:$E94B PRG:694B A0 B7
; -----------------------------------------------------------------------------
; Routine: Sub_Loop693
; Global: Branch target inside Sub: taken when Loop693.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop693:
jsr Sub_FD3A ; CPU:$E94D PRG:694D 20 3A FD
jmp Sub_E955 ; CPU:$E950 PRG:6950 4C 55 E9
; -----------------------------------------------------------------------------
; Routine: Sub_Loop694
; Global: Branch target inside Sub: taken when Loop694.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop694:
dec Zp8D ; CPU:$E953 PRG:6953 C6 8D
; -----------------------------------------------------------------------------
; Routine: Sub_E955
; Global: Branch target inside Sub: taken when E955.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E955:
rts ; CPU:$E955 PRG:6955 60
; ---- data $E956-$E9C5 (112 bytes) ----
; referenced by `lda $E992,x` at $E923 (operand $E992 falls inside this region)
; referenced by `lda $E993,x` at $E929 (operand $E993 falls inside this region)
.byte $6A, $21, $4C, $41, $53, $54, $20, $36, $30, $20, $53, $45, $43, $2E, $FF, $2A ; CPU:$E956 PRG:6956 6A 21 4C 41 53 54 20 36 30 20 53 45 43 2E FF 2A
.byte $21, $4C, $41, $53, $54, $20, $36, $30, $20, $53, $45, $43, $2E, $FF, $6A, $21 ; CPU:$E966 PRG:6966 21 4C 41 53 54 20 36 30 20 53 45 43 2E FF 6A 21
.byte $4C, $41, $53, $54, $20, $33, $30, $20, $53, $45, $43, $2E, $FF, $2A, $21, $4C ; CPU:$E976 PRG:6976 4C 41 53 54 20 33 30 20 53 45 43 2E FF 2A 21 4C
.byte $41, $53, $54, $20, $33, $30, $20, $53, $45, $43, $2E, $FF, $11, $10, $00, $19 ; CPU:$E986 PRG:6986 41 53 54 20 33 30 20 53 45 43 2E FF 11 10 00 19
.byte $00, $18, $00, $17, $00, $16, $00, $15, $00, $14, $00, $13, $00, $12, $00, $11 ; CPU:$E996 PRG:6996 00 18 00 17 00 16 00 15 00 14 00 13 00 12 00 11
.byte $00, $00, $6A, $21, $64, $64, $64, $64, $64, $64, $64, $64, $64, $64, $64, $64 ; CPU:$E9A6 PRG:69A6 00 00 6A 21 64 64 64 64 64 64 64 64 64 64 64 64
.byte $FF, $2A, $21, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $FF ; CPU:$E9B6 PRG:69B6 FF 2A 21 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 FF
; -----------------------------------------------------------------------------
; Routine: Sub_E9C6
; Global: Branch target inside Sub: taken when E9C6.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_E9C6:
lda #$FF ; CPU:$E9C6 PRG:69C6 A9 FF
sta ZpAF ; CPU:$E9C8 PRG:69C8 85 AF
lda Zp3B ; CPU:$E9CA PRG:69CA A5 3B
ora Zp3E ; CPU:$E9CC PRG:69CC 05 3E
bmi Sub_Loop695 ; CPU:$E9CE PRG:69CE 30 0C
lda GameState ; CPU:$E9D0 PRG:69D0 A5 36
and #$EF ; CPU:$E9D2 PRG:69D2 29 EF
sta GameState ; CPU:$E9D4 PRG:69D4 85 36
jsr Sub_D9E6 ; CPU:$E9D6 PRG:69D6 20 E6 D9
jsr Sub_FD19 ; CPU:$E9D9 PRG:69D9 20 19 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop695
; Global: Branch target inside Sub: taken when Loop695.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop695:
lda #$05 ; CPU:$E9DC PRG:69DC A9 05
sta PlayerState ; CPU:$E9DE PRG:69DE 85 1A
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero18
; Global: Branch target inside Sub: taken when OnNonzero18.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero18:
lda #$06 ; CPU:$E9E0 PRG:69E0 A9 06
jsr Sub_F03D ; CPU:$E9E2 PRG:69E2 20 3D F0
dec PlayerState ; CPU:$E9E5 PRG:69E5 C6 1A
bne Sub_OnNonzero18 ; CPU:$E9E7 PRG:69E7 D0 F7
lda #$08 ; CPU:$E9E9 PRG:69E9 A9 08
jsr Sub_F036 ; CPU:$E9EB PRG:69EB 20 36 F0
lda #$90 ; CPU:$E9EE PRG:69EE A9 90
sta PlayerState ; CPU:$E9F0 PRG:69F0 85 1A
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero19
; Global: Branch target inside Sub: taken when OnNonzero19.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero19:
jsr Sub_FD19 ; CPU:$E9F2 PRG:69F2 20 19 FD
lda PlayerState ; CPU:$E9F5 PRG:69F5 A5 1A
pha ; CPU:$E9F7 PRG:69F7 48
jsr Sub_E6FF ; CPU:$E9F8 PRG:69F8 20 FF E6
jsr Sub_E7BF ; CPU:$E9FB PRG:69FB 20 BF E7
jsr Sub_E871 ; CPU:$E9FE PRG:69FE 20 71 E8
jsr Sub_9BF0 ; CPU:$EA01 PRG:6A01 20 F0 9B
jsr Sub_FD19 ; CPU:$EA04 PRG:6A04 20 19 FD
pla ; CPU:$EA07 PRG:6A07 68
sta PlayerState ; CPU:$EA08 PRG:6A08 85 1A
ldx #$0F ; CPU:$EA0A PRG:6A0A A2 0F
lda PlayerState ; CPU:$EA0C PRG:6A0C A5 1A
lsr a ; CPU:$EA0E PRG:6A0E 4A
bcs Sub_Loop696 ; CPU:$EA0F PRG:6A0F B0 02
ldx #$14 ; CPU:$EA11 PRG:6A11 A2 14
; -----------------------------------------------------------------------------
; Routine: Sub_Loop696
; Global: Branch target inside Sub: taken when Loop696.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop696:
stx $0200 ; CPU:$EA13 PRG:6A13 8E 00 02
stx $0204 ; CPU:$EA16 PRG:6A16 8E 04 02
stx $0208 ; CPU:$EA19 PRG:6A19 8E 08 02
stx $020C ; CPU:$EA1C PRG:6A1C 8E 0C 02
ldx #$02 ; CPU:$EA1F PRG:6A1F A2 02
ldy #$00 ; CPU:$EA21 PRG:6A21 A0 00
sty Zp22 ; CPU:$EA23 PRG:6A23 84 22
stx Zp23 ; CPU:$EA25 PRG:6A25 86 23
ldx #$3F ; CPU:$EA27 PRG:6A27 A2 3F
ldy #$00 ; CPU:$EA29 PRG:6A29 A0 00
jsr Sub_FD34 ; CPU:$EA2B PRG:6A2B 20 34 FD
ldy #$00 ; CPU:$EA2E PRG:6A2E A0 00
ldx #$10 ; CPU:$EA30 PRG:6A30 A2 10
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero20
; Global: Branch target inside Sub: taken when OnNonzero20.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero20:
lda (Zp22),y ; CPU:$EA32 PRG:6A32 B1 22
sta PPUDATA ; CPU:$EA34 PRG:6A34 8D 07 20
iny ; CPU:$EA37 PRG:6A37 C8
dex ; CPU:$EA38 PRG:6A38 CA
bne Sub_OnNonzero20 ; CPU:$EA39 PRG:6A39 D0 F7
lda #$3F ; CPU:$EA3B PRG:6A3B A9 3F
sta PPUADDR ; CPU:$EA3D PRG:6A3D 8D 06 20
lda #$00 ; CPU:$EA40 PRG:6A40 A9 00
sta PPUADDR ; CPU:$EA42 PRG:6A42 8D 06 20
sta PPUADDR ; CPU:$EA45 PRG:6A45 8D 06 20
sta PPUADDR ; CPU:$EA48 PRG:6A48 8D 06 20
jsr Sub_FD37 ; CPU:$EA4B PRG:6A4B 20 37 FD
lda Zp7B ; CPU:$EA4E PRG:6A4E A5 7B
bpl Sub_Loop697 ; CPU:$EA50 PRG:6A50 10 09
jsr Sub_FD2B ; CPU:$EA52 PRG:6A52 20 2B FD
lda Zp18 ; CPU:$EA55 PRG:6A55 A5 18
and #$0C ; CPU:$EA57 PRG:6A57 29 0C
bne Sub_Loop698 ; CPU:$EA59 PRG:6A59 D0 04
; -----------------------------------------------------------------------------
; Routine: Sub_Loop697
; Global: Branch target inside Sub: taken when Loop697.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop697:
dec PlayerState ; CPU:$EA5B PRG:6A5B C6 1A
bne Sub_OnNonzero19 ; CPU:$EA5D PRG:6A5D D0 93
; -----------------------------------------------------------------------------
; Routine: Sub_Loop698
; Global: Branch target inside Sub: taken when Loop698.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop698:
jsr Sub_9BF3 ; CPU:$EA5F PRG:6A5F 20 F3 9B
lda #$00 ; CPU:$EA62 PRG:6A62 A9 00
sta ZpAF ; CPU:$EA64 PRG:6A64 85 AF
rts ; CPU:$EA66 PRG:6A66 60
; -----------------------------------------------------------------------------
; Routine: Sub_EA67
; Global: Branch target inside Sub: taken when EA67.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EA67:
pha ; CPU:$EA67 PRG:6A67 48
and #$7F ; CPU:$EA68 PRG:6A68 29 7F
asl a ; CPU:$EA6A PRG:6A6A 0A
tax ; CPU:$EA6B PRG:6A6B AA
lda $F2EF,x ; CPU:$EA6C PRG:6A6C BD EF F2
sta Zp22 ; CPU:$EA6F PRG:6A6F 85 22
lda $F2F0,x ; CPU:$EA71 PRG:6A71 BD F0 F2
sta Zp23 ; CPU:$EA74 PRG:6A74 85 23
ldy #$00 ; CPU:$EA76 PRG:6A76 A0 00
lda (Zp22),y ; CPU:$EA78 PRG:6A78 B1 22
sta Zp24 ; CPU:$EA7A PRG:6A7A 85 24
iny ; CPU:$EA7C PRG:6A7C C8
lda (Zp22),y ; CPU:$EA7D PRG:6A7D B1 22
sta Zp25 ; CPU:$EA7F PRG:6A7F 85 25
pla ; CPU:$EA81 PRG:6A81 68
bpl Sub_Loop699 ; CPU:$EA82 PRG:6A82 10 07
lda Zp25 ; CPU:$EA84 PRG:6A84 A5 25
clc ; CPU:$EA86 PRG:6A86 18
adc #$04 ; CPU:$EA87 PRG:6A87 69 04
sta Zp25 ; CPU:$EA89 PRG:6A89 85 25
; -----------------------------------------------------------------------------
; Routine: Sub_Loop699
; Global: Branch target inside Sub: taken when Loop699.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop699:
lda Zp22 ; CPU:$EA8B PRG:6A8B A5 22
clc ; CPU:$EA8D PRG:6A8D 18
adc #$02 ; CPU:$EA8E PRG:6A8E 69 02
sta Zp22 ; CPU:$EA90 PRG:6A90 85 22
lda Zp23 ; CPU:$EA92 PRG:6A92 A5 23
adc #$00 ; CPU:$EA94 PRG:6A94 69 00
sta Zp23 ; CPU:$EA96 PRG:6A96 85 23
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero21
; Global: Branch target inside Sub: taken when OnNonzero21.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero21:
lda Zp24 ; CPU:$EA98 PRG:6A98 A5 24
and #$1F ; CPU:$EA9A PRG:6A9A 29 1F
bne Sub_Loop700 ; CPU:$EA9C PRG:6A9C D0 09
ldy Zp24 ; CPU:$EA9E PRG:6A9E A4 24
ldx Zp25 ; CPU:$EAA0 PRG:6AA0 A6 25
jsr Sub_FD34 ; CPU:$EAA2 PRG:6AA2 20 34 FD
ldy #$00 ; CPU:$EAA5 PRG:6AA5 A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_Loop700
; Global: Branch target inside Sub: taken when Loop700.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop700:
lda (Zp22),y ; CPU:$EAA7 PRG:6AA7 B1 22
inc Zp22 ; CPU:$EAA9 PRG:6AA9 E6 22
bne Sub_Loop701 ; CPU:$EAAB PRG:6AAB D0 02
inc Zp23 ; CPU:$EAAD PRG:6AAD E6 23
; -----------------------------------------------------------------------------
; Routine: Sub_Loop701
; Global: Branch target inside Sub: taken when Loop701.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop701:
ldx #$01 ; CPU:$EAAF PRG:6AAF A2 01
cmp #$00 ; CPU:$EAB1 PRG:6AB1 C9 00
beq Sub_Loop702 ; CPU:$EAB3 PRG:6AB3 F0 04
cmp #$FF ; CPU:$EAB5 PRG:6AB5 C9 FF
bne Sub_Loop703 ; CPU:$EAB7 PRG:6AB7 D0 0B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop702
; Global: Branch target inside Sub: taken when Loop702.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop702:
pha ; CPU:$EAB9 PRG:6AB9 48
lda (Zp22),y ; CPU:$EABA PRG:6ABA B1 22
tax ; CPU:$EABC PRG:6ABC AA
pla ; CPU:$EABD PRG:6ABD 68
inc Zp22 ; CPU:$EABE PRG:6ABE E6 22
bne Sub_Loop703 ; CPU:$EAC0 PRG:6AC0 D0 02
inc Zp23 ; CPU:$EAC2 PRG:6AC2 E6 23
; -----------------------------------------------------------------------------
; Routine: Sub_Loop703
; Global: Branch target inside Sub: taken when Loop703.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop703:
sta PPUDATA ; CPU:$EAC4 PRG:6AC4 8D 07 20
inc Zp24 ; CPU:$EAC7 PRG:6AC7 E6 24
bne Sub_Loop704 ; CPU:$EAC9 PRG:6AC9 D0 02
inc Zp25 ; CPU:$EACB PRG:6ACB E6 25
; -----------------------------------------------------------------------------
; Routine: Sub_Loop704
; Global: Branch target inside Sub: taken when Loop704.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop704:
dex ; CPU:$EACD PRG:6ACD CA
bne Sub_Loop703 ; CPU:$EACE PRG:6ACE D0 F4
lda Zp25 ; CPU:$EAD0 PRG:6AD0 A5 25
and #$03 ; CPU:$EAD2 PRG:6AD2 29 03
bne Sub_OnNonzero21 ; CPU:$EAD4 PRG:6AD4 D0 C2
lda Zp24 ; CPU:$EAD6 PRG:6AD6 A5 24
bne Sub_OnNonzero21 ; CPU:$EAD8 PRG:6AD8 D0 BE
jsr Sub_FD37 ; CPU:$EADA PRG:6ADA 20 37 FD
rts ; CPU:$EADD PRG:6ADD 60
; -----------------------------------------------------------------------------
; Routine: Sub_EADE
; Global: Branch target inside Sub: taken when EADE.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EADE:
sty Zp8F ; CPU:$EADE PRG:6ADE 84 8F
stx Zp90 ; CPU:$EAE0 PRG:6AE0 86 90
tax ; CPU:$EAE2 PRG:6AE2 AA
lda $EBDD,x ; CPU:$EAE3 PRG:6AE3 BD DD EB
sta Zp1B ; CPU:$EAE6 PRG:6AE6 85 1B
cpx #$01 ; CPU:$EAE8 PRG:6AE8 E0 01
bne Sub_Loop705 ; CPU:$EAEA PRG:6AEA D0 0A
lda GameState ; CPU:$EAEC PRG:6AEC A5 36
and #$04 ; CPU:$EAEE PRG:6AEE 29 04
beq Sub_Loop705 ; CPU:$EAF0 PRG:6AF0 F0 04
lda #$02 ; CPU:$EAF2 PRG:6AF2 A9 02
sta Zp1B ; CPU:$EAF4 PRG:6AF4 85 1B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop705
; Global: Branch target inside Sub: taken when Loop705.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop705:
cpx #$00 ; CPU:$EAF6 PRG:6AF6 E0 00
bne Sub_Loop706 ; CPU:$EAF8 PRG:6AF8 D0 25
lda GameState ; CPU:$EAFA PRG:6AFA A5 36
and #$10 ; CPU:$EAFC PRG:6AFC 29 10
beq Sub_Loop706 ; CPU:$EAFE PRG:6AFE F0 1F
lda Zp3B ; CPU:$EB00 PRG:6B00 A5 3B
bmi Sub_Loop706 ; CPU:$EB02 PRG:6B02 30 1B
lda Zp3E ; CPU:$EB04 PRG:6B04 A5 3E
bmi Sub_Loop706 ; CPU:$EB06 PRG:6B06 30 17
lda Zp12 ; CPU:$EB08 PRG:6B08 A5 12
cmp #$08 ; CPU:$EB0A PRG:6B0A C9 08
bne Sub_Loop706 ; CPU:$EB0C PRG:6B0C D0 11
lda ZpAC ; CPU:$EB0E PRG:6B0E A5 AC
and #$01 ; CPU:$EB10 PRG:6B10 29 01
beq Sub_Loop706 ; CPU:$EB12 PRG:6B12 F0 0B
lda #$8D ; CPU:$EB14 PRG:6B14 A9 8D
sta Zp22 ; CPU:$EB16 PRG:6B16 85 22
lda #$E0 ; CPU:$EB18 PRG:6B18 A9 E0
sta Zp23 ; CPU:$EB1A PRG:6B1A 85 23
jmp Sub_EB39 ; CPU:$EB1C PRG:6B1C 4C 39 EB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop706
; Global: Branch target inside Sub: taken when Loop706.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop706:
lda #$00 ; CPU:$EB1F PRG:6B1F A9 00
sta Zp23 ; CPU:$EB21 PRG:6B21 85 23
lda Zp8E ; CPU:$EB23 PRG:6B23 A5 8E
asl a ; CPU:$EB25 PRG:6B25 0A
rol Zp23 ; CPU:$EB26 PRG:6B26 26 23
asl a ; CPU:$EB28 PRG:6B28 0A
rol Zp23 ; CPU:$EB29 PRG:6B29 26 23
asl a ; CPU:$EB2B PRG:6B2B 0A
rol Zp23 ; CPU:$EB2C PRG:6B2C 26 23
clc ; CPU:$EB2E PRG:6B2E 18
adc #$59 ; CPU:$EB2F PRG:6B2F 69 59
sta Zp22 ; CPU:$EB31 PRG:6B31 85 22
lda Zp23 ; CPU:$EB33 PRG:6B33 A5 23
adc #$F8 ; CPU:$EB35 PRG:6B35 69 F8
sta Zp23 ; CPU:$EB37 PRG:6B37 85 23
; -----------------------------------------------------------------------------
; Routine: Sub_EB39
; Global: Branch target inside Sub: taken when EB39.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EB39:
lda Zp8E ; CPU:$EB39 PRG:6B39 A5 8E
asl a ; CPU:$EB3B PRG:6B3B 0A
tax ; CPU:$EB3C PRG:6B3C AA
lda $FBD9,x ; CPU:$EB3D PRG:6B3D BD D9 FB
sta Zp1C ; CPU:$EB40 PRG:6B40 85 1C
lda $FBDA,x ; CPU:$EB42 PRG:6B42 BD DA FB
sta Zp1D ; CPU:$EB45 PRG:6B45 85 1D
ldx Zp8E ; CPU:$EB47 PRG:6B47 A6 8E
lda $F7E9,x ; CPU:$EB49 PRG:6B49 BD E9 F7
beq Sub_Loop707 ; CPU:$EB4C PRG:6B4C F0 09
lda Zp90 ; CPU:$EB4E PRG:6B4E A5 90
sec ; CPU:$EB50 PRG:6B50 38
sbc #$08 ; CPU:$EB51 PRG:6B51 E9 08
sta Zp90 ; CPU:$EB53 PRG:6B53 85 90
lda #$01 ; CPU:$EB55 PRG:6B55 A9 01
; -----------------------------------------------------------------------------
; Routine: Sub_Loop707
; Global: Branch target inside Sub: taken when Loop707.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop707:
sta Zp1E ; CPU:$EB57 PRG:6B57 85 1E
lda Zp91 ; CPU:$EB59 PRG:6B59 A5 91
sta Zp24 ; CPU:$EB5B PRG:6B5B 85 24
lda #$07 ; CPU:$EB5D PRG:6B5D A9 07
sta Zp25 ; CPU:$EB5F PRG:6B5F 85 25
ldy #$00 ; CPU:$EB61 PRG:6B61 A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero22
; Global: Branch target inside Sub: taken when OnNonzero22.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero22:
lda (Zp22),y ; CPU:$EB63 PRG:6B63 B1 22
pha ; CPU:$EB65 PRG:6B65 48
tya ; CPU:$EB66 PRG:6B66 98
tax ; CPU:$EB67 PRG:6B67 AA
ldy #$00 ; CPU:$EB68 PRG:6B68 A0 00
lda Zp8F ; CPU:$EB6A PRG:6B6A A5 8F
sta (Zp24),y ; CPU:$EB6C PRG:6B6C 91 24
iny ; CPU:$EB6E PRG:6B6E C8
pla ; CPU:$EB6F PRG:6B6F 68
sta (Zp24),y ; CPU:$EB70 PRG:6B70 91 24
iny ; CPU:$EB72 PRG:6B72 C8
lda Zp1B ; CPU:$EB73 PRG:6B73 A5 1B
lsr Zp1C ; CPU:$EB75 PRG:6B75 46 1C
bcc Sub_Loop708 ; CPU:$EB77 PRG:6B77 90 02
ora #$40 ; CPU:$EB79 PRG:6B79 09 40
; -----------------------------------------------------------------------------
; Routine: Sub_Loop708
; Global: Branch target inside Sub: taken when Loop708.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop708:
lsr Zp1D ; CPU:$EB7B PRG:6B7B 46 1D
bcc Sub_Loop709 ; CPU:$EB7D PRG:6B7D 90 02
ora #$80 ; CPU:$EB7F PRG:6B7F 09 80
; -----------------------------------------------------------------------------
; Routine: Sub_Loop709
; Global: Branch target inside Sub: taken when Loop709.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop709:
sta (Zp24),y ; CPU:$EB81 PRG:6B81 91 24
iny ; CPU:$EB83 PRG:6B83 C8
lda Zp90 ; CPU:$EB84 PRG:6B84 A5 90
sta (Zp24),y ; CPU:$EB86 PRG:6B86 91 24
lda Zp24 ; CPU:$EB88 PRG:6B88 A5 24
clc ; CPU:$EB8A PRG:6B8A 18
adc #$04 ; CPU:$EB8B PRG:6B8B 69 04
sta Zp24 ; CPU:$EB8D PRG:6B8D 85 24
lda Zp25 ; CPU:$EB8F PRG:6B8F A5 25
adc #$00 ; CPU:$EB91 PRG:6B91 69 00
sta Zp25 ; CPU:$EB93 PRG:6B93 85 25
txa ; CPU:$EB95 PRG:6B95 8A
tay ; CPU:$EB96 PRG:6B96 A8
iny ; CPU:$EB97 PRG:6B97 C8
lda Zp1E ; CPU:$EB98 PRG:6B98 A5 1E
bne Sub_Loop711 ; CPU:$EB9A PRG:6B9A D0 1F
tya ; CPU:$EB9C PRG:6B9C 98
lsr a ; CPU:$EB9D PRG:6B9D 4A
bcc Sub_Loop710 ; CPU:$EB9E PRG:6B9E 90 0A
lda Zp90 ; CPU:$EBA0 PRG:6BA0 A5 90
clc ; CPU:$EBA2 PRG:6BA2 18
adc #$08 ; CPU:$EBA3 PRG:6BA3 69 08
sta Zp90 ; CPU:$EBA5 PRG:6BA5 85 90
jmp Sub_EBD8 ; CPU:$EBA7 PRG:6BA7 4C D8 EB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop710
; Global: Branch target inside Sub: taken when Loop710.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop710:
lda Zp8F ; CPU:$EBAA PRG:6BAA A5 8F
clc ; CPU:$EBAC PRG:6BAC 18
adc #$08 ; CPU:$EBAD PRG:6BAD 69 08
sta Zp8F ; CPU:$EBAF PRG:6BAF 85 8F
lda Zp90 ; CPU:$EBB1 PRG:6BB1 A5 90
sec ; CPU:$EBB3 PRG:6BB3 38
sbc #$08 ; CPU:$EBB4 PRG:6BB4 E9 08
sta Zp90 ; CPU:$EBB6 PRG:6BB6 85 90
jmp Sub_EBD8 ; CPU:$EBB8 PRG:6BB8 4C D8 EB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop711
; Global: Branch target inside Sub: taken when Loop711.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop711:
tya ; CPU:$EBBB PRG:6BBB 98
and #$03 ; CPU:$EBBC PRG:6BBC 29 03
beq Sub_Loop712 ; CPU:$EBBE PRG:6BBE F0 0A
lda Zp90 ; CPU:$EBC0 PRG:6BC0 A5 90
clc ; CPU:$EBC2 PRG:6BC2 18
adc #$08 ; CPU:$EBC3 PRG:6BC3 69 08
sta Zp90 ; CPU:$EBC5 PRG:6BC5 85 90
jmp Sub_EBD8 ; CPU:$EBC7 PRG:6BC7 4C D8 EB
; -----------------------------------------------------------------------------
; Routine: Sub_Loop712
; Global: Branch target inside Sub: taken when Loop712.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop712:
lda Zp8F ; CPU:$EBCA PRG:6BCA A5 8F
clc ; CPU:$EBCC PRG:6BCC 18
adc #$08 ; CPU:$EBCD PRG:6BCD 69 08
sta Zp8F ; CPU:$EBCF PRG:6BCF 85 8F
lda Zp90 ; CPU:$EBD1 PRG:6BD1 A5 90
sec ; CPU:$EBD3 PRG:6BD3 38
sbc #$18 ; CPU:$EBD4 PRG:6BD4 E9 18
sta Zp90 ; CPU:$EBD6 PRG:6BD6 85 90
; -----------------------------------------------------------------------------
; Routine: Sub_EBD8
; Global: Branch target inside Sub: taken when EBD8.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EBD8:
cpy #$08 ; CPU:$EBD8 PRG:6BD8 C0 08
bne Sub_OnNonzero22 ; CPU:$EBDA PRG:6BDA D0 87
rts ; CPU:$EBDC PRG:6BDC 60
; ---- data $EBDD-$EBE3 (7 bytes) ----
; referenced by `lda $EBDD,x` at $EAE3 (operand $EBDD falls inside this region)
.byte $00, $01, $00, $01, $00, $02, $00 ; CPU:$EBDD PRG:6BDD 00 01 00 01 00 02 00
; -----------------------------------------------------------------------------
; Routine: Sub_EBE4
; Global: Branch target inside Sub: taken when EBE4.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EBE4:
lda #$00 ; CPU:$EBE4 PRG:6BE4 A9 00
sta Zp16 ; CPU:$EBE6 PRG:6BE6 85 16
lda Zp18 ; CPU:$EBE8 PRG:6BE8 A5 18
and #$FC ; CPU:$EBEA PRG:6BEA 29 FC
lda Zp37 ; CPU:$EBEC PRG:6BEC A5 37
bmi Sub_Loop713 ; CPU:$EBEE PRG:6BEE 30 0B
lda Zp45 ; CPU:$EBF0 PRG:6BF0 A5 45
and #$1F ; CPU:$EBF2 PRG:6BF2 29 1F
cmp #$03 ; CPU:$EBF4 PRG:6BF4 C9 03
bcc Sub_Loop715 ; CPU:$EBF6 PRG:6BF6 90 1D
jmp Sub_Loop720 ; CPU:$EBF8 PRG:6BF8 4C 42 EC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop713
; Global: Branch target inside Sub: taken when Loop713.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop713:
lda Zp13 ; CPU:$EBFB PRG:6BFB A5 13
and #$7F ; CPU:$EBFD PRG:6BFD 29 7F
bne Sub_Loop714 ; CPU:$EBFF PRG:6BFF D0 07
lda Zp18 ; CPU:$EC01 PRG:6C01 A5 18
ora #$01 ; CPU:$EC03 PRG:6C03 09 01
jmp Sub_EC10 ; CPU:$EC05 PRG:6C05 4C 10 EC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop714
; Global: Branch target inside Sub: taken when Loop714.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop714:
and #$0F ; CPU:$EC08 PRG:6C08 29 0F
bne Sub_Loop720 ; CPU:$EC0A PRG:6C0A D0 36
lda Zp18 ; CPU:$EC0C PRG:6C0C A5 18
ora #$02 ; CPU:$EC0E PRG:6C0E 09 02
; -----------------------------------------------------------------------------
; Routine: Sub_EC10
; Global: Branch target inside Sub: taken when EC10.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EC10:
sta Zp18 ; CPU:$EC10 PRG:6C10 85 18
jmp Sub_Loop720 ; CPU:$EC12 PRG:6C12 4C 42 EC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop715
; Global: Branch target inside Sub: taken when Loop715.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop715:
ldx #$00 ; CPU:$EC15 PRG:6C15 A2 00
lda Zp55 ; CPU:$EC17 PRG:6C17 A5 55
and #$1F ; CPU:$EC19 PRG:6C19 29 1F
cmp #$03 ; CPU:$EC1B PRG:6C1B C9 03
bcs Sub_Loop719 ; CPU:$EC1D PRG:6C1D B0 21
lda Zp47 ; CPU:$EC1F PRG:6C1F A5 47
cmp Zp57 ; CPU:$EC21 PRG:6C21 C5 57
beq Sub_Loop717 ; CPU:$EC23 PRG:6C23 F0 0C
bcs Sub_Loop716 ; CPU:$EC25 PRG:6C25 B0 05
ldx #$03 ; CPU:$EC27 PRG:6C27 A2 03
jmp Sub_Loop719 ; CPU:$EC29 PRG:6C29 4C 40 EC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop716
; Global: Branch target inside Sub: taken when Loop716.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop716:
ldx #$07 ; CPU:$EC2C PRG:6C2C A2 07
jmp Sub_Loop719 ; CPU:$EC2E PRG:6C2E 4C 40 EC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop717
; Global: Branch target inside Sub: taken when Loop717.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop717:
lda Zp46 ; CPU:$EC31 PRG:6C31 A5 46
cmp Zp56 ; CPU:$EC33 PRG:6C33 C5 56
beq Sub_Loop719 ; CPU:$EC35 PRG:6C35 F0 09
bcs Sub_Loop718 ; CPU:$EC37 PRG:6C37 B0 05
ldx #$05 ; CPU:$EC39 PRG:6C39 A2 05
jmp Sub_Loop719 ; CPU:$EC3B PRG:6C3B 4C 40 EC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop718
; Global: Branch target inside Sub: taken when Loop718.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop718:
ldx #$01 ; CPU:$EC3E PRG:6C3E A2 01
; -----------------------------------------------------------------------------
; Routine: Sub_Loop719
; Global: Branch target inside Sub: taken when Loop719.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop719:
stx Zp16 ; CPU:$EC40 PRG:6C40 86 16
; -----------------------------------------------------------------------------
; Routine: Sub_Loop720
; Global: Branch target inside Sub: taken when Loop720.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop720:
rts ; CPU:$EC42 PRG:6C42 60
; -----------------------------------------------------------------------------
; Routine: Sub_EC43
; Global: Branch target inside Sub: taken when EC43.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EC43:
ldx WrestlerIndex ; CPU:$EC43 PRG:6C43 A6 85
lda PlayerTile,x ; CPU:$EC45 PRG:6C45 B5 32
and #$3F ; CPU:$EC47 PRG:6C47 29 3F
cmp #$0B ; CPU:$EC49 PRG:6C49 C9 0B
bne Sub_Loop721 ; CPU:$EC4B PRG:6C4B D0 07
lda #$00 ; CPU:$EC4D PRG:6C4D A9 00
sta Zp94 ; CPU:$EC4F PRG:6C4F 85 94
jmp Sub_ED0C ; CPU:$EC51 PRG:6C51 4C 0C ED
; -----------------------------------------------------------------------------
; Routine: Sub_Loop721
; Global: Branch target inside Sub: taken when Loop721.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop721:
lda GameState ; CPU:$EC54 PRG:6C54 A5 36
and #$02 ; CPU:$EC56 PRG:6C56 29 02
beq Sub_Loop724 ; CPU:$EC58 PRG:6C58 F0 26
ldx WrestlerIndex ; CPU:$EC5A PRG:6C5A A6 85
lda Zp35,x ; CPU:$EC5C PRG:6C5C B5 35
and #$FC ; CPU:$EC5E PRG:6C5E 29 FC
bne Sub_Loop722 ; CPU:$EC60 PRG:6C60 D0 07
ldy #$00 ; CPU:$EC62 PRG:6C62 A0 00
lda ZpAC ; CPU:$EC64 PRG:6C64 A5 AC
lsr a ; CPU:$EC66 PRG:6C66 4A
bcc Sub_Loop723 ; CPU:$EC67 PRG:6C67 90 12
; -----------------------------------------------------------------------------
; Routine: Sub_Loop722
; Global: Branch target inside Sub: taken when Loop722.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop722:
ldx WrestlerIndex2 ; CPU:$EC69 PRG:6C69 A6 86
ldy #$04 ; CPU:$EC6B PRG:6C6B A0 04
lda PlayerY,x ; CPU:$EC6D PRG:6C6D B5 34
cmp #$50 ; CPU:$EC6F PRG:6C6F C9 50
bcc Sub_Loop723 ; CPU:$EC71 PRG:6C71 90 08
ldy #$03 ; CPU:$EC73 PRG:6C73 A0 03
cmp #$58 ; CPU:$EC75 PRG:6C75 C9 58
bcc Sub_Loop723 ; CPU:$EC77 PRG:6C77 90 02
ldy #$02 ; CPU:$EC79 PRG:6C79 A0 02
; -----------------------------------------------------------------------------
; Routine: Sub_Loop723
; Global: Branch target inside Sub: taken when Loop723.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop723:
sty Zp94 ; CPU:$EC7B PRG:6C7B 84 94
jmp Sub_ED0C ; CPU:$EC7D PRG:6C7D 4C 0C ED
; -----------------------------------------------------------------------------
; Routine: Sub_Loop724
; Global: Branch target inside Sub: taken when Loop724.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop724:
lda GameState ; CPU:$EC80 PRG:6C80 A5 36
and #$04 ; CPU:$EC82 PRG:6C82 29 04
bne Sub_Loop725 ; CPU:$EC84 PRG:6C84 D0 1E
lda Zp83 ; CPU:$EC86 PRG:6C86 A5 83
and #$07 ; CPU:$EC88 PRG:6C88 29 07
asl a ; CPU:$EC8A PRG:6C8A 0A
sta Zp1B ; CPU:$EC8B PRG:6C8B 85 1B
asl a ; CPU:$EC8D PRG:6C8D 0A
clc ; CPU:$EC8E PRG:6C8E 18
adc Zp1B ; CPU:$EC8F PRG:6C8F 65 1B
clc ; CPU:$EC91 PRG:6C91 18
adc PlayerX ; CPU:$EC92 PRG:6C92 65 33
tax ; CPU:$EC94 PRG:6C94 AA
lda $ED0D,x ; CPU:$EC95 PRG:6C95 BD 0D ED
beq Sub_Loop730 ; CPU:$EC98 PRG:6C98 F0 5A
ldx WrestlerIndex ; CPU:$EC9A PRG:6C9A A6 85
lda PlayerTile,x ; CPU:$EC9C PRG:6C9C B5 32
and #$3F ; CPU:$EC9E PRG:6C9E 29 3F
cmp #$03 ; CPU:$ECA0 PRG:6CA0 C9 03
bcs Sub_Loop730 ; CPU:$ECA2 PRG:6CA2 B0 50
; -----------------------------------------------------------------------------
; Routine: Sub_Loop725
; Global: Branch target inside Sub: taken when Loop725.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop725:
ldx WrestlerIndex ; CPU:$ECA4 PRG:6CA4 A6 85
lda PlayerX,x ; CPU:$ECA6 PRG:6CA6 B5 33
sta Zp1B ; CPU:$ECA8 PRG:6CA8 85 1B
lda PlayerY,x ; CPU:$ECAA PRG:6CAA B5 34
sta Zp1C ; CPU:$ECAC PRG:6CAC 85 1C
ldx WrestlerIndex2 ; CPU:$ECAE PRG:6CAE A6 86
lda PlayerX,x ; CPU:$ECB0 PRG:6CB0 B5 33
cmp Zp1B ; CPU:$ECB2 PRG:6CB2 C5 1B
beq Sub_Loop726 ; CPU:$ECB4 PRG:6CB4 F0 13
bcs Sub_Loop728 ; CPU:$ECB6 PRG:6CB6 B0 29
ldy #$05 ; CPU:$ECB8 PRG:6CB8 A0 05
lda PlayerY,x ; CPU:$ECBA PRG:6CBA B5 34
cmp Zp1C ; CPU:$ECBC PRG:6CBC C5 1C
beq Sub_Loop729 ; CPU:$ECBE PRG:6CBE F0 2F
ldy #$04 ; CPU:$ECC0 PRG:6CC0 A0 04
bcc Sub_Loop729 ; CPU:$ECC2 PRG:6CC2 90 2B
ldy #$06 ; CPU:$ECC4 PRG:6CC4 A0 06
jmp Sub_Loop729 ; CPU:$ECC6 PRG:6CC6 4C EF EC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop726
; Global: Branch target inside Sub: taken when Loop726.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop726:
lda PlayerY,x ; CPU:$ECC9 PRG:6CC9 B5 34
cmp Zp1C ; CPU:$ECCB PRG:6CCB C5 1C
bne Sub_Loop727 ; CPU:$ECCD PRG:6CCD D0 05
lda #$00 ; CPU:$ECCF PRG:6CCF A9 00
jmp Sub_Loop729 ; CPU:$ECD1 PRG:6CD1 4C EF EC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop727
; Global: Branch target inside Sub: taken when Loop727.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop727:
ldy #$03 ; CPU:$ECD4 PRG:6CD4 A0 03
lda PlayerY,x ; CPU:$ECD6 PRG:6CD6 B5 34
cmp Zp1C ; CPU:$ECD8 PRG:6CD8 C5 1C
bcc Sub_Loop729 ; CPU:$ECDA PRG:6CDA 90 13
ldy #$07 ; CPU:$ECDC PRG:6CDC A0 07
jmp Sub_Loop729 ; CPU:$ECDE PRG:6CDE 4C EF EC
; -----------------------------------------------------------------------------
; Routine: Sub_Loop728
; Global: Branch target inside Sub: taken when Loop728.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop728:
ldy #$01 ; CPU:$ECE1 PRG:6CE1 A0 01
lda PlayerY,x ; CPU:$ECE3 PRG:6CE3 B5 34
cmp Zp1C ; CPU:$ECE5 PRG:6CE5 C5 1C
beq Sub_Loop729 ; CPU:$ECE7 PRG:6CE7 F0 06
ldy #$02 ; CPU:$ECE9 PRG:6CE9 A0 02
bcc Sub_Loop729 ; CPU:$ECEB PRG:6CEB 90 02
ldy #$08 ; CPU:$ECED PRG:6CED A0 08
; -----------------------------------------------------------------------------
; Routine: Sub_Loop729
; Global: Branch target inside Sub: taken when Loop729.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop729:
sty Zp94 ; CPU:$ECEF PRG:6CEF 84 94
jmp Sub_ED0C ; CPU:$ECF1 PRG:6CF1 4C 0C ED
; -----------------------------------------------------------------------------
; Routine: Sub_Loop730
; Global: Branch target inside Sub: taken when Loop730.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop730:
lda ZpAC ; CPU:$ECF4 PRG:6CF4 A5 AC
and #$1F ; CPU:$ECF6 PRG:6CF6 29 1F
beq Sub_Loop731 ; CPU:$ECF8 PRG:6CF8 F0 0A
ldx Zp93 ; CPU:$ECFA PRG:6CFA A6 93
lda $ED3D,x ; CPU:$ECFC PRG:6CFC BD 3D ED
sta Zp94 ; CPU:$ECFF PRG:6CFF 85 94
jmp Sub_ED0C ; CPU:$ED01 PRG:6D01 4C 0C ED
; -----------------------------------------------------------------------------
; Routine: Sub_Loop731
; Global: Branch target inside Sub: taken when Loop731.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop731:
inc Zp93 ; CPU:$ED04 PRG:6D04 E6 93
lda Zp93 ; CPU:$ED06 PRG:6D06 A5 93
and #$0F ; CPU:$ED08 PRG:6D08 29 0F
sta Zp93 ; CPU:$ED0A PRG:6D0A 85 93
; -----------------------------------------------------------------------------
; Routine: Sub_ED0C
; Global: Branch target inside Sub: taken when ED0C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_ED0C:
rts ; CPU:$ED0C PRG:6D0C 60
; -----------------------------------------------------------------------------
; Routine: Label_ED0D
; Global: Branch target inside Label: taken when ED0D.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ED0D:
brk ; CPU:$ED0D PRG:6D0D 00
; -----------------------------------------------------------------------------
; Routine: Label_ED0E
; Global: Branch target inside Label: taken when ED0E.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ED0E:
brk ; CPU:$ED0E PRG:6D0E 00
; -----------------------------------------------------------------------------
; Routine: Label_ED0F
; Global: Branch target inside Label: taken when ED0F.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ED0F:
ora (Zp00,x) ; CPU:$ED0F PRG:6D0F 01 00
ora (Zp00,x) ; CPU:$ED11 PRG:6D11 01 00
brk ; CPU:$ED13 PRG:6D13 00
; -----------------------------------------------------------------------------
; Routine: Label_ED14
; Global: Branch target inside Label: taken when ED14.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ED14:
brk ; CPU:$ED14 PRG:6D14 00
; -----------------------------------------------------------------------------
; Routine: Label_ED15
; Global: Branch target inside Label: taken when ED15.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ED15:
brk ; CPU:$ED15 PRG:6D15 00
; -----------------------------------------------------------------------------
; Routine: Label_ED16
; Global: Branch target inside Label: taken when ED16.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ED16:
ora (Zp00,x) ; CPU:$ED16 PRG:6D16 01 00
ora (Zp00,x) ; CPU:$ED18 PRG:6D18 01 00
brk ; CPU:$ED1A PRG:6D1A 00
; -----------------------------------------------------------------------------
; Routine: Label_ED1B
; Global: Branch target inside Label: taken when ED1B.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ED1B:
ora (Zp00,x) ; CPU:$ED1B PRG:6D1B 01 00
ora (Zp00,x) ; CPU:$ED1D PRG:6D1D 01 00
ora (Zp01,x) ; CPU:$ED1F PRG:6D1F 01 01
brk ; CPU:$ED21 PRG:6D21 00
; -----------------------------------------------------------------------------
; Routine: Label_ED22
; Global: Branch target inside Label: taken when ED22.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ED22:
brk ; CPU:$ED22 PRG:6D22 00
; -----------------------------------------------------------------------------
; Routine: Label_ED23
; Global: Branch target inside Label: taken when ED23.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_ED23:
ora (Zp01,x) ; CPU:$ED23 PRG:6D23 01 01
ora (Zp00,x) ; CPU:$ED25 PRG:6D25 01 00
ora (Zp00,x) ; CPU:$ED27 PRG:6D27 01 00
brk ; CPU:$ED29 PRG:6D29 00
; ---- data $ED2A-$ED4C (35 bytes) ----
; referenced by `lda $ED3D,x` at $ECFC (operand $ED3D falls inside this region)
.byte $01, $01, $01, $00, $01, $00, $01, $01, $01, $00, $01, $01, $01, $01, $00, $01 ; CPU:$ED2A PRG:6D2A 01 01 01 00 01 00 01 01 01 00 01 01 01 01 00 01
.byte $00, $01, $01, $06, $00, $07, $00, $03, $04, $07, $00, $01, $05, $03, $07, $02 ; CPU:$ED3A PRG:6D3A 00 01 01 06 00 07 00 03 04 07 00 01 05 03 07 02
.byte $00, $08, $03 ; CPU:$ED4A PRG:6D4A 00 08 03
; -----------------------------------------------------------------------------
; Routine: Sub_ED4D
; Global: Branch target inside Sub: taken when ED4D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_ED4D:
pha ; CPU:$ED4D PRG:6D4D 48
sty Zp20 ; CPU:$ED4E PRG:6D4E 84 20
lda PlayerX,x ; CPU:$ED50 PRG:6D50 B5 33
sta Zp8F ; CPU:$ED52 PRG:6D52 85 8F
lda PlayerY,x ; CPU:$ED54 PRG:6D54 B5 34
sta Zp90 ; CPU:$ED56 PRG:6D56 85 90
tya ; CPU:$ED58 PRG:6D58 98
tax ; CPU:$ED59 PRG:6D59 AA
lda PlayerX,x ; CPU:$ED5A PRG:6D5A B5 33
sta Zp1C ; CPU:$ED5C PRG:6D5C 85 1C
lda PlayerY,x ; CPU:$ED5E PRG:6D5E B5 34
sta Zp1D ; CPU:$ED60 PRG:6D60 85 1D
lda #$00 ; CPU:$ED62 PRG:6D62 A9 00
sta Zp1E ; CPU:$ED64 PRG:6D64 85 1E
lda PlayerTile,x ; CPU:$ED66 PRG:6D66 B5 32
and #$3F ; CPU:$ED68 PRG:6D68 29 3F
cmp #$07 ; CPU:$ED6A PRG:6D6A C9 07
bne Sub_Loop732 ; CPU:$ED6C PRG:6D6C D0 0D
lda Zp1C ; CPU:$ED6E PRG:6D6E A5 1C
clc ; CPU:$ED70 PRG:6D70 18
adc #$10 ; CPU:$ED71 PRG:6D71 69 10
sec ; CPU:$ED73 PRG:6D73 38
sbc Zp8F ; CPU:$ED74 PRG:6D74 E5 8F
cmp #$20 ; CPU:$ED76 PRG:6D76 C9 20
jmp Sub_ED85 ; CPU:$ED78 PRG:6D78 4C 85 ED
; -----------------------------------------------------------------------------
; Routine: Sub_Loop732
; Global: Branch target inside Sub: taken when Loop732.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop732:
lda Zp8F ; CPU:$ED7B PRG:6D7B A5 8F
clc ; CPU:$ED7D PRG:6D7D 18
adc #$08 ; CPU:$ED7E PRG:6D7E 69 08
sec ; CPU:$ED80 PRG:6D80 38
sbc Zp1C ; CPU:$ED81 PRG:6D81 E5 1C
cmp #$10 ; CPU:$ED83 PRG:6D83 C9 10
; -----------------------------------------------------------------------------
; Routine: Sub_ED85
; Global: Branch target inside Sub: taken when ED85.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_ED85:
bcs Sub_Loop733 ; CPU:$ED85 PRG:6D85 B0 04
lda #$FF ; CPU:$ED87 PRG:6D87 A9 FF
sta Zp1E ; CPU:$ED89 PRG:6D89 85 1E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop733
; Global: Branch target inside Sub: taken when Loop733.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop733:
lda #$00 ; CPU:$ED8B PRG:6D8B A9 00
sta Zp1F ; CPU:$ED8D PRG:6D8D 85 1F
lda PlayerTile,x ; CPU:$ED8F PRG:6D8F B5 32
and #$3F ; CPU:$ED91 PRG:6D91 29 3F
cmp #$07 ; CPU:$ED93 PRG:6D93 C9 07
bne Sub_Loop734 ; CPU:$ED95 PRG:6D95 D0 0D
lda Zp1D ; CPU:$ED97 PRG:6D97 A5 1D
clc ; CPU:$ED99 PRG:6D99 18
adc #$10 ; CPU:$ED9A PRG:6D9A 69 10
sec ; CPU:$ED9C PRG:6D9C 38
sbc Zp90 ; CPU:$ED9D PRG:6D9D E5 90
cmp #$28 ; CPU:$ED9F PRG:6D9F C9 28
jmp Sub_EDAE ; CPU:$EDA1 PRG:6DA1 4C AE ED
; -----------------------------------------------------------------------------
; Routine: Sub_Loop734
; Global: Branch target inside Sub: taken when Loop734.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop734:
lda Zp90 ; CPU:$EDA4 PRG:6DA4 A5 90
clc ; CPU:$EDA6 PRG:6DA6 18
adc #$08 ; CPU:$EDA7 PRG:6DA7 69 08
sec ; CPU:$EDA9 PRG:6DA9 38
sbc Zp1D ; CPU:$EDAA PRG:6DAA E5 1D
cmp #$10 ; CPU:$EDAC PRG:6DAC C9 10
; -----------------------------------------------------------------------------
; Routine: Sub_EDAE
; Global: Branch target inside Sub: taken when EDAE.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EDAE:
bcs Sub_Loop735 ; CPU:$EDAE PRG:6DAE B0 04
lda #$FF ; CPU:$EDB0 PRG:6DB0 A9 FF
sta Zp1F ; CPU:$EDB2 PRG:6DB2 85 1F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop735
; Global: Branch target inside Sub: taken when Loop735.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop735:
pla ; CPU:$EDB4 PRG:6DB4 68
asl a ; CPU:$EDB5 PRG:6DB5 0A
tax ; CPU:$EDB6 PRG:6DB6 AA
lda $EE75,x ; CPU:$EDB7 PRG:6DB7 BD 75 EE
sta Zp24 ; CPU:$EDBA PRG:6DBA 85 24
lda $EE76,x ; CPU:$EDBC PRG:6DBC BD 76 EE
sta Zp25 ; CPU:$EDBF PRG:6DBF 85 25
jmp (Zp24) ; CPU:$EDC1 PRG:6DC1 6C 24 00
; -----------------------------------------------------------------------------
; Routine: Label_EDC4
; Global: Branch target inside Label: taken when EDC4.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EDC4:
jmp Sub_EE00 ; CPU:$EDC4 PRG:6DC4 4C 00 EE
; -----------------------------------------------------------------------------
; Routine: Label_EDC7
; Global: Branch target inside Label: taken when EDC7.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EDC7:
jsr Sub_EE05 ; CPU:$EDC7 PRG:6DC7 20 05 EE
jmp Sub_EE00 ; CPU:$EDCA PRG:6DCA 4C 00 EE
; -----------------------------------------------------------------------------
; Routine: Label_EDCD
; Global: Branch target inside Label: taken when EDCD.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EDCD:
jsr Sub_EE05 ; CPU:$EDCD PRG:6DCD 20 05 EE
jsr Sub_EE2E ; CPU:$EDD0 PRG:6DD0 20 2E EE
jmp Sub_EE00 ; CPU:$EDD3 PRG:6DD3 4C 00 EE
; -----------------------------------------------------------------------------
; Routine: Label_EDD6
; Global: Branch target inside Label: taken when EDD6.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EDD6:
jsr Sub_EE2E ; CPU:$EDD6 PRG:6DD6 20 2E EE
jmp Sub_EE00 ; CPU:$EDD9 PRG:6DD9 4C 00 EE
; -----------------------------------------------------------------------------
; Routine: Label_EDDC
; Global: Branch target inside Label: taken when EDDC.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EDDC:
jsr Sub_EE46 ; CPU:$EDDC PRG:6DDC 20 46 EE
jsr Sub_EE2E ; CPU:$EDDF PRG:6DDF 20 2E EE
jmp Sub_EE00 ; CPU:$EDE2 PRG:6DE2 4C 00 EE
; -----------------------------------------------------------------------------
; Routine: Label_EDE5
; Global: Branch target inside Label: taken when EDE5.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EDE5:
jsr Sub_EE46 ; CPU:$EDE5 PRG:6DE5 20 46 EE
jmp Sub_EE00 ; CPU:$EDE8 PRG:6DE8 4C 00 EE
; -----------------------------------------------------------------------------
; Routine: Label_EDEB
; Global: Branch target inside Label: taken when EDEB.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EDEB:
jsr Sub_EE46 ; CPU:$EDEB PRG:6DEB 20 46 EE
jsr Sub_EE5D ; CPU:$EDEE PRG:6DEE 20 5D EE
jmp Sub_EE00 ; CPU:$EDF1 PRG:6DF1 4C 00 EE
; -----------------------------------------------------------------------------
; Routine: Label_EDF4
; Global: Branch target inside Label: taken when EDF4.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EDF4:
jsr Sub_EE5D ; CPU:$EDF4 PRG:6DF4 20 5D EE
jmp Sub_EE00 ; CPU:$EDF7 PRG:6DF7 4C 00 EE
; -----------------------------------------------------------------------------
; Routine: Label_EDFA
; Global: Branch target inside Label: taken when EDFA.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EDFA:
jsr Sub_EE05 ; CPU:$EDFA PRG:6DFA 20 05 EE
jsr Sub_EE5D ; CPU:$EDFD PRG:6DFD 20 5D EE
; -----------------------------------------------------------------------------
; Routine: Sub_EE00
; Global: Branch target inside Sub: taken when EE00.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EE00:
ldy Zp8F ; CPU:$EE00 PRG:6E00 A4 8F
ldx Zp90 ; CPU:$EE02 PRG:6E02 A6 90
rts ; CPU:$EE04 PRG:6E04 60
; -----------------------------------------------------------------------------
; Routine: Sub_EE05
; Global: Branch target inside Sub: taken when EE05.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EE05:
lda Zp8F ; CPU:$EE05 PRG:6E05 A5 8F
cmp #$40 ; CPU:$EE07 PRG:6E07 C9 40
beq Sub_Loop737 ; CPU:$EE09 PRG:6E09 F0 10
lda Zp1F ; CPU:$EE0B PRG:6E0B A5 1F
beq Sub_Loop736 ; CPU:$EE0D PRG:6E0D F0 0A
lda Zp8F ; CPU:$EE0F PRG:6E0F A5 8F
cmp Zp1C ; CPU:$EE11 PRG:6E11 C5 1C
bcc Sub_Loop736 ; CPU:$EE13 PRG:6E13 90 04
lda Zp1E ; CPU:$EE15 PRG:6E15 A5 1E
bne Sub_Loop739 ; CPU:$EE17 PRG:6E17 D0 14
; -----------------------------------------------------------------------------
; Routine: Sub_Loop736
; Global: Branch target inside Sub: taken when Loop736.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop736:
dec Zp8F ; CPU:$EE19 PRG:6E19 C6 8F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop737
; Global: Branch target inside Sub: taken when Loop737.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop737:
jsr Sub_EE87 ; CPU:$EE1B PRG:6E1B 20 87 EE
cpx Zp90 ; CPU:$EE1E PRG:6E1E E4 90
bcc Sub_Loop738 ; CPU:$EE20 PRG:6E20 90 05
stx Zp90 ; CPU:$EE22 PRG:6E22 86 90
jmp Sub_Loop739 ; CPU:$EE24 PRG:6E24 4C 2D EE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop738
; Global: Branch target inside Sub: taken when Loop738.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop738:
cpy Zp90 ; CPU:$EE27 PRG:6E27 C4 90
bcs Sub_Loop739 ; CPU:$EE29 PRG:6E29 B0 02
sty Zp90 ; CPU:$EE2B PRG:6E2B 84 90
; -----------------------------------------------------------------------------
; Routine: Sub_Loop739
; Global: Branch target inside Sub: taken when Loop739.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop739:
rts ; CPU:$EE2D PRG:6E2D 60
; -----------------------------------------------------------------------------
; Routine: Sub_EE2E
; Global: Branch target inside Sub: taken when EE2E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EE2E:
jsr Sub_EE87 ; CPU:$EE2E PRG:6E2E 20 87 EE
cpy Zp90 ; CPU:$EE31 PRG:6E31 C4 90
beq Sub_Loop741 ; CPU:$EE33 PRG:6E33 F0 10
lda Zp1E ; CPU:$EE35 PRG:6E35 A5 1E
beq Sub_Loop740 ; CPU:$EE37 PRG:6E37 F0 0A
lda Zp90 ; CPU:$EE39 PRG:6E39 A5 90
cmp Zp1D ; CPU:$EE3B PRG:6E3B C5 1D
bcs Sub_Loop740 ; CPU:$EE3D PRG:6E3D B0 04
lda Zp1F ; CPU:$EE3F PRG:6E3F A5 1F
bne Sub_Loop741 ; CPU:$EE41 PRG:6E41 D0 02
; -----------------------------------------------------------------------------
; Routine: Sub_Loop740
; Global: Branch target inside Sub: taken when Loop740.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop740:
inc Zp90 ; CPU:$EE43 PRG:6E43 E6 90
; -----------------------------------------------------------------------------
; Routine: Sub_Loop741
; Global: Branch target inside Sub: taken when Loop741.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop741:
rts ; CPU:$EE45 PRG:6E45 60
; -----------------------------------------------------------------------------
; Routine: Sub_EE46
; Global: Branch target inside Sub: taken when EE46.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EE46:
lda Zp8F ; CPU:$EE46 PRG:6E46 A5 8F
cmp #$92 ; CPU:$EE48 PRG:6E48 C9 92
beq Sub_Loop743 ; CPU:$EE4A PRG:6E4A F0 10
lda Zp1F ; CPU:$EE4C PRG:6E4C A5 1F
beq Sub_Loop742 ; CPU:$EE4E PRG:6E4E F0 0A
lda Zp8F ; CPU:$EE50 PRG:6E50 A5 8F
cmp Zp1C ; CPU:$EE52 PRG:6E52 C5 1C
bcs Sub_Loop742 ; CPU:$EE54 PRG:6E54 B0 04
lda Zp1E ; CPU:$EE56 PRG:6E56 A5 1E
bne Sub_Loop743 ; CPU:$EE58 PRG:6E58 D0 02
; -----------------------------------------------------------------------------
; Routine: Sub_Loop742
; Global: Branch target inside Sub: taken when Loop742.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop742:
inc Zp8F ; CPU:$EE5A PRG:6E5A E6 8F
; -----------------------------------------------------------------------------
; Routine: Sub_Loop743
; Global: Branch target inside Sub: taken when Loop743.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop743:
rts ; CPU:$EE5C PRG:6E5C 60
; -----------------------------------------------------------------------------
; Routine: Sub_EE5D
; Global: Branch target inside Sub: taken when EE5D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EE5D:
jsr Sub_EE87 ; CPU:$EE5D PRG:6E5D 20 87 EE
cpx Zp90 ; CPU:$EE60 PRG:6E60 E4 90
beq Sub_Loop745 ; CPU:$EE62 PRG:6E62 F0 10
lda Zp1E ; CPU:$EE64 PRG:6E64 A5 1E
beq Sub_Loop744 ; CPU:$EE66 PRG:6E66 F0 0A
lda Zp90 ; CPU:$EE68 PRG:6E68 A5 90
cmp Zp1D ; CPU:$EE6A PRG:6E6A C5 1D
bcc Sub_Loop744 ; CPU:$EE6C PRG:6E6C 90 04
lda Zp1F ; CPU:$EE6E PRG:6E6E A5 1F
bne Sub_Loop745 ; CPU:$EE70 PRG:6E70 D0 02
; -----------------------------------------------------------------------------
; Routine: Sub_Loop744
; Global: Branch target inside Sub: taken when Loop744.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop744:
dec Zp90 ; CPU:$EE72 PRG:6E72 C6 90
; -----------------------------------------------------------------------------
; Routine: Sub_Loop745
; Global: Branch target inside Sub: taken when Loop745.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop745:
rts ; CPU:$EE74 PRG:6E74 60
; ---- data $EE75-$EE86 (18 bytes) ----
; referenced by `lda $EE75,x` at $EDB7 (operand $EE75 falls inside this region)
; referenced by `lda $EE76,x` at $EDBC (operand $EE76 falls inside this region)
.byte $C4, $ED, $C7, $ED, $CD, $ED, $D6, $ED, $DC, $ED, $E5, $ED, $EB, $ED, $F4, $ED ; CPU:$EE75 PRG:6E75 C4 ED C7 ED CD ED D6 ED DC ED E5 ED EB ED F4 ED
.byte $FA, $ED ; CPU:$EE85 PRG:6E85 FA ED
; -----------------------------------------------------------------------------
; Routine: Sub_EE87
; Global: Branch target inside Sub: taken when EE87.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EE87:
ldx #$00 ; CPU:$EE87 PRG:6E87 A2 00
lda Zp8F ; CPU:$EE89 PRG:6E89 A5 8F
cmp #$98 ; CPU:$EE8B PRG:6E8B C9 98
bcs Sub_Loop746 ; CPU:$EE8D PRG:6E8D B0 20
inx ; CPU:$EE8F PRG:6E8F E8
inx ; CPU:$EE90 PRG:6E90 E8
cmp #$88 ; CPU:$EE91 PRG:6E91 C9 88
bcs Sub_Loop746 ; CPU:$EE93 PRG:6E93 B0 1A
inx ; CPU:$EE95 PRG:6E95 E8
inx ; CPU:$EE96 PRG:6E96 E8
cmp #$78 ; CPU:$EE97 PRG:6E97 C9 78
bcs Sub_Loop746 ; CPU:$EE99 PRG:6E99 B0 14
inx ; CPU:$EE9B PRG:6E9B E8
inx ; CPU:$EE9C PRG:6E9C E8
cmp #$70 ; CPU:$EE9D PRG:6E9D C9 70
bcs Sub_Loop746 ; CPU:$EE9F PRG:6E9F B0 0E
inx ; CPU:$EEA1 PRG:6EA1 E8
inx ; CPU:$EEA2 PRG:6EA2 E8
cmp #$60 ; CPU:$EEA3 PRG:6EA3 C9 60
bcs Sub_Loop746 ; CPU:$EEA5 PRG:6EA5 B0 08
inx ; CPU:$EEA7 PRG:6EA7 E8
inx ; CPU:$EEA8 PRG:6EA8 E8
cmp #$50 ; CPU:$EEA9 PRG:6EA9 C9 50
bcs Sub_Loop746 ; CPU:$EEAB PRG:6EAB B0 02
inx ; CPU:$EEAD PRG:6EAD E8
inx ; CPU:$EEAE PRG:6EAE E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop746
; Global: Branch target inside Sub: taken when Loop746.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop746:
lda $EEB7,x ; CPU:$EEAF PRG:6EAF BD B7 EE
ldy $EEB8,x ; CPU:$EEB2 PRG:6EB2 BC B8 EE
tax ; CPU:$EEB5 PRG:6EB5 AA
rts ; CPU:$EEB6 PRG:6EB6 60
; ---- data $EEB7-$EEC4 (14 bytes) ----
; referenced by `lda $EEB7,x` at $EEAF (operand $EEB7 falls inside this region)
; referenced by `ldy $EEB8,x` at $EEB2 (operand $EEB8 falls inside this region)
.byte $27, $C9, $29, $C7, $2C, $C4, $2E, $C2, $2F, $C1, $30, $C0, $30, $C0 ; CPU:$EEB7 PRG:6EB7 27 C9 29 C7 2C C4 2E C2 2F C1 30 C0 30 C0
; -----------------------------------------------------------------------------
; Routine: Sub_EEC5
; Global: Branch target inside Sub: taken when EEC5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EEC5:
ldy #$08 ; CPU:$EEC5 PRG:6EC5 A0 08
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero23
; Global: Branch target inside Sub: taken when OnNonzero23.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero23:
lda #$F0 ; CPU:$EEC7 PRG:6EC7 A9 F0
sta $0700,x ; CPU:$EEC9 PRG:6EC9 9D 00 07
inx ; CPU:$EECC PRG:6ECC E8
inx ; CPU:$EECD PRG:6ECD E8
inx ; CPU:$EECE PRG:6ECE E8
lda #$00 ; CPU:$EECF PRG:6ECF A9 00
sta $0700,x ; CPU:$EED1 PRG:6ED1 9D 00 07
inx ; CPU:$EED4 PRG:6ED4 E8
dey ; CPU:$EED5 PRG:6ED5 88
bne Sub_OnNonzero23 ; CPU:$EED6 PRG:6ED6 D0 EF
rts ; CPU:$EED8 PRG:6ED8 60
; -----------------------------------------------------------------------------
; Routine: Sub_EED9
; Global: Branch target inside Sub: taken when EED9.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EED9:
sty PlayerState ; CPU:$EED9 PRG:6ED9 84 1A
stx Zp1B ; CPU:$EEDB PRG:6EDB 86 1B
ldx #$00 ; CPU:$EEDD PRG:6EDD A2 00
lda Zp37 ; CPU:$EEDF PRG:6EDF A5 37
and #$20 ; CPU:$EEE1 PRG:6EE1 29 20
beq Sub_Loop747 ; CPU:$EEE3 PRG:6EE3 F0 02
ldx #$01 ; CPU:$EEE5 PRG:6EE5 A2 01
; -----------------------------------------------------------------------------
; Routine: Sub_Loop747
; Global: Branch target inside Sub: taken when Loop747.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop747:
stx Zp1C ; CPU:$EEE7 PRG:6EE7 86 1C
ldx #$00 ; CPU:$EEE9 PRG:6EE9 A2 00
ldy #$00 ; CPU:$EEEB PRG:6EEB A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_EEED
; Global: Branch target inside Sub: taken when EEED.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EEED:
lda PlayerState ; CPU:$EEED PRG:6EED A5 1A
sta $0714,x ; CPU:$EEEF PRG:6EEF 9D 14 07
inx ; CPU:$EEF2 PRG:6EF2 E8
lda $EF2C,y ; CPU:$EEF3 PRG:6EF3 B9 2C EF
sta $0714,x ; CPU:$EEF6 PRG:6EF6 9D 14 07
inx ; CPU:$EEF9 PRG:6EF9 E8
lda Zp1C ; CPU:$EEFA PRG:6EFA A5 1C
sta $0714,x ; CPU:$EEFC PRG:6EFC 9D 14 07
inx ; CPU:$EEFF PRG:6EFF E8
lda Zp1B ; CPU:$EF00 PRG:6F00 A5 1B
sta $0714,x ; CPU:$EF02 PRG:6F02 9D 14 07
inx ; CPU:$EF05 PRG:6F05 E8
iny ; CPU:$EF06 PRG:6F06 C8
cpy #$03 ; CPU:$EF07 PRG:6F07 C0 03
beq Sub_Loop749 ; CPU:$EF09 PRG:6F09 F0 20
tya ; CPU:$EF0B PRG:6F0B 98
and #$01 ; CPU:$EF0C PRG:6F0C 29 01
beq Sub_Loop748 ; CPU:$EF0E PRG:6F0E F0 0A
lda Zp1B ; CPU:$EF10 PRG:6F10 A5 1B
clc ; CPU:$EF12 PRG:6F12 18
adc #$08 ; CPU:$EF13 PRG:6F13 69 08
sta Zp1B ; CPU:$EF15 PRG:6F15 85 1B
jmp Sub_EEED ; CPU:$EF17 PRG:6F17 4C ED EE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop748
; Global: Branch target inside Sub: taken when Loop748.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop748:
lda PlayerState ; CPU:$EF1A PRG:6F1A A5 1A
clc ; CPU:$EF1C PRG:6F1C 18
adc #$08 ; CPU:$EF1D PRG:6F1D 69 08
sta PlayerState ; CPU:$EF1F PRG:6F1F 85 1A
lda Zp1B ; CPU:$EF21 PRG:6F21 A5 1B
sec ; CPU:$EF23 PRG:6F23 38
sbc #$04 ; CPU:$EF24 PRG:6F24 E9 04
sta Zp1B ; CPU:$EF26 PRG:6F26 85 1B
jmp Sub_EEED ; CPU:$EF28 PRG:6F28 4C ED EE
; -----------------------------------------------------------------------------
; Routine: Sub_Loop749
; Global: Branch target inside Sub: taken when Loop749.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop749:
rts ; CPU:$EF2B PRG:6F2B 60
; ---- data $EF2C-$EF2E (3 bytes) ----
; referenced by `lda $EF2C,y` at $EEF3 (operand $EF2C falls inside this region)
.byte $FC, $FD, $FE ; CPU:$EF2C PRG:6F2C FC FD FE
; -----------------------------------------------------------------------------
; Routine: Sub_EF2F
; Global: Branch target inside Sub: taken when EF2F.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EF2F:
lda #$F0 ; CPU:$EF2F PRG:6F2F A9 F0
sta $0714 ; CPU:$EF31 PRG:6F31 8D 14 07
sta $0718 ; CPU:$EF34 PRG:6F34 8D 18 07
sta $071C ; CPU:$EF37 PRG:6F37 8D 1C 07
rts ; CPU:$EF3A PRG:6F3A 60
; -----------------------------------------------------------------------------
; Routine: Sub_EF3B
; Global: Branch target inside Sub: taken when EF3B.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EF3B:
lda #$89 ; CPU:$EF3B PRG:6F3B A9 89
sta Zp22 ; CPU:$EF3D PRG:6F3D 85 22
lda #$EF ; CPU:$EF3F PRG:6F3F A9 EF
sta Zp23 ; CPU:$EF41 PRG:6F41 85 23
sty Zp8F ; CPU:$EF43 PRG:6F43 84 8F
stx Zp90 ; CPU:$EF45 PRG:6F45 86 90
ldx #$00 ; CPU:$EF47 PRG:6F47 A2 00
ldy #$00 ; CPU:$EF49 PRG:6F49 A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_EF4B
; Global: Branch target inside Sub: taken when EF4B.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EF4B:
lda Zp8F ; CPU:$EF4B PRG:6F4B A5 8F
sta $0760,x ; CPU:$EF4D PRG:6F4D 9D 60 07
inx ; CPU:$EF50 PRG:6F50 E8
lda (Zp22),y ; CPU:$EF51 PRG:6F51 B1 22
sta $0760,x ; CPU:$EF53 PRG:6F53 9D 60 07
inx ; CPU:$EF56 PRG:6F56 E8
lda #$03 ; CPU:$EF57 PRG:6F57 A9 03
sta $0760,x ; CPU:$EF59 PRG:6F59 9D 60 07
inx ; CPU:$EF5C PRG:6F5C E8
lda Zp90 ; CPU:$EF5D PRG:6F5D A5 90
sta $0760,x ; CPU:$EF5F PRG:6F5F 9D 60 07
inx ; CPU:$EF62 PRG:6F62 E8
iny ; CPU:$EF63 PRG:6F63 C8
tya ; CPU:$EF64 PRG:6F64 98
and #$01 ; CPU:$EF65 PRG:6F65 29 01
bne Sub_Loop750 ; CPU:$EF67 PRG:6F67 D0 15
cpy #$04 ; CPU:$EF69 PRG:6F69 C0 04
beq Sub_Loop751 ; CPU:$EF6B PRG:6F6B F0 1B
lda Zp8F ; CPU:$EF6D PRG:6F6D A5 8F
clc ; CPU:$EF6F PRG:6F6F 18
adc #$08 ; CPU:$EF70 PRG:6F70 69 08
sta Zp8F ; CPU:$EF72 PRG:6F72 85 8F
lda Zp90 ; CPU:$EF74 PRG:6F74 A5 90
sec ; CPU:$EF76 PRG:6F76 38
sbc #$08 ; CPU:$EF77 PRG:6F77 E9 08
sta Zp90 ; CPU:$EF79 PRG:6F79 85 90
jmp Sub_EF4B ; CPU:$EF7B PRG:6F7B 4C 4B EF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop750
; Global: Branch target inside Sub: taken when Loop750.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop750:
lda Zp90 ; CPU:$EF7E PRG:6F7E A5 90
clc ; CPU:$EF80 PRG:6F80 18
adc #$08 ; CPU:$EF81 PRG:6F81 69 08
sta Zp90 ; CPU:$EF83 PRG:6F83 85 90
jmp Sub_EF4B ; CPU:$EF85 PRG:6F85 4C 4B EF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop751
; Global: Branch target inside Sub: taken when Loop751.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop751:
rts ; CPU:$EF88 PRG:6F88 60
; ---- data $EF89-$EF8C (4 bytes) ----
.byte $F3, $F4, $F5, $F6 ; CPU:$EF89 PRG:6F89 F3 F4 F5 F6
; -----------------------------------------------------------------------------
; Routine: Sub_EF8D
; Global: Branch target inside Sub: taken when EF8D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EF8D:
tya ; CPU:$EF8D PRG:6F8D 98
clc ; CPU:$EF8E PRG:6F8E 18
adc #$0C ; CPU:$EF8F PRG:6F8F 69 0C
sta Zp8F ; CPU:$EF91 PRG:6F91 85 8F
txa ; CPU:$EF93 PRG:6F93 8A
clc ; CPU:$EF94 PRG:6F94 18
adc #$0C ; CPU:$EF95 PRG:6F95 69 0C
sta Zp90 ; CPU:$EF97 PRG:6F97 85 90
ldx #$00 ; CPU:$EF99 PRG:6F99 A2 00
ldy #$00 ; CPU:$EF9B PRG:6F9B A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_EF9D
; Global: Branch target inside Sub: taken when EF9D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EF9D:
lda Zp8F ; CPU:$EF9D PRG:6F9D A5 8F
sta $0720,x ; CPU:$EF9F PRG:6F9F 9D 20 07
inx ; CPU:$EFA2 PRG:6FA2 E8
lda $EFCD,y ; CPU:$EFA3 PRG:6FA3 B9 CD EF
sta $0720,x ; CPU:$EFA6 PRG:6FA6 9D 20 07
inx ; CPU:$EFA9 PRG:6FA9 E8
lda #$02 ; CPU:$EFAA PRG:6FAA A9 02
sta $0720,x ; CPU:$EFAC PRG:6FAC 9D 20 07
inx ; CPU:$EFAF PRG:6FAF E8
lda Zp90 ; CPU:$EFB0 PRG:6FB0 A5 90
sta $0720,x ; CPU:$EFB2 PRG:6FB2 9D 20 07
inx ; CPU:$EFB5 PRG:6FB5 E8
iny ; CPU:$EFB6 PRG:6FB6 C8
cpy #$03 ; CPU:$EFB7 PRG:6FB7 C0 03
beq Sub_Loop752 ; CPU:$EFB9 PRG:6FB9 F0 11
lda Zp8F ; CPU:$EFBB PRG:6FBB A5 8F
clc ; CPU:$EFBD PRG:6FBD 18
adc #$08 ; CPU:$EFBE PRG:6FBE 69 08
; -----------------------------------------------------------------------------
; Routine: Sub_OnZero3
; Global: Branch target inside Sub: taken when OnZero3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnZero3:
sta Zp8F ; CPU:$EFC0 PRG:6FC0 85 8F
lda Zp90 ; CPU:$EFC2 PRG:6FC2 A5 90
sec ; CPU:$EFC4 PRG:6FC4 38
sbc #$04 ; CPU:$EFC5 PRG:6FC5 E9 04
sta Zp90 ; CPU:$EFC7 PRG:6FC7 85 90
jmp Sub_EF9D ; CPU:$EFC9 PRG:6FC9 4C 9D EF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop752
; Global: Branch target inside Sub: taken when Loop752.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop752:
rts ; CPU:$EFCC PRG:6FCC 60
; -----------------------------------------------------------------------------
; Routine: Label_EFCD
; Global: Branch target inside Label: taken when EFCD.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EFCD:
beq Sub_OnZero3 ; CPU:$EFCD PRG:6FCD F0 F1
; -----------------------------------------------------------------------------
; Routine: Label_EFCF
; Global: Branch target inside Label: taken when EFCF.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_EFCF:
sbc (SpriteY),y ; CPU:$EFCF PRG:6FCF F1 98
clc ; CPU:$EFD1 PRG:6FD1 18
adc #$0C ; CPU:$EFD2 PRG:6FD2 69 0C
sta Zp8F ; CPU:$EFD4 PRG:6FD4 85 8F
txa ; CPU:$EFD6 PRG:6FD6 8A
sec ; CPU:$EFD7 PRG:6FD7 38
sbc #$04 ; CPU:$EFD8 PRG:6FD8 E9 04
sta Zp90 ; CPU:$EFDA PRG:6FDA 85 90
ldx #$00 ; CPU:$EFDC PRG:6FDC A2 00
ldy #$00 ; CPU:$EFDE PRG:6FDE A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_EFE0
; Global: Branch target inside Sub: taken when EFE0.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_EFE0:
lda Zp8F ; CPU:$EFE0 PRG:6FE0 A5 8F
sta $0730,x ; CPU:$EFE2 PRG:6FE2 9D 30 07
inx ; CPU:$EFE5 PRG:6FE5 E8
lda $EFCD,y ; CPU:$EFE6 PRG:6FE6 B9 CD EF
sta $0730,x ; CPU:$EFE9 PRG:6FE9 9D 30 07
inx ; CPU:$EFEC PRG:6FEC E8
lda #$42 ; CPU:$EFED PRG:6FED A9 42
sta $0730,x ; CPU:$EFEF PRG:6FEF 9D 30 07
inx ; CPU:$EFF2 PRG:6FF2 E8
lda Zp90 ; CPU:$EFF3 PRG:6FF3 A5 90
sta $0730,x ; CPU:$EFF5 PRG:6FF5 9D 30 07
inx ; CPU:$EFF8 PRG:6FF8 E8
iny ; CPU:$EFF9 PRG:6FF9 C8
cpy #$03 ; CPU:$EFFA PRG:6FFA C0 03
beq Sub_Loop753 ; CPU:$EFFC PRG:6FFC F0 11
lda Zp8F ; CPU:$EFFE PRG:6FFE A5 8F
clc ; CPU:$F000 PRG:7000 18
adc #$08 ; CPU:$F001 PRG:7001 69 08
sta Zp8F ; CPU:$F003 PRG:7003 85 8F
lda Zp90 ; CPU:$F005 PRG:7005 A5 90
clc ; CPU:$F007 PRG:7007 18
adc #$04 ; CPU:$F008 PRG:7008 69 04
sta Zp90 ; CPU:$F00A PRG:700A 85 90
jmp Sub_EFE0 ; CPU:$F00C PRG:700C 4C E0 EF
; -----------------------------------------------------------------------------
; Routine: Sub_Loop753
; Global: Branch target inside Sub: taken when Loop753.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop753:
rts ; CPU:$F00F PRG:700F 60
; -----------------------------------------------------------------------------
; Routine: Sub_F010
; Global: Branch target inside Sub: taken when F010.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F010:
lda #$F0 ; CPU:$F010 PRG:7010 A9 F0
sta $0720 ; CPU:$F012 PRG:7012 8D 20 07
sta $0724 ; CPU:$F015 PRG:7015 8D 24 07
sta $0728 ; CPU:$F018 PRG:7018 8D 28 07
rts ; CPU:$F01B PRG:701B 60
; -----------------------------------------------------------------------------
; Routine: Sub_F01C
; Global: Branch target inside Sub: taken when F01C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F01C:
lda #$F0 ; CPU:$F01C PRG:701C A9 F0
sta $0730 ; CPU:$F01E PRG:701E 8D 30 07
sta $0734 ; CPU:$F021 PRG:7021 8D 34 07
sta $0738 ; CPU:$F024 PRG:7024 8D 38 07
rts ; CPU:$F027 PRG:7027 60
; -----------------------------------------------------------------------------
; Routine: Sub_F028
; Global: Branch target inside Sub: taken when F028.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F028:
lda Zp84 ; CPU:$F028 PRG:7028 A5 84
asl a ; CPU:$F02A PRG:702A 0A
sta ZpB1 ; CPU:$F02B PRG:702B 85 B1
asl a ; CPU:$F02D PRG:702D 0A
asl a ; CPU:$F02E PRG:702E 0A
clc ; CPU:$F02F PRG:702F 18
adc ZpB1 ; CPU:$F030 PRG:7030 65 B1
clc ; CPU:$F032 PRG:7032 18
adc Zp83 ; CPU:$F033 PRG:7033 65 83
rts ; CPU:$F035 PRG:7035 60
; -----------------------------------------------------------------------------
; Routine: Sub_F036
; Global: Branch target inside Sub: taken when F036.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F036:
ldx Zp7B ; CPU:$F036 PRG:7036 A6 7B
bmi Sub_Loop754 ; CPU:$F038 PRG:7038 30 02
sta ZpD0 ; CPU:$F03A PRG:703A 85 D0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop754
; Global: Branch target inside Sub: taken when Loop754.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop754:
rts ; CPU:$F03C PRG:703C 60
; -----------------------------------------------------------------------------
; Routine: Sub_F03D
; Global: Branch target inside Sub: taken when F03D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F03D:
ldx Zp7B ; CPU:$F03D PRG:703D A6 7B
bmi Sub_Loop755 ; CPU:$F03F PRG:703F 30 17
pha ; CPU:$F041 PRG:7041 48
jsr Sub_FD1C ; CPU:$F042 PRG:7042 20 1C FD
lda PpuCtrlShadow ; CPU:$F045 PRG:7045 A5 0D
and #$7F ; CPU:$F047 PRG:7047 29 7F
sta PPUCTRL ; CPU:$F049 PRG:7049 8D 00 20
pla ; CPU:$F04C PRG:704C 68
jsr Sub_8000 ; CPU:$F04D PRG:704D 20 00 80
jsr Sub_FD1C ; CPU:$F050 PRG:7050 20 1C FD
lda PpuCtrlShadow ; CPU:$F053 PRG:7053 A5 0D
sta PPUCTRL ; CPU:$F055 PRG:7055 8D 00 20
; -----------------------------------------------------------------------------
; Routine: Sub_Loop755
; Global: Branch target inside Sub: taken when Loop755.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop755:
rts ; CPU:$F058 PRG:7058 60
; -----------------------------------------------------------------------------
; Routine: Sub_F059
; Global: Branch target inside Sub: taken when F059.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F059:
ldx #$20 ; CPU:$F059 PRG:7059 A2 20
ldy #$C0 ; CPU:$F05B PRG:705B A0 C0
jsr Sub_FD34 ; CPU:$F05D PRG:705D 20 34 FD
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero24
; Global: Branch target inside Sub: taken when OnNonzero24.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero24:
lda #$00 ; CPU:$F060 PRG:7060 A9 00
sta PPUDATA ; CPU:$F062 PRG:7062 8D 07 20
iny ; CPU:$F065 PRG:7065 C8
bne Sub_Loop756 ; CPU:$F066 PRG:7066 D0 01
inx ; CPU:$F068 PRG:7068 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop756
; Global: Branch target inside Sub: taken when Loop756.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop756:
txa ; CPU:$F069 PRG:7069 8A
and #$03 ; CPU:$F06A PRG:706A 29 03
bne Sub_OnNonzero24 ; CPU:$F06C PRG:706C D0 F2
tya ; CPU:$F06E PRG:706E 98
bne Sub_OnNonzero24 ; CPU:$F06F PRG:706F D0 EF
jsr Sub_FD37 ; CPU:$F071 PRG:7071 20 37 FD
ldx #$23 ; CPU:$F074 PRG:7074 A2 23
ldy #$C3 ; CPU:$F076 PRG:7076 A0 C3
jsr Sub_FD34 ; CPU:$F078 PRG:7078 20 34 FD
lda #$50 ; CPU:$F07B PRG:707B A9 50
sta PPUDATA ; CPU:$F07D PRG:707D 8D 07 20
lda #$10 ; CPU:$F080 PRG:7080 A9 10
sta PPUDATA ; CPU:$F082 PRG:7082 8D 07 20
ldx #$23 ; CPU:$F085 PRG:7085 A2 23
ldy #$CB ; CPU:$F087 PRG:7087 A0 CB
jsr Sub_FD34 ; CPU:$F089 PRG:7089 20 34 FD
lda #$0F ; CPU:$F08C PRG:708C A9 0F
sta PPUDATA ; CPU:$F08E PRG:708E 8D 07 20
lda #$03 ; CPU:$F091 PRG:7091 A9 03
sta PPUDATA ; CPU:$F093 PRG:7093 8D 07 20
ldx #$23 ; CPU:$F096 PRG:7096 A2 23
ldy #$D2 ; CPU:$F098 PRG:7098 A0 D2
jsr Sub_FD34 ; CPU:$F09A PRG:709A 20 34 FD
lda #$FF ; CPU:$F09D PRG:709D A9 FF
sta PPUDATA ; CPU:$F09F PRG:709F 8D 07 20
sta PPUDATA ; CPU:$F0A2 PRG:70A2 8D 07 20
sta PPUDATA ; CPU:$F0A5 PRG:70A5 8D 07 20
sta PPUDATA ; CPU:$F0A8 PRG:70A8 8D 07 20
ldx #$23 ; CPU:$F0AB PRG:70AB A2 23
ldy #$E2 ; CPU:$F0AD PRG:70AD A0 E2
jsr Sub_FD34 ; CPU:$F0AF PRG:70AF 20 34 FD
lda #$FF ; CPU:$F0B2 PRG:70B2 A9 FF
sta PPUDATA ; CPU:$F0B4 PRG:70B4 8D 07 20
sta PPUDATA ; CPU:$F0B7 PRG:70B7 8D 07 20
rts ; CPU:$F0BA PRG:70BA 60
; -----------------------------------------------------------------------------
; Routine: Sub_F0BB
; Global: Branch target inside Sub: taken when F0BB.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F0BB:
ldx #$AE ; CPU:$F0BB PRG:70BB A2 AE
ldy #$83 ; CPU:$F0BD PRG:70BD A0 83
lda Zp83 ; CPU:$F0BF PRG:70BF A5 83
cmp #$01 ; CPU:$F0C1 PRG:70C1 C9 01
beq Sub_Loop757 ; CPU:$F0C3 PRG:70C3 F0 0C
ldx #$AE ; CPU:$F0C5 PRG:70C5 A2 AE
ldy #$91 ; CPU:$F0C7 PRG:70C7 A0 91
cmp #$02 ; CPU:$F0C9 PRG:70C9 C9 02
beq Sub_Loop757 ; CPU:$F0CB PRG:70CB F0 04
ldx #$AE ; CPU:$F0CD PRG:70CD A2 AE
ldy #$A0 ; CPU:$F0CF PRG:70CF A0 A0
; -----------------------------------------------------------------------------
; Routine: Sub_Loop757
; Global: Branch target inside Sub: taken when Loop757.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop757:
jsr Sub_FD3A ; CPU:$F0D1 PRG:70D1 20 3A FD
rts ; CPU:$F0D4 PRG:70D4 60
; -----------------------------------------------------------------------------
; Routine: Sub_F0D5
; Global: Branch target inside Sub: taken when F0D5.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F0D5:
ldx #$22 ; CPU:$F0D5 PRG:70D5 A2 22
ldy #$08 ; CPU:$F0D7 PRG:70D7 A0 08
jsr Sub_FD34 ; CPU:$F0D9 PRG:70D9 20 34 FD
ldx #$00 ; CPU:$F0DC PRG:70DC A2 00
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero25
; Global: Branch target inside Sub: taken when OnNonzero25.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero25:
lda $F119,x ; CPU:$F0DE PRG:70DE BD 19 F1
sta PPUDATA ; CPU:$F0E1 PRG:70E1 8D 07 20
inx ; CPU:$F0E4 PRG:70E4 E8
cpx #$08 ; CPU:$F0E5 PRG:70E5 E0 08
bne Sub_OnNonzero25 ; CPU:$F0E7 PRG:70E7 D0 F5
lda PlayerY ; CPU:$F0E9 PRG:70E9 A5 34
clc ; CPU:$F0EB PRG:70EB 18
adc #$10 ; CPU:$F0EC PRG:70EC 69 10
sta PPUDATA ; CPU:$F0EE PRG:70EE 8D 07 20
lda #$2D ; CPU:$F0F1 PRG:70F1 A9 2D
sta PPUDATA ; CPU:$F0F3 PRG:70F3 8D 07 20
lda #$0E ; CPU:$F0F6 PRG:70F6 A9 0E
sta PPUDATA ; CPU:$F0F8 PRG:70F8 8D 07 20
lda PlayerX ; CPU:$F0FB PRG:70FB A5 33
clc ; CPU:$F0FD PRG:70FD 18
adc #$10 ; CPU:$F0FE PRG:70FE 69 10
sta PPUDATA ; CPU:$F100 PRG:7100 8D 07 20
lda PlayerTile ; CPU:$F103 PRG:7103 A5 32
clc ; CPU:$F105 PRG:7105 18
adc #$10 ; CPU:$F106 PRG:7106 69 10
sta PPUDATA ; CPU:$F108 PRG:7108 8D 07 20
lda #$33 ; CPU:$F10B PRG:710B A9 33
sta PPUDATA ; CPU:$F10D PRG:710D 8D 07 20
lda #$0E ; CPU:$F110 PRG:7110 A9 0E
sta PPUDATA ; CPU:$F112 PRG:7112 8D 07 20
jsr Sub_FD37 ; CPU:$F115 PRG:7115 20 37 FD
rts ; CPU:$F118 PRG:7118 60
; ---- data $F119-$F120 (8 bytes) ----
; referenced by `lda $F119,x` at $F0DE (operand $F119 falls inside this region)
.byte $34, $29, $2D, $25, $00, $00, $1D, $00 ; CPU:$F119 PRG:7119 34 29 2D 25 00 00 1D 00
; -----------------------------------------------------------------------------
; Routine: Sub_F121
; Global: Branch target inside Sub: taken when F121.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F121:
lda Zp87 ; CPU:$F121 PRG:7121 A5 87
beq Sub_Loop759 ; CPU:$F123 PRG:7123 F0 18
pha ; CPU:$F125 PRG:7125 48
ldx #$20 ; CPU:$F126 PRG:7126 A2 20
ldy #$7B ; CPU:$F128 PRG:7128 A0 7B
jsr Sub_FD34 ; CPU:$F12A PRG:712A 20 34 FD
pla ; CPU:$F12D PRG:712D 68
tay ; CPU:$F12E PRG:712E A8
lda #$DF ; CPU:$F12F PRG:712F A9 DF
sta PPUDATA ; CPU:$F131 PRG:7131 8D 07 20
dey ; CPU:$F134 PRG:7134 88
beq Sub_Loop758 ; CPU:$F135 PRG:7135 F0 03
sta PPUDATA ; CPU:$F137 PRG:7137 8D 07 20
; -----------------------------------------------------------------------------
; Routine: Sub_Loop758
; Global: Branch target inside Sub: taken when Loop758.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop758:
jsr Sub_FD37 ; CPU:$F13A PRG:713A 20 37 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop759
; Global: Branch target inside Sub: taken when Loop759.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop759:
lda Zp88 ; CPU:$F13D PRG:713D A5 88
beq Sub_Loop761 ; CPU:$F13F PRG:713F F0 18
pha ; CPU:$F141 PRG:7141 48
ldx #$20 ; CPU:$F142 PRG:7142 A2 20
ldy #$9B ; CPU:$F144 PRG:7144 A0 9B
jsr Sub_FD34 ; CPU:$F146 PRG:7146 20 34 FD
pla ; CPU:$F149 PRG:7149 68
tay ; CPU:$F14A PRG:714A A8
lda #$DF ; CPU:$F14B PRG:714B A9 DF
sta PPUDATA ; CPU:$F14D PRG:714D 8D 07 20
dey ; CPU:$F150 PRG:7150 88
beq Sub_Loop760 ; CPU:$F151 PRG:7151 F0 03
sta PPUDATA ; CPU:$F153 PRG:7153 8D 07 20
; -----------------------------------------------------------------------------
; Routine: Sub_Loop760
; Global: Branch target inside Sub: taken when Loop760.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop760:
jsr Sub_FD37 ; CPU:$F156 PRG:7156 20 37 FD
; -----------------------------------------------------------------------------
; Routine: Sub_Loop761
; Global: Branch target inside Sub: taken when Loop761.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop761:
rts ; CPU:$F159 PRG:7159 60
; -----------------------------------------------------------------------------
; Routine: Sub_F15A
; Global: Branch target inside Sub: taken when F15A.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F15A:
ldx #$00 ; CPU:$F15A PRG:715A A2 00
lda Zp12 ; CPU:$F15C PRG:715C A5 12
cmp #$0A ; CPU:$F15E PRG:715E C9 0A
bne Sub_Loop763 ; CPU:$F160 PRG:7160 D0 2B
stx Zp8E ; CPU:$F162 PRG:7162 86 8E
lda ZpAC ; CPU:$F164 PRG:7164 A5 AC
and #$08 ; CPU:$F166 PRG:7166 29 08
beq Sub_Loop762 ; CPU:$F168 PRG:7168 F0 02
inc Zp8E ; CPU:$F16A PRG:716A E6 8E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop762
; Global: Branch target inside Sub: taken when Loop762.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop762:
lda #$80 ; CPU:$F16C PRG:716C A9 80
sta Zp91 ; CPU:$F16E PRG:716E 85 91
ldx #$50 ; CPU:$F170 PRG:7170 A2 50
ldy #$90 ; CPU:$F172 PRG:7172 A0 90
lda #$00 ; CPU:$F174 PRG:7174 A9 00
jsr Sub_EADE ; CPU:$F176 PRG:7176 20 DE EA
inc Zp8E ; CPU:$F179 PRG:7179 E6 8E
inc Zp8E ; CPU:$F17B PRG:717B E6 8E
lda #$A0 ; CPU:$F17D PRG:717D A9 A0
sta Zp91 ; CPU:$F17F PRG:717F 85 91
ldx #$A0 ; CPU:$F181 PRG:7181 A2 A0
ldy #$90 ; CPU:$F183 PRG:7183 A0 90
lda #$00 ; CPU:$F185 PRG:7185 A9 00
jsr Sub_EADE ; CPU:$F187 PRG:7187 20 DE EA
inc ZpAC ; CPU:$F18A PRG:718A E6 AC
rts ; CPU:$F18C PRG:718C 60
; -----------------------------------------------------------------------------
; Routine: Sub_Loop763
; Global: Branch target inside Sub: taken when Loop763.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop763:
lda #$00 ; CPU:$F18D PRG:718D A9 00
jmp Sub_F196 ; CPU:$F18F PRG:718F 4C 96 F1
; -----------------------------------------------------------------------------
; Routine: Sub_F192
; Global: Branch target inside Sub: taken when F192.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F192:
ldx #$04 ; CPU:$F192 PRG:7192 A2 04
lda #$01 ; CPU:$F194 PRG:7194 A9 01
; -----------------------------------------------------------------------------
; Routine: Sub_F196
; Global: Branch target inside Sub: taken when F196.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F196:
stx Zp8E ; CPU:$F196 PRG:7196 86 8E
sta Zp21 ; CPU:$F198 PRG:7198 85 21
lda ZpAC ; CPU:$F19A PRG:719A A5 AC
and #$08 ; CPU:$F19C PRG:719C 29 08
beq Sub_Loop764 ; CPU:$F19E PRG:719E F0 02
inc Zp8E ; CPU:$F1A0 PRG:71A0 E6 8E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop764
; Global: Branch target inside Sub: taken when Loop764.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop764:
lda #$80 ; CPU:$F1A2 PRG:71A2 A9 80
sta Zp91 ; CPU:$F1A4 PRG:71A4 85 91
ldy #$B0 ; CPU:$F1A6 PRG:71A6 A0 B0
ldx #$70 ; CPU:$F1A8 PRG:71A8 A2 70
lda Zp21 ; CPU:$F1AA PRG:71AA A5 21
jsr Sub_EADE ; CPU:$F1AC PRG:71AC 20 DE EA
inc Zp8E ; CPU:$F1AF PRG:71AF E6 8E
inc Zp8E ; CPU:$F1B1 PRG:71B1 E6 8E
lda #$A0 ; CPU:$F1B3 PRG:71B3 A9 A0
sta Zp91 ; CPU:$F1B5 PRG:71B5 85 91
ldy #$B0 ; CPU:$F1B7 PRG:71B7 A0 B0
ldx #$88 ; CPU:$F1B9 PRG:71B9 A2 88
lda Zp21 ; CPU:$F1BB PRG:71BB A5 21
jsr Sub_EADE ; CPU:$F1BD PRG:71BD 20 DE EA
inc ZpAC ; CPU:$F1C0 PRG:71C0 E6 AC
rts ; CPU:$F1C2 PRG:71C2 60
; -----------------------------------------------------------------------------
; Routine: Sub_F1C3
; Global: Branch target inside Sub: taken when F1C3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F1C3:
sty Zp22 ; CPU:$F1C3 PRG:71C3 84 22
stx Zp23 ; CPU:$F1C5 PRG:71C5 86 23
ldy #$00 ; CPU:$F1C7 PRG:71C7 A0 00
lda (Zp22),y ; CPU:$F1C9 PRG:71C9 B1 22
sta Zp24 ; CPU:$F1CB PRG:71CB 85 24
iny ; CPU:$F1CD PRG:71CD C8
lda (Zp22),y ; CPU:$F1CE PRG:71CE B1 22
sta Zp25 ; CPU:$F1D0 PRG:71D0 85 25
iny ; CPU:$F1D2 PRG:71D2 C8
lda (Zp22),y ; CPU:$F1D3 PRG:71D3 B1 22
pha ; CPU:$F1D5 PRG:71D5 48
iny ; CPU:$F1D6 PRG:71D6 C8
lda (Zp22),y ; CPU:$F1D7 PRG:71D7 B1 22
tax ; CPU:$F1D9 PRG:71D9 AA
pla ; CPU:$F1DA PRG:71DA 68
tay ; CPU:$F1DB PRG:71DB A8
jsr Sub_FD34 ; CPU:$F1DC PRG:71DC 20 34 FD
ldy #$01 ; CPU:$F1DF PRG:71DF A0 01
lda (Zp24),y ; CPU:$F1E1 PRG:71E1 B1 24
beq Sub_Loop765 ; CPU:$F1E3 PRG:71E3 F0 03
clc ; CPU:$F1E5 PRG:71E5 18
adc #$10 ; CPU:$F1E6 PRG:71E6 69 10
; -----------------------------------------------------------------------------
; Routine: Sub_Loop765
; Global: Branch target inside Sub: taken when Loop765.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop765:
sta PPUDATA ; CPU:$F1E8 PRG:71E8 8D 07 20
dey ; CPU:$F1EB PRG:71EB 88
lda (Zp24),y ; CPU:$F1EC PRG:71EC B1 24
clc ; CPU:$F1EE PRG:71EE 18
adc #$10 ; CPU:$F1EF PRG:71EF 69 10
sta PPUDATA ; CPU:$F1F1 PRG:71F1 8D 07 20
lda #$32 ; CPU:$F1F4 PRG:71F4 A9 32
sta PPUDATA ; CPU:$F1F6 PRG:71F6 8D 07 20
jsr Sub_FD37 ; CPU:$F1F9 PRG:71F9 20 37 FD
rts ; CPU:$F1FC PRG:71FC 60
; -----------------------------------------------------------------------------
; Routine: Sub_F1FD
; Global: Branch target inside Sub: taken when F1FD.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F1FD:
ldx Zp83 ; CPU:$F1FD PRG:71FD A6 83
ldy Zp84 ; CPU:$F1FF PRG:71FF A4 84
inx ; CPU:$F201 PRG:7201 E8
cpx #$0A ; CPU:$F202 PRG:7202 E0 0A
bcc Sub_Loop766 ; CPU:$F204 PRG:7204 90 0B
ldx #$00 ; CPU:$F206 PRG:7206 A2 00
iny ; CPU:$F208 PRG:7208 C8
cpy #$0A ; CPU:$F209 PRG:7209 C0 0A
bcc Sub_Loop766 ; CPU:$F20B PRG:720B 90 04
ldx #$01 ; CPU:$F20D PRG:720D A2 01
ldy #$00 ; CPU:$F20F PRG:720F A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_Loop766
; Global: Branch target inside Sub: taken when Loop766.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop766:
stx Zp83 ; CPU:$F211 PRG:7211 86 83
sty Zp84 ; CPU:$F213 PRG:7213 84 84
cpy Zp7E ; CPU:$F215 PRG:7215 C4 7E
beq Sub_Loop767 ; CPU:$F217 PRG:7217 F0 05
bcs Sub_Loop768 ; CPU:$F219 PRG:7219 B0 07
jmp Sub_Loop769 ; CPU:$F21B PRG:721B 4C 26 F2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop767
; Global: Branch target inside Sub: taken when Loop767.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop767:
cpx Zp7D ; CPU:$F21E PRG:721E E4 7D
bcc Sub_Loop769 ; CPU:$F220 PRG:7220 90 04
; -----------------------------------------------------------------------------
; Routine: Sub_Loop768
; Global: Branch target inside Sub: taken when Loop768.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop768:
stx Zp7D ; CPU:$F222 PRG:7222 86 7D
sty Zp7E ; CPU:$F224 PRG:7224 84 7E
; -----------------------------------------------------------------------------
; Routine: Sub_Loop769
; Global: Branch target inside Sub: taken when Loop769.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop769:
rts ; CPU:$F226 PRG:7226 60
; -----------------------------------------------------------------------------
; Routine: Sub_F227
; Global: Branch target inside Sub: taken when F227.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F227:
tax ; CPU:$F227 PRG:7227 AA
; -----------------------------------------------------------------------------
; Routine: Sub_OnNonzero26
; Global: Branch target inside Sub: taken when OnNonzero26.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_OnNonzero26:
jsr Sub_FD19 ; CPU:$F228 PRG:7228 20 19 FD
dex ; CPU:$F22B PRG:722B CA
bne Sub_OnNonzero26 ; CPU:$F22C PRG:722C D0 FA
rts ; CPU:$F22E PRG:722E 60
; -----------------------------------------------------------------------------
; Routine: Sub_F22F
; Global: Branch target inside Sub: taken when F22F.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_F22F:
lda Zp12 ; CPU:$F22F PRG:722F A5 12
cmp #$08 ; CPU:$F231 PRG:7231 C9 08
beq Sub_Loop770 ; CPU:$F233 PRG:7233 F0 03
jmp Sub_Loop773 ; CPU:$F235 PRG:7235 4C CA F2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop770
; Global: Branch target inside Sub: taken when Loop770.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop770:
lda Zp8A ; CPU:$F238 PRG:7238 A5 8A
bne Sub_Loop771 ; CPU:$F23A PRG:723A D0 03
jmp Sub_Loop772 ; CPU:$F23C PRG:723C 4C C4 F2
; -----------------------------------------------------------------------------
; Routine: Sub_Loop771
; Global: Branch target inside Sub: taken when Loop771.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop771:
jsr Sub_BACF ; CPU:$F23F PRG:723F 20 CF BA
lda ZpAC ; CPU:$F242 PRG:7242 A5 AC
and #$07 ; CPU:$F244 PRG:7244 29 07
asl a ; CPU:$F246 PRG:7246 0A
tax ; CPU:$F247 PRG:7247 AA
lda $F2D6,x ; CPU:$F248 PRG:7248 BD D6 F2
sta Zp22 ; CPU:$F24B PRG:724B 85 22
lda $F2D7,x ; CPU:$F24D PRG:724D BD D7 F2
sta Zp23 ; CPU:$F250 PRG:7250 85 23
jmp (Zp22) ; CPU:$F252 PRG:7252 6C 22 00
; -----------------------------------------------------------------------------
; Routine: Label_F255
; Global: Branch target inside Label: taken when F255.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_F255:
jsr Sub_E5F6 ; CPU:$F255 PRG:7255 20 F6 E5
lda GameState ; CPU:$F258 PRG:7258 A5 36
bmi Sub_Loop772 ; CPU:$F25A PRG:725A 30 68
lda Zp3E ; CPU:$F25C PRG:725C A5 3E
bmi Sub_Loop772 ; CPU:$F25E PRG:725E 30 64
ldy Zp6B ; CPU:$F260 PRG:7260 A4 6B
ldx Zp6C ; CPU:$F262 PRG:7262 A6 6C
jsr Sub_FD34 ; CPU:$F264 PRG:7264 20 34 FD
lda #$FF ; CPU:$F267 PRG:7267 A9 FF
sta PPUDATA ; CPU:$F269 PRG:7269 8D 07 20
jsr Sub_FD37 ; CPU:$F26C PRG:726C 20 37 FD
jmp Sub_Loop772 ; CPU:$F26F PRG:726F 4C C4 F2
; -----------------------------------------------------------------------------
; Routine: Label_F272
; Global: Branch target inside Label: taken when F272.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_F272:
jsr Sub_E636 ; CPU:$F272 PRG:7272 20 36 E6
lda Zp3E ; CPU:$F275 PRG:7275 A5 3E
bpl Sub_Loop772 ; CPU:$F277 PRG:7277 10 4B
jsr Sub_E365 ; CPU:$F279 PRG:7279 20 65 E3
jmp Sub_Loop772 ; CPU:$F27C PRG:727C 4C C4 F2
; -----------------------------------------------------------------------------
; Routine: Label_F27F
; Global: Branch target inside Label: taken when F27F.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_F27F:
jsr Sub_E8CE ; CPU:$F27F PRG:727F 20 CE E8
lda GameState ; CPU:$F282 PRG:7282 A5 36
bpl Sub_Loop772 ; CPU:$F284 PRG:7284 10 3E
jsr Sub_E8B3 ; CPU:$F286 PRG:7286 20 B3 E8
jmp Sub_Loop772 ; CPU:$F289 PRG:7289 4C C4 F2
; -----------------------------------------------------------------------------
; Routine: Label_F28C
; Global: Branch target inside Label: taken when F28C.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_F28C:
jsr Sub_DC19 ; CPU:$F28C PRG:728C 20 19 DC
ldx #$F2 ; CPU:$F28F PRG:728F A2 F2
ldy #$E6 ; CPU:$F291 PRG:7291 A0 E6
jsr Sub_F1C3 ; CPU:$F293 PRG:7293 20 C3 F1
jmp Sub_Loop772 ; CPU:$F296 PRG:7296 4C C4 F2
; -----------------------------------------------------------------------------
; Routine: Label_F299
; Global: Branch target inside Label: taken when F299.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_F299:
jsr Sub_E1AA ; CPU:$F299 PRG:7299 20 AA E1
lda Zp7B ; CPU:$F29C PRG:729C A5 7B
and #$20 ; CPU:$F29E PRG:729E 29 20
bne Sub_Loop772 ; CPU:$F2A0 PRG:72A0 D0 22
ldx #$F2 ; CPU:$F2A2 PRG:72A2 A2 F2
ldy #$EA ; CPU:$F2A4 PRG:72A4 A0 EA
jsr Sub_F1C3 ; CPU:$F2A6 PRG:72A6 20 C3 F1
jmp Sub_Loop772 ; CPU:$F2A9 PRG:72A9 4C C4 F2
; -----------------------------------------------------------------------------
; Routine: Label_F2AC
; Global: Branch target inside Label: taken when F2AC.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_F2AC:
jsr Sub_E5C1 ; CPU:$F2AC PRG:72AC 20 C1 E5
lda Zp7B ; CPU:$F2AF PRG:72AF A5 7B
and #$20 ; CPU:$F2B1 PRG:72B1 29 20
beq Sub_Loop772 ; CPU:$F2B3 PRG:72B3 F0 0F
jsr Sub_F121 ; CPU:$F2B5 PRG:72B5 20 21 F1
jmp Sub_Loop772 ; CPU:$F2B8 PRG:72B8 4C C4 F2
; -----------------------------------------------------------------------------
; Routine: Label_F2BB
; Global: Branch target inside Label: taken when F2BB.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_F2BB:
jsr Sub_E6FF ; CPU:$F2BB PRG:72BB 20 FF E6
jmp Sub_Loop772 ; CPU:$F2BE PRG:72BE 4C C4 F2
; -----------------------------------------------------------------------------
; Routine: Label_F2C1
; Global: Branch target inside Label: taken when F2C1.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_F2C1:
jsr Sub_E871 ; CPU:$F2C1 PRG:72C1 20 71 E8
; -----------------------------------------------------------------------------
; Routine: Sub_Loop772
; Global: Branch target inside Sub: taken when Loop772.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop772:
lda Zp35 ; CPU:$F2C4 PRG:72C4 A5 35
beq Sub_Loop773 ; CPU:$F2C6 PRG:72C6 F0 02
dec Zp35 ; CPU:$F2C8 PRG:72C8 C6 35
; -----------------------------------------------------------------------------
; Routine: Sub_Loop773
; Global: Branch target inside Sub: taken when Loop773.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop773:
lda #$00 ; CPU:$F2CA PRG:72CA A9 00
sta Zp8A ; CPU:$F2CC PRG:72CC 85 8A
lda ZpAF ; CPU:$F2CE PRG:72CE A5 AF
bne Sub_Loop774 ; CPU:$F2D0 PRG:72D0 D0 03
jsr Sub_9BF0 ; CPU:$F2D2 PRG:72D2 20 F0 9B
; -----------------------------------------------------------------------------
; Routine: Sub_Loop774
; Global: Branch target inside Sub: taken when Loop774.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_Loop774:
rts ; CPU:$F2D5 PRG:72D5 60
; ---- data $F2D6-$FD12 (2621 bytes) ----
; referenced by `lda $F2EF,x` at $EA6C (operand $F2EF falls inside this region)
; referenced by `lda $F2F0,x` at $EA71 (operand $F2F0 falls inside this region)
; referenced by `lda $FBD9,x` at $EB3D (operand $FBD9 falls inside this region)
; referenced by `lda $FBDA,x` at $EB42 (operand $FBDA falls inside this region)
; referenced by `lda $F7E9,x` at $EB49 (operand $F7E9 falls inside this region)
; referenced by `lda $F2D6,x` at $F248 (operand $F2D6 falls inside this region)
; ... and 1 further references from decoded code
.byte $55, $F2, $72, $F2, $7F, $F2, $8C, $F2, $99, $F2, $AC, $F2, $BB, $F2, $C1, $F2 ; CPU:$F2D6 PRG:72D6 55 F2 72 F2 7F F2 8C F2 99 F2 AC F2 BB F2 C1 F2
.byte $7D, $00, $68, $20, $83, $00, $88, $20, $60, $F5, $F2, $F5, $F2, $5B, $F5, $C0 ; CPU:$F2E6 PRG:72E6 7D 00 68 20 83 00 88 20 60 F5 F2 F5 F2 5B F5 C0
.byte $20, $CA, $CA, $CA, $CA, $40, $74, $71, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7 ; CPU:$F2F6 PRG:72F6 20 CA CA CA CA 40 74 71 C7 C7 C7 C7 C7 C7 C7 C7
.byte $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $71, $74, $40, $CA, $CA, $CA ; CPU:$F306 PRG:7306 C7 C7 C7 C7 C7 C7 C7 C7 C7 C7 71 74 40 CA CA CA
.byte $CA, $CB, $CB, $CB, $CB, $41, $75, $71, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7 ; CPU:$F316 PRG:7316 CA CB CB CB CB 41 75 71 C7 C7 C7 C7 C7 C7 C7 C7
.byte $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $71, $75, $42, $CB, $CB, $CB ; CPU:$F326 PRG:7326 C7 C7 C7 C7 C7 C7 C7 C7 C7 C7 71 75 42 CB CB CB
.byte $CB, $CA, $CA, $CA, $CA, $72, $75, $71, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7 ; CPU:$F336 PRG:7336 CB CA CA CA CA 72 75 71 C7 C7 C7 C7 C7 C7 C7 C7
.byte $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $C7, $71, $75, $73, $CA, $CA, $CA ; CPU:$F346 PRG:7346 C7 C7 C7 C7 C7 C7 C7 C7 C7 C7 71 75 73 CA CA CA
.byte $CA, $CB, $CB, $CB, $CB, $72, $76, $FF, $14, $70, $73, $CB, $CB, $CB, $CB, $C2 ; CPU:$F356 PRG:7356 CA CB CB CB CB 72 76 FF 14 70 73 CB CB CB CB C2
.byte $C2, $C2, $C2, $72, $48, $45, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44 ; CPU:$F366 PRG:7366 C2 C2 C2 72 48 45 44 44 44 44 44 44 44 44 44 44
.byte $44, $44, $44, $44, $44, $44, $44, $44, $47, $54, $73, $C3, $C3, $C3, $C3, $BE ; CPU:$F376 PRG:7376 44 44 44 44 44 44 44 44 47 54 73 C3 C3 C3 C3 BE
.byte $BE, $BE, $BC, $4B, $49, $46, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44 ; CPU:$F386 PRG:7386 BE BE BC 4B 49 46 44 44 44 44 44 44 44 44 44 44
.byte $44, $44, $44, $44, $44, $44, $44, $44, $4A, $5F, $5D, $C4, $BF, $BF, $BF, $BE ; CPU:$F396 PRG:7396 44 44 44 44 44 44 44 44 4A 5F 5D C4 BF BF BF BE
.byte $BE, $BE, $BD, $4E, $4C, $44, $44, $5D, $FF, $0E, $4B, $44, $44, $50, $58, $C5 ; CPU:$F3A6 PRG:73A6 BE BE BD 4E 4C 44 44 5D FF 0E 4B 44 44 50 58 C5
.byte $BF, $BF, $BF, $C2, $C2, $C2, $C0, $4F, $4D, $44, $44, $FF, $10, $44, $44, $4D ; CPU:$F3B6 PRG:73B6 BF BF BF C2 C2 C2 C0 4F 4D 44 44 FF 10 44 44 4D
.byte $59, $C8, $C3, $C3, $C3, $C2, $C2, $C2, $C1, $52, $50, $44, $60, $FF, $10, $64 ; CPU:$F3C6 PRG:73C6 59 C8 C3 C3 C3 C2 C2 C2 C1 52 50 44 60 FF 10 64
.byte $44, $4C, $5A, $C9, $C3, $C3, $C3, $BE, $BE, $BC, $FF, $01, $53, $51, $44, $61 ; CPU:$F3D6 PRG:73D6 44 4C 5A C9 C3 C3 C3 BE BE BC FF 01 53 51 44 61
.byte $FF, $10, $65, $44, $49, $5B, $FF, $01, $C4, $BF, $BF, $BE, $BE, $BD, $FF, $01 ; CPU:$F3E6 PRG:73E6 FF 10 65 44 49 5B FF 01 C4 BF BF BE BE BD FF 01
.byte $56, $54, $44, $62, $FF, $10, $66, $44, $48, $5C, $FF, $01, $C5, $BF, $BF, $C2 ; CPU:$F3F6 PRG:73F6 56 54 44 62 FF 10 66 44 48 5C FF 01 C5 BF BF C2
.byte $C2, $C0, $FF, $01, $57, $55, $44, $5A, $FF, $10, $52, $44, $43, $5E, $FF, $01 ; CPU:$F406 PRG:7406 C2 C0 FF 01 57 55 44 5A FF 10 52 44 43 5E FF 01
.byte $C8, $C3, $C3, $C2, $C2, $C1, $FF, $01, $48, $45, $44, $59, $FF, $10, $4F, $44 ; CPU:$F416 PRG:7416 C8 C3 C3 C2 C2 C1 FF 01 48 45 44 59 FF 10 4F 44
.byte $47, $54, $FF, $01, $C9, $C3, $C3, $BE, $BC, $FF, $01, $4B, $49, $46, $44, $58 ; CPU:$F426 PRG:7426 47 54 FF 01 C9 C3 C3 BE BC FF 01 4B 49 46 44 58
.byte $FF, $10, $4E, $44, $4A, $5F, $5D, $FF, $01, $C4, $BF, $BE, $BD, $FF, $01, $4E ; CPU:$F436 PRG:7436 FF 10 4E 44 4A 5F 5D FF 01 C4 BF BE BD FF 01 4E
.byte $4C, $44, $44, $5D, $FF, $10, $4B, $44, $44, $50, $58, $FF, $01, $C5, $BF, $C2 ; CPU:$F446 PRG:7446 4C 44 44 5D FF 10 4B 44 44 50 58 FF 01 C5 BF C2
.byte $C0, $FF, $01, $4F, $4D, $44, $44, $FF, $12, $44, $44, $4D, $59, $FF, $01, $C8 ; CPU:$F456 PRG:7456 C0 FF 01 4F 4D 44 44 FF 12 44 44 4D 59 FF 01 C8
.byte $C3, $C2, $C1, $FF, $01, $52, $74, $77, $77, $77, $77, $77, $77, $77, $77, $77 ; CPU:$F466 PRG:7466 C3 C2 C1 FF 01 52 74 77 77 77 77 77 77 77 77 77
.byte $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $74, $5A, $FF ; CPU:$F476 PRG:7476 77 77 77 77 77 77 77 77 77 77 77 77 77 74 5A FF
.byte $01, $C9, $C3, $BC, $FF, $01, $7B, $78, $75, $77, $77, $77, $77, $77, $77, $77 ; CPU:$F486 PRG:7486 01 C9 C3 BC FF 01 7B 78 75 77 77 77 77 77 77 77
.byte $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $75 ; CPU:$F496 PRG:7496 77 77 77 77 77 77 77 77 77 77 77 77 77 77 77 75
.byte $7C, $7B, $FF, $01, $C4, $BD, $FF, $01, $7F, $79, $75, $77, $77, $77, $77, $77 ; CPU:$F4A6 PRG:74A6 7C 7B FF 01 C4 BD FF 01 7F 79 75 77 77 77 77 77
.byte $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77 ; CPU:$F4B6 PRG:74B6 77 77 77 77 77 77 77 77 77 77 77 77 77 77 77 77
.byte $77, $75, $7D, $7F, $FF, $01, $C5, $C0, $FF, $01, $7F, $7A, $C6, $44, $44, $44 ; CPU:$F4C6 PRG:74C6 77 75 7D 7F FF 01 C5 C0 FF 01 7F 7A C6 44 44 44
.byte $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44 ; CPU:$F4D6 PRG:74D6 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44
.byte $44, $44, $44, $C6, $7E, $7F, $FF, $01, $C8, $C1, $FF, $01, $7F, $FF, $1A, $7F ; CPU:$F4E6 PRG:74E6 44 44 44 C6 7E 7F FF 01 C8 C1 FF 01 7F FF 1A 7F
.byte $FF, $01, $C9, $FF, $02, $7F, $FF, $07, $9A, $98, $9E, $FF, $05, $8A, $88, $82 ; CPU:$F4F6 PRG:74F6 FF 01 C9 FF 02 7F FF 07 9A 98 9E FF 05 8A 88 82
.byte $80, $FF, $07, $7F, $FF, $02, $FF, $02, $7F, $FF, $07, $9B, $99, $9F, $FF, $05 ; CPU:$F506 PRG:7506 80 FF 07 7F FF 02 FF 02 7F FF 07 9B 99 9F FF 05
.byte $8B, $89, $83, $81, $FF, $07, $7F, $FF, $02, $FF, $20, $00, $03, $50, $10, $00 ; CPU:$F516 PRG:7516 8B 89 83 81 FF 07 7F FF 02 FF 20 00 03 50 10 00
.byte $03, $50, $40, $50, $5F, $53, $50, $D0, $50, $6A, $14, $05, $05, $05, $05, $4D ; CPU:$F526 PRG:7526 03 50 40 50 5F 53 50 D0 50 6A 14 05 05 05 05 4D
.byte $9A, $66, $11, $00, $04, $44, $99, $56, $11, $00, $04, $44, $59, $55, $51, $50 ; CPU:$F536 PRG:7536 9A 66 11 00 04 44 99 56 11 00 04 44 59 55 51 50
.byte $50, $50, $50, $10, $55, $95, $A1, $A0, $A0, $A0, $A0, $A0, $65, $05, $05, $05 ; CPU:$F546 PRG:7546 50 50 50 10 55 95 A1 A0 A0 A0 A0 A0 65 05 05 05
.byte $05, $05, $05, $05, $05, $C0, $20, $00, $20, $4B, $4B, $4B, $4B, $4B, $4B, $4B ; CPU:$F556 PRG:7556 05 05 05 05 05 C0 20 00 20 4B 4B 4B 4B 4B 4B 4B
.byte $4B, $4B, $4B, $00, $01, $23, $2F, $35, $2E, $34, $00, $01, $1D, $00, $04, $4B ; CPU:$F566 PRG:7566 4B 4B 4B 00 01 23 2F 35 2E 34 00 01 1D 00 04 4B
.byte $4B, $4B, $4B, $4B, $4B, $4B, $4B, $4B, $4B, $D0, $D0, $D0, $D0, $D0, $D0, $D0 ; CPU:$F576 PRG:7576 4B 4B 4B 4B 4B 4B 4B 4B 4B D0 D0 D0 D0 D0 D0 D0
.byte $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0 ; CPU:$F586 PRG:7586 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0
.byte $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0 ; CPU:$F596 PRG:7596 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0
.byte $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0 ; CPU:$F5A6 PRG:75A6 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0
.byte $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0 ; CPU:$F5B6 PRG:75B6 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0
.byte $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0 ; CPU:$F5C6 PRG:75C6 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0 D0
.byte $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $D0, $5D, $4B, $00, $02, $5D, $4B, $00 ; CPU:$F5D6 PRG:75D6 D0 D0 D0 D0 D0 D0 D0 D0 D0 5D 4B 00 02 5D 4B 00
.byte $02, $5D, $4B, $00, $02, $5D, $4B, $00, $02, $5D, $4B, $00, $02, $5D, $4B, $00 ; CPU:$F5E6 PRG:75E6 02 5D 4B 00 02 5D 4B 00 02 5D 4B 00 02 5D 4B 00
.byte $02, $5D, $4B, $00, $02, $5D, $4B, $00, $02, $CA, $CA, $CA, $CA, $CA, $CA, $CA ; CPU:$F5F6 PRG:75F6 02 5D 4B 00 02 5D 4B 00 02 CA CA CA CA CA CA CA
.byte $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA ; CPU:$F606 PRG:7606 CA CA CA CA CA CA CA CA CA CA CA CA CA CA CA CA
.byte $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CB, $CB, $CB, $CB, $CB, $CB, $CB ; CPU:$F616 PRG:7616 CA CA CA CA CA CA CA CA CA CB CB CB CB CB CB CB
.byte $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB ; CPU:$F626 PRG:7626 CB CB CB CB CB CB CB CB CB CB CB CB CB CB CB CB
.byte $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CB, $CA, $CA, $CA, $CA, $CA, $CA, $BB ; CPU:$F636 PRG:7636 CB CB CB CB CB CB CB CB CB CA CA CA CA CA CA BB
.byte $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA, $CA ; CPU:$F646 PRG:7646 CA CA CA CA CA CA CA CA CA CA CA CA CA CA CA CA
.byte $CA, $CA, $BB, $CA, $CA, $CA, $CA, $CA, $CA, $CB, $CB, $CB, $7B, $CB, $CB, $6A ; CPU:$F656 PRG:7656 CA CA BB CA CA CA CA CA CA CB CB CB 7B CB CB 6A
.byte $68, $6E, $6E, $6E, $6E, $6E, $6E, $6E, $6E, $6E, $6E, $6E, $6E, $6E, $6E, $6E ; CPU:$F666 PRG:7666 68 6E 6E 6E 6E 6E 6E 6E 6E 6E 6E 6E 6E 6E 6E 6E
.byte $6E, $68, $6C, $CB, $CB, $7B, $CB, $CB, $CB, $CA, $CA, $CA, $7F, $CC, $74, $6B ; CPU:$F676 PRG:7676 6E 68 6C CB CB 7B CB CB CB CA CA CA 7F CC 74 6B
.byte $69, $6F, $6F, $6F, $6F, $6F, $6F, $6F, $6F, $6F, $6F, $6F, $6F, $6F, $6F, $6F ; CPU:$F686 PRG:7686 69 6F 6F 6F 6F 6F 6F 6F 6F 6F 6F 6F 6F 6F 6F 6F
.byte $6F, $69, $6D, $74, $CC, $7F, $CA, $CA, $CA, $CB, $CB, $CB, $7F, $CC, $75, $CE ; CPU:$F696 PRG:7696 6F 69 6D 74 CC 7F CA CA CA CB CB CB 7F CC 75 CE
.byte $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77, $77 ; CPU:$F6A6 PRG:76A6 77 77 77 77 77 77 77 77 77 77 77 77 77 77 77 77
.byte $77, $77, $9C, $75, $CC, $7F, $CB, $CB, $CB, $BE, $BE, $BE, $7F, $BE, $75, $77 ; CPU:$F6B6 PRG:76B6 77 77 9C 75 CC 7F CB CB CB BE BE BE 7F BE 75 77
.byte $77, $D3, $A0, $A0, $A0, $A0, $A0, $A0, $A0, $A0, $A0, $A0, $A0, $A0, $A0, $A0 ; CPU:$F6C6 PRG:76C6 77 D3 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0
.byte $D1, $77, $77, $75, $BF, $7F, $BF, $BF, $BF, $BE, $BE, $BE, $7F, $78, $C6, $44 ; CPU:$F6D6 PRG:76D6 D1 77 77 75 BF 7F BF BF BF BE BE BE 7F 78 C6 44
.byte $63, $9D, $9D, $9D, $9D, $9D, $9D, $9D, $9D, $9D, $9D, $9D, $9D, $9D, $9D, $9D ; CPU:$F6E6 PRG:76E6 63 9D 9D 9D 9D 9D 9D 9D 9D 9D 9D 9D 9D 9D 9D 9D
.byte $9D, $67, $44, $C6, $7C, $7F, $BF, $BF, $BF, $C2, $C2, $C2, $7F, $44, $44, $44 ; CPU:$F6F6 PRG:76F6 9D 67 44 C6 7C 7F BF BF BF C2 C2 C2 7F 44 44 44
.byte $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44, $44 ; CPU:$F706 PRG:7706 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44
.byte $44, $44, $44, $44, $44, $7F, $C3, $C3, $C3, $C2, $C2, $94, $7F, $FF, $18, $7F ; CPU:$F716 PRG:7716 44 44 44 44 44 7F C3 C3 C3 C2 C2 94 7F FF 18 7F
.byte $95, $C3, $C3, $C2, $94, $FF, $01, $7F, $FF, $18, $7F, $FF, $01, $95, $C3, $94 ; CPU:$F726 PRG:7726 95 C3 C3 C2 94 FF 01 7F FF 18 7F FF 01 95 C3 94
.byte $FF, $02, $7F, $FF, $18, $7F, $FF, $02, $95, $FF, $03, $7F, $FF, $18, $7F, $FF ; CPU:$F736 PRG:7736 FF 02 7F FF 18 7F FF 02 95 FF 03 7F FF 18 7F FF
.byte $03, $FF, $20, $FF, $20, $CF, $CF, $CF, $CF, $CF, $CF, $CD, $CD, $CD, $CD, $9A ; CPU:$F746 PRG:7746 03 FF 20 FF 20 CF CF CF CF CF CF CD CD CD CD 9A
.byte $98, $9E, $CF, $CF, $CF, $CF, $CF, $8A, $88, $82, $80, $CD, $CD, $CF, $CF, $CF ; CPU:$F756 PRG:7756 98 9E CF CF CF CF CF 8A 88 82 80 CD CD CF CF CF
.byte $CF, $CF, $CF, $CF, $CF, $CD, $CD, $CD, $CD, $CD, $CD, $CF, $CF, $CF, $CF, $9B ; CPU:$F766 PRG:7766 CF CF CF CF CF CD CD CD CD CD CD CF CF CF CF 9B
.byte $99, $9F, $CD, $CD, $CD, $CD, $CD, $8B, $89, $83, $81, $CF, $CF, $CD, $CD, $CD ; CPU:$F776 PRG:7776 99 9F CD CD CD CD CD 8B 89 83 81 CF CF CD CD CD
.byte $CD, $CD, $CD, $CF, $CF, $CF, $CF, $CF, $CF, $CF, $CF, $CD, $CD, $CD, $CD, $CD ; CPU:$F786 PRG:7786 CD CD CD CF CF CF CF CF CF CF CF CD CD CD CD CD
.byte $CD, $CF, $CF, $CF, $CF, $CF, $CF, $CD, $CD, $CD, $CD, $CD, $CD, $CF, $CF, $CF ; CPU:$F796 PRG:7796 CD CF CF CF CF CF CF CD CD CD CD CD CD CF CF CF
.byte $CF, $CF, $CF, $CF, $CF, $00, $03, $50, $10, $00, $03, $50, $50, $10, $0F, $03 ; CPU:$F7A6 PRG:77A6 CF CF CF CF CF 00 03 50 10 00 03 50 50 10 0F 03
.byte $40, $50, $50, $5A, $5A, $5A, $5A, $5A, $5A, $5A, $5A, $AA, $2A, $AA, $AA, $AA ; CPU:$F7B6 PRG:77B6 40 50 50 5A 5A 5A 5A 5A 5A 5A 5A AA 2A AA AA AA
.byte $AA, $BA, $AA, $A5, $11, $05, $05, $05, $05, $03, $A5, $56, $AA, $AA, $AA, $AA ; CPU:$F7C6 PRG:77C6 AA BA AA A5 11 05 05 05 05 03 A5 56 AA AA AA AA
.byte $AA, $AA, $59, $55, $55, $55, $55, $55, $55, $55, $55, $05, $05, $05, $05, $05 ; CPU:$F7D6 PRG:77D6 AA AA 59 55 55 55 55 55 55 55 55 05 05 05 05 05
.byte $05, $05, $05, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; CPU:$F7E6 PRG:77E6 05 05 05 00 00 00 00 00 00 00 00 00 00 00 00 00
.byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; CPU:$F7F6 PRG:77F6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
.byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; CPU:$F806 PRG:7806 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
.byte $00, $00, $00, $01, $01, $01, $01, $00, $00, $00, $00, $00, $00, $01, $01, $00 ; CPU:$F816 PRG:7816 00 00 00 01 01 01 01 00 00 00 00 00 00 01 01 00
.byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; CPU:$F826 PRG:7826 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
.byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $01, $01, $01, $00 ; CPU:$F836 PRG:7836 00 00 00 00 00 00 00 00 00 00 00 01 01 01 01 00
.byte $00, $00, $00, $00, $00, $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $00 ; CPU:$F846 PRG:7846 00 00 00 00 00 01 01 01 01 01 01 01 01 01 01 00
.byte $00, $00, $00, $01, $01, $02, $02, $03, $04, $05, $06, $01, $01, $02, $02, $04 ; CPU:$F856 PRG:7856 00 00 00 01 01 02 02 03 04 05 06 01 01 02 02 04
.byte $03, $06, $05, $07, $08, $09, $0A, $0B, $0C, $0D, $0E, $07, $08, $09, $0A, $0C ; CPU:$F866 PRG:7866 03 06 05 07 08 09 0A 0B 0C 0D 0E 07 08 09 0A 0C
.byte $0B, $0E, $0D, $0F, $0F, $10, $10, $11, $12, $13, $14, $0F, $0F, $10, $10, $12 ; CPU:$F876 PRG:7876 0B 0E 0D 0F 0F 10 10 11 12 13 14 0F 0F 10 10 12
.byte $11, $14, $13, $15, $15, $16, $16, $17, $18, $19, $1A, $15, $15, $16, $16, $18 ; CPU:$F886 PRG:7886 11 14 13 15 15 16 16 17 18 19 1A 15 15 16 16 18
.byte $17, $1A, $19, $1B, $1B, $1C, $1C, $1D, $1E, $1F, $20, $1B, $1B, $1C, $1C, $1E ; CPU:$F896 PRG:7896 17 1A 19 1B 1B 1C 1C 1D 1E 1F 20 1B 1B 1C 1C 1E
.byte $1D, $20, $1F, $21, $22, $23, $24, $25, $26, $27, $28, $21, $22, $23, $24, $26 ; CPU:$F8A6 PRG:78A6 1D 20 1F 21 22 23 24 25 26 27 28 21 22 23 24 26
.byte $25, $28, $27, $29, $29, $2A, $2A, $2B, $2C, $2D, $2E, $29, $29, $2A, $2A, $2C ; CPU:$F8B6 PRG:78B6 25 28 27 29 29 2A 2A 2B 2C 2D 2E 29 29 2A 2A 2C
.byte $2B, $2E, $2D, $2F, $2F, $30, $30, $31, $32, $33, $34, $2F, $2F, $30, $30, $32 ; CPU:$F8C6 PRG:78C6 2B 2E 2D 2F 2F 30 30 31 32 33 34 2F 2F 30 30 32
.byte $31, $34, $33, $01, $01, $02, $02, $00, $00, $00, $00, $07, $08, $09, $0A, $00 ; CPU:$F8D6 PRG:78D6 31 34 33 01 01 02 02 00 00 00 00 07 08 09 0A 00
.byte $00, $00, $00, $0F, $0F, $10, $10, $00, $00, $00, $00, $15, $15, $16, $16, $00 ; CPU:$F8E6 PRG:78E6 00 00 00 0F 0F 10 10 00 00 00 00 15 15 16 16 00
.byte $00, $00, $00, $35, $36, $37, $38, $39, $3A, $3B, $3C, $35, $36, $37, $38, $57 ; CPU:$F8F6 PRG:78F6 00 00 00 35 36 37 38 39 3A 3B 3C 35 36 37 38 57
.byte $58, $59, $5A, $3D, $3E, $3F, $40, $41, $42, $43, $44, $3D, $3E, $3F, $40, $5D ; CPU:$F906 PRG:7906 58 59 5A 3D 3E 3F 40 41 42 43 44 3D 3E 3F 40 5D
.byte $5E, $5F, $60, $45, $46, $47, $48, $49, $4A, $4B, $4C, $45, $46, $47, $48, $63 ; CPU:$F916 PRG:7916 5E 5F 60 45 46 47 48 49 4A 4B 4C 45 46 47 48 63
.byte $64, $65, $66, $4D, $4E, $4F, $50, $51, $52, $53, $54, $4D, $4E, $4F, $50, $69 ; CPU:$F926 PRG:7926 64 65 66 4D 4E 4F 50 51 52 53 54 4D 4E 4F 50 69
.byte $6A, $6B, $6C, $35, $36, $55, $56, $57, $58, $59, $5A, $35, $36, $55, $56, $39 ; CPU:$F936 PRG:7936 6A 6B 6C 35 36 55 56 57 58 59 5A 35 36 55 56 39
.byte $3A, $3B, $3C, $3D, $3E, $5B, $5C, $5D, $5E, $5F, $60, $3D, $3E, $5B, $5C, $41 ; CPU:$F946 PRG:7946 3A 3B 3C 3D 3E 5B 5C 5D 5E 5F 60 3D 3E 5B 5C 41
.byte $42, $43, $44, $45, $46, $61, $62, $63, $64, $65, $66, $45, $46, $61, $62, $49 ; CPU:$F956 PRG:7956 42 43 44 45 46 61 62 63 64 65 66 45 46 61 62 49
.byte $4A, $4B, $4C, $4D, $4E, $67, $68, $69, $6A, $6B, $6C, $4D, $4E, $67, $68, $51 ; CPU:$F966 PRG:7966 4A 4B 4C 4D 4E 67 68 69 6A 6B 6C 4D 4E 67 68 51
.byte $52, $53, $54, $6D, $6E, $6F, $70, $39, $3A, $3B, $3C, $6D, $6E, $6F, $70, $57 ; CPU:$F976 PRG:7976 52 53 54 6D 6E 6F 70 39 3A 3B 3C 6D 6E 6F 70 57
.byte $58, $59, $5A, $71, $72, $73, $74, $41, $42, $43, $44, $71, $72, $73, $74, $5D ; CPU:$F986 PRG:7986 58 59 5A 71 72 73 74 41 42 43 44 71 72 73 74 5D
.byte $5E, $5F, $60, $75, $76, $77, $78, $49, $4A, $4B, $4C, $75, $76, $77, $78, $63 ; CPU:$F996 PRG:7996 5E 5F 60 75 76 77 78 49 4A 4B 4C 75 76 77 78 63
.byte $64, $65, $66, $79, $7A, $7B, $7C, $51, $52, $53, $54, $79, $7A, $7B, $7C, $69 ; CPU:$F9A6 PRG:79A6 64 65 66 79 7A 7B 7C 51 52 53 54 79 7A 7B 7C 69
.byte $6A, $6B, $6C, $7D, $7E, $7F, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89 ; CPU:$F9B6 PRG:79B6 6A 6B 6C 7D 7E 7F 80 81 82 83 84 85 86 87 88 89
.byte $8A, $8B, $8C, $8D, $8E, $8F, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99 ; CPU:$F9C6 PRG:79C6 8A 8B 8C 8D 8E 8F 90 91 92 93 94 95 96 97 98 99
.byte $9A, $9B, $9C, $9D, $9E, $9F, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9 ; CPU:$F9D6 PRG:79D6 9A 9B 9C 9D 9E 9F A0 A1 A2 A3 A4 A5 A6 A7 A8 A9
.byte $AA, $AB, $AC, $AD, $AE, $AF, $B0, $B1, $B2, $B3, $B4, $B5, $B6, $B7, $B8, $B9 ; CPU:$F9E6 PRG:79E6 AA AB AC AD AE AF B0 B1 B2 B3 B4 B5 B6 B7 B8 B9
.byte $BA, $BB, $BC, $BD, $BE, $BF, $C0, $C1, $C2, $C3, $C4, $00, $00, $00, $00, $C5 ; CPU:$F9F6 PRG:79F6 BA BB BC BD BE BF C0 C1 C2 C3 C4 00 00 00 00 C5
.byte $C6, $C7, $C8, $CF, $D0, $D1, $D2, $00, $00, $00, $00, $C9, $CA, $CB, $CC, $CD ; CPU:$FA06 PRG:7A06 C6 C7 C8 CF D0 D1 D2 00 00 00 00 C9 CA CB CC CD
.byte $CD, $CE, $CE, $D3, $D4, $D5, $D6, $D7, $D8, $D9, $DA, $DB, $00, $DC, $DD, $DE ; CPU:$FA16 PRG:7A16 CD CE CE D3 D4 D5 D6 D7 D8 D9 DA DB 00 DC DD DE
.byte $DF, $E0, $E1, $E2, $E3, $EA, $EB, $E4, $E5, $EC, $ED, $E6, $E7, $EA, $EB, $E8 ; CPU:$FA26 PRG:7A26 DF E0 E1 E2 E3 EA EB E4 E5 EC ED E6 E7 EA EB E8
.byte $E9, $EC, $ED, $36, $35, $38, $37, $3A, $39, $3C, $3B, $36, $35, $38, $37, $58 ; CPU:$FA36 PRG:7A36 E9 EC ED 36 35 38 37 3A 39 3C 3B 36 35 38 37 58
.byte $57, $5A, $59, $3E, $3D, $40, $3F, $42, $41, $44, $43, $3E, $3D, $40, $3F, $5E ; CPU:$FA46 PRG:7A46 57 5A 59 3E 3D 40 3F 42 41 44 43 3E 3D 40 3F 5E
.byte $5D, $60, $5F, $46, $45, $48, $47, $4A, $49, $4C, $4B, $46, $45, $48, $47, $64 ; CPU:$FA56 PRG:7A56 5D 60 5F 46 45 48 47 4A 49 4C 4B 46 45 48 47 64
.byte $63, $66, $65, $4E, $4D, $50, $4F, $52, $51, $54, $53, $4E, $4D, $50, $4F, $6A ; CPU:$FA66 PRG:7A66 63 66 65 4E 4D 50 4F 52 51 54 53 4E 4D 50 4F 6A
.byte $69, $6C, $6B, $36, $35, $56, $55, $58, $57, $5A, $59, $36, $35, $56, $55, $3A ; CPU:$FA76 PRG:7A76 69 6C 6B 36 35 56 55 58 57 5A 59 36 35 56 55 3A
.byte $39, $3C, $3B, $3E, $3D, $5C, $5B, $5E, $5D, $60, $5F, $3E, $3D, $5C, $5B, $42 ; CPU:$FA86 PRG:7A86 39 3C 3B 3E 3D 5C 5B 5E 5D 60 5F 3E 3D 5C 5B 42
.byte $41, $44, $43, $46, $45, $62, $61, $64, $63, $66, $65, $46, $45, $62, $61, $4A ; CPU:$FA96 PRG:7A96 41 44 43 46 45 62 61 64 63 66 65 46 45 62 61 4A
.byte $49, $4C, $4B, $4E, $4D, $68, $67, $6A, $69, $6C, $6B, $4E, $4D, $68, $67, $52 ; CPU:$FAA6 PRG:7AA6 49 4C 4B 4E 4D 68 67 6A 69 6C 6B 4E 4D 68 67 52
.byte $51, $54, $53, $6E, $6D, $70, $6F, $3A, $39, $3C, $3B, $6E, $6D, $70, $6F, $58 ; CPU:$FAB6 PRG:7AB6 51 54 53 6E 6D 70 6F 3A 39 3C 3B 6E 6D 70 6F 58
.byte $57, $5A, $59, $72, $71, $74, $73, $42, $41, $44, $43, $72, $71, $74, $73, $5E ; CPU:$FAC6 PRG:7AC6 57 5A 59 72 71 74 73 42 41 44 43 72 71 74 73 5E
.byte $5D, $60, $5F, $76, $75, $78, $77, $4A, $49, $4C, $4B, $76, $75, $78, $77, $64 ; CPU:$FAD6 PRG:7AD6 5D 60 5F 76 75 78 77 4A 49 4C 4B 76 75 78 77 64
.byte $63, $66, $65, $7A, $79, $7C, $7B, $52, $51, $54, $53, $7A, $79, $7C, $7B, $6A ; CPU:$FAE6 PRG:7AE6 63 66 65 7A 79 7C 7B 52 51 54 53 7A 79 7C 7B 6A
.byte $69, $6C, $6B, $7E, $7D, $80, $7F, $82, $81, $84, $83, $86, $85, $88, $87, $8A ; CPU:$FAF6 PRG:7AF6 69 6C 6B 7E 7D 80 7F 82 81 84 83 86 85 88 87 8A
.byte $89, $8C, $8B, $8E, $8D, $90, $8F, $92, $91, $94, $93, $96, $95, $98, $97, $9A ; CPU:$FB06 PRG:7B06 89 8C 8B 8E 8D 90 8F 92 91 94 93 96 95 98 97 9A
.byte $99, $9C, $9B, $A0, $9F, $9E, $9D, $A4, $A3, $A2, $A1, $A8, $A7, $A6, $A5, $AC ; CPU:$FB16 PRG:7B16 99 9C 9B A0 9F 9E 9D A4 A3 A2 A1 A8 A7 A6 A5 AC
.byte $AB, $AA, $A9, $B0, $AF, $AE, $AD, $B4, $B3, $B2, $B1, $B8, $B7, $B6, $B5, $BC ; CPU:$FB26 PRG:7B26 AB AA A9 B0 AF AE AD B4 B3 B2 B1 B8 B7 B6 B5 BC
.byte $BB, $BA, $B9, $BE, $BD, $C0, $BF, $C2, $C1, $C4, $C3, $00, $00, $00, $00, $C6 ; CPU:$FB36 PRG:7B36 BB BA B9 BE BD C0 BF C2 C1 C4 C3 00 00 00 00 C6
.byte $C5, $C8, $C7, $D0, $CF, $D2, $D1, $00, $00, $00, $00, $CA, $C9, $CC, $CB, $CD ; CPU:$FB46 PRG:7B46 C5 C8 C7 D0 CF D2 D1 00 00 00 00 CA C9 CC CB CD
.byte $CD, $CE, $CE, $D4, $D3, $D6, $D5, $D8, $D7, $DA, $D9, $00, $DB, $DD, $DC, $DF ; CPU:$FB56 PRG:7B56 CD CE CE D4 D3 D6 D5 D8 D7 DA D9 00 DB DD DC DF
.byte $DE, $E1, $E0, $EB, $EA, $E3, $E2, $ED, $EC, $E5, $E4, $EB, $EA, $E7, $E6, $ED ; CPU:$FB66 PRG:7B66 DE E1 E0 EB EA E3 E2 ED EC E5 E4 EB EA E7 E6 ED
.byte $EC, $E9, $E8, $A1, $A2, $A3, $A4, $9D, $9E, $9F, $A0, $A9, $AA, $AB, $AC, $A5 ; CPU:$FB76 PRG:7B76 EC E9 E8 A1 A2 A3 A4 9D 9E 9F A0 A9 AA AB AC A5
.byte $A6, $A7, $A8, $B1, $B2, $B3, $B4, $AD, $AE, $AF, $B0, $B9, $BA, $BB, $BC, $B5 ; CPU:$FB86 PRG:7B86 A6 A7 A8 B1 B2 B3 B4 AD AE AF B0 B9 BA BB BC B5
.byte $B6, $B7, $B8, $A4, $A3, $A2, $A1, $A0, $9F, $9E, $9D, $AC, $AB, $AA, $A9, $A8 ; CPU:$FB96 PRG:7B96 B6 B7 B8 A4 A3 A2 A1 A0 9F 9E 9D AC AB AA A9 A8
.byte $A7, $A6, $A5, $B4, $B3, $B2, $B1, $B0, $AF, $AE, $AD, $BC, $BB, $BA, $B9, $B8 ; CPU:$FBA6 PRG:7BA6 A7 A6 A5 B4 B3 B2 B1 B0 AF AE AD BC BB BA B9 B8
.byte $B7, $B6, $B5, $4B, $4C, $49, $4A, $77, $78, $75, $76, $4C, $4B, $4A, $49, $78 ; CPU:$FBB6 PRG:7BB6 B7 B6 B5 4B 4C 49 4A 77 78 75 76 4C 4B 4A 49 78
.byte $77, $76, $75, $EE, $EE, $EE, $EE, $EE, $EE, $00, $00, $EF, $EF, $EF, $EF, $EF ; CPU:$FBC6 PRG:7BC6 77 76 75 EE EE EE EE EE EE 00 00 EF EF EF EF EF
.byte $EF, $00, $00, $0A, $00, $FA, $00, $00, $00, $F0, $00, $0A, $00, $FA, $00, $0A ; CPU:$FBD6 PRG:7BD6 EF 00 00 0A 00 FA 00 00 00 F0 00 0A 00 FA 00 0A
.byte $00, $FA, $00, $0A, $00, $FA, $00, $00, $00, $F0, $00, $0A, $00, $FA, $00, $0A ; CPU:$FBE6 PRG:7BE6 00 FA 00 0A 00 FA 00 00 00 F0 00 0A 00 FA 00 0A
.byte $00, $FA, $00, $0A, $00, $00, $00, $0A, $00, $0A, $00, $00, $00, $00, $00, $00 ; CPU:$FBF6 PRG:7BF6 00 FA 00 0A 00 00 00 0A 00 0A 00 00 00 00 00 00
.byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; CPU:$FC06 PRG:7C06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
.byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; CPU:$FC16 PRG:7C16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
.byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; CPU:$FC26 PRG:7C26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
.byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; CPU:$FC36 PRG:7C36 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
.byte $00, $A0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FF, $00, $FF, $00, $FF ; CPU:$FC46 PRG:7C46 00 A0 00 00 00 00 00 00 00 00 00 FF 00 FF 00 FF
.byte $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF ; CPU:$FC56 PRG:7C56 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF
.byte $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF ; CPU:$FC66 PRG:7C66 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF
.byte $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF ; CPU:$FC76 PRG:7C76 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF
.byte $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF ; CPU:$FC86 PRG:7C86 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF
.byte $00, $AF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $00, $FF, $00, $FF, $00 ; CPU:$FC96 PRG:7C96 00 AF 00 FF 00 FF 00 FF 00 FF 00 00 FF 00 FF 00
.byte $FF, $00, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $00, $FF, $FF, $FF, $00 ; CPU:$FCA6 PRG:7CA6 FF 00 FF FF FF FF FF FF FF FF FF 00 FF FF FF 00
.byte $00, $00, $00, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00 ; CPU:$FCB6 PRG:7CB6 00 00 00 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00
.byte $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00 ; CPU:$FCC6 PRG:7CC6 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00
.byte $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $AF, $00, $FF, $00, $FF, $00 ; CPU:$FCD6 PRG:7CD6 FF 00 FF 00 FF 00 FF 00 FF 00 AF 00 FF 00 FF 00
.byte $FF, $00, $FF, $00, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $FF, $FF, $FF, $FF ; CPU:$FCE6 PRG:7CE6 FF 00 FF 00 00 FF 00 FF 00 FF 00 FF FF FF FF FF
.byte $FF, $FF, $FF, $FF, $00, $FF, $FF, $FF, $00, $00, $00, $00, $01, $01, $01, $01 ; CPU:$FCF6 PRG:7CF6 FF FF FF FF 00 FF FF FF 00 00 00 00 01 01 01 01
.byte $09, $2D, $01, $01, $08, $01, $01, $01, $01, $01, $4C, $43, $FD ; CPU:$FD06 PRG:7D06 09 2D 01 01 08 01 01 01 01 01 4C 43 FD
; -----------------------------------------------------------------------------
; Routine: Sub_FD13
; Global: Branch target inside Sub: taken when FD13.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD13:
jmp Sub_FD85 ; CPU:$FD13 PRG:7D13 4C 85 FD
; -----------------------------------------------------------------------------
; Routine: Label_FD16
; Global: Branch target inside Label: taken when FD16.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_FD16:
jmp Sub_FD9C ; CPU:$FD16 PRG:7D16 4C 9C FD
; -----------------------------------------------------------------------------
; Routine: Sub_FD19
; Global: Branch target inside Sub: taken when FD19.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD19:
jmp Reset_OnZero ; CPU:$FD19 PRG:7D19 4C C8 FD
; -----------------------------------------------------------------------------
; Routine: Sub_FD1C
; Global: Branch target inside Sub: taken when FD1C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD1C:
jmp Sub_FDD1 ; CPU:$FD1C PRG:7D1C 4C D1 FD
; -----------------------------------------------------------------------------
; Routine: Sub_FD1F
; Global: Branch target inside Sub: taken when FD1F.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD1F:
jmp Sub_FDE3 ; CPU:$FD1F PRG:7D1F 4C E3 FD
; -----------------------------------------------------------------------------
; Routine: Sub_FD22
; Global: Branch target inside Sub: taken when FD22.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD22:
jmp Sub_FDF1 ; CPU:$FD22 PRG:7D22 4C F1 FD
; -----------------------------------------------------------------------------
; Routine: Label_FD25
; Global: Branch target inside Label: taken when FD25.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_FD25:
jmp Sub_FE0D ; CPU:$FD25 PRG:7D25 4C 0D FE
; -----------------------------------------------------------------------------
; Routine: Sub_FD28
; Global: Branch target inside Sub: taken when FD28.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD28:
jmp Sub_FE34 ; CPU:$FD28 PRG:7D28 4C 34 FE
; -----------------------------------------------------------------------------
; Routine: Sub_FD2B
; Global: Branch target inside Sub: taken when FD2B.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD2B:
jmp Sub_FE6D ; CPU:$FD2B PRG:7D2B 4C 6D FE
; -----------------------------------------------------------------------------
; Routine: Sub_FD2E
; Global: Branch target inside Sub: taken when FD2E.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD2E:
jmp Sub_FF2A ; CPU:$FD2E PRG:7D2E 4C 2A FF
; -----------------------------------------------------------------------------
; Routine: Sub_FD31
; Global: Branch target inside Sub: taken when FD31.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD31:
jmp Sub_FF3D ; CPU:$FD31 PRG:7D31 4C 3D FF
; -----------------------------------------------------------------------------
; Routine: Sub_FD34
; Global: Branch target inside Sub: taken when FD34.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD34:
jmp Sub_FF53 ; CPU:$FD34 PRG:7D34 4C 53 FF
; -----------------------------------------------------------------------------
; Routine: Sub_FD37
; Global: Branch target inside Sub: taken when FD37.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD37:
jmp Sub_FF5A ; CPU:$FD37 PRG:7D37 4C 5A FF
; -----------------------------------------------------------------------------
; Routine: Sub_FD3A
; Global: Branch target inside Sub: taken when FD3A.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD3A:
jmp Sub_FF65 ; CPU:$FD3A PRG:7D3A 4C 65 FF
; -----------------------------------------------------------------------------
; Routine: Label_FD3D
; Global: Branch target inside Label: taken when FD3D.
; Local: Part of Label.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Label_FD3D:
jmp Sub_FFC4 ; CPU:$FD3D PRG:7D3D 4C C4 FF
; -----------------------------------------------------------------------------
; Routine: Sub_FD40
; Global: Branch target inside Sub: taken when FD40.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD40:
jmp Sub_FFC4 ; CPU:$FD40 PRG:7D40 4C C4 FF
; -----------------------------------------------------------------------------
; Routine: Reset
; Global: Routine Reset.
; Local: Part of the routine it belongs to.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset:
sei ; CPU:$FD43 PRG:7D43 78
cld ; CPU:$FD44 PRG:7D44 D8
lda #$00 ; CPU:$FD45 PRG:7D45 A9 00
sta PPUCTRL ; CPU:$FD47 PRG:7D47 8D 00 20
sta PPUMASK ; CPU:$FD4A PRG:7D4A 8D 01 20
; -----------------------------------------------------------------------------
; Routine: Reset_OnNonnegative
; Global: Branch target inside Reset: taken when the tested value is not negative.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_OnNonnegative:
lda PPUSTATUS ; CPU:$FD4D PRG:7D4D AD 02 20
bpl Reset_OnNonnegative ; CPU:$FD50 PRG:7D50 10 FB
; -----------------------------------------------------------------------------
; Routine: Reset_OnNonnegative2
; Global: Branch target inside Reset: taken when OnNonnegative2.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_OnNonnegative2:
lda PPUSTATUS ; CPU:$FD52 PRG:7D52 AD 02 20
bpl Reset_OnNonnegative2 ; CPU:$FD55 PRG:7D55 10 FB
lda #$00 ; CPU:$FD57 PRG:7D57 A9 00
sta Zp0F ; CPU:$FD59 PRG:7D59 85 0F
sta Zp10 ; CPU:$FD5B PRG:7D5B 85 10
sta PPUSCROLL ; CPU:$FD5D PRG:7D5D 8D 05 20
sta PPUSCROLL ; CPU:$FD60 PRG:7D60 8D 05 20
lda #$80 ; CPU:$FD63 PRG:7D63 A9 80
sta JOY2 ; CPU:$FD65 PRG:7D65 8D 17 40
ldx #$FF ; CPU:$FD68 PRG:7D68 A2 FF
txs ; CPU:$FD6A PRG:7D6A 9A
jsr Sub_FD9C ; CPU:$FD6B PRG:7D6B 20 9C FD
jsr Sub_A9F1 ; CPU:$FD6E PRG:7D6E 20 F1 A9
lda #$90 ; CPU:$FD71 PRG:7D71 A9 90
sta PpuCtrlShadow ; CPU:$FD73 PRG:7D73 85 0D
sta PPUCTRL ; CPU:$FD75 PRG:7D75 8D 00 20
jsr Reset_OnZero ; CPU:$FD78 PRG:7D78 20 C8 FD
jsr Sub_FDA4 ; CPU:$FD7B PRG:7D7B 20 A4 FD
lda #$1E ; CPU:$FD7E PRG:7D7E A9 1E
sta PpuMaskShadow ; CPU:$FD80 PRG:7D80 85 0E
sta PPUMASK ; CPU:$FD82 PRG:7D82 8D 01 20
; -----------------------------------------------------------------------------
; Routine: Sub_FD85
; Global: Branch target inside Sub: taken when FD85.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD85:
jsr Reset_OnZero ; CPU:$FD85 PRG:7D85 20 C8 FD
jsr Sub_A9F4 ; CPU:$FD88 PRG:7D88 20 F4 A9
lda Zp12 ; CPU:$FD8B PRG:7D8B A5 12
asl a ; CPU:$FD8D PRG:7D8D 0A
tax ; CPU:$FD8E PRG:7D8E AA
lda $A9FD,x ; CPU:$FD8F PRG:7D8F BD FD A9
sta Zp04 ; CPU:$FD92 PRG:7D92 85 04
lda $A9FE,x ; CPU:$FD94 PRG:7D94 BD FE A9
sta Zp05 ; CPU:$FD97 PRG:7D97 85 05
jmp (Zp04) ; CPU:$FD99 PRG:7D99 6C 04 00
; -----------------------------------------------------------------------------
; Routine: Sub_FD9C
; Global: Branch target inside Sub: taken when FD9C.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FD9C:
lda #$00 ; CPU:$FD9C PRG:7D9C A9 00
sta Zp0C ; CPU:$FD9E PRG:7D9E 85 0C
jsr Sub_FDE3 ; CPU:$FDA0 PRG:7DA0 20 E3 FD
rts ; CPU:$FDA3 PRG:7DA3 60
; -----------------------------------------------------------------------------
; Routine: Sub_FDA4
; Global: Branch target inside Sub: taken when FDA4.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FDA4:
ldx #$10 ; CPU:$FDA4 PRG:7DA4 A2 10
ldy #$00 ; CPU:$FDA6 PRG:7DA6 A0 00
jsr Sub_FF53 ; CPU:$FDA8 PRG:7DA8 20 53 FF
lda PPUDATA ; CPU:$FDAB PRG:7DAB AD 07 20
lda #$00 ; CPU:$FDAE PRG:7DAE A9 00
ldx #$10 ; CPU:$FDB0 PRG:7DB0 A2 10
; -----------------------------------------------------------------------------
; Routine: Reset_OnNonzero
; Global: Branch target inside Reset: taken when the tested value is not zero.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_OnNonzero:
ora PPUDATA ; CPU:$FDB2 PRG:7DB2 0D 07 20
dex ; CPU:$FDB5 PRG:7DB5 CA
bne Reset_OnNonzero ; CPU:$FDB6 PRG:7DB6 D0 FA
; -----------------------------------------------------------------------------
; Routine: Reset_OnNonzero2
; Global: Branch target inside Reset: taken when OnNonzero2.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_OnNonzero2:
asl a ; CPU:$FDB8 PRG:7DB8 0A
beq Reset_Loop ; CPU:$FDB9 PRG:7DB9 F0 05
bcc Reset_OnNonzero2 ; CPU:$FDBB PRG:7DBB 90 FB
inx ; CPU:$FDBD PRG:7DBD E8
bne Reset_OnNonzero2 ; CPU:$FDBE PRG:7DBE D0 F8
; -----------------------------------------------------------------------------
; Routine: Reset_Loop
; Global: Branch target inside Reset: taken when the loop repeats.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop:
cpx #$04 ; CPU:$FDC0 PRG:7DC0 E0 04
bcs Reset_Loop2 ; CPU:$FDC2 PRG:7DC2 B0 01
rts ; CPU:$FDC4 PRG:7DC4 60
; -----------------------------------------------------------------------------
; Routine: Reset_Loop2
; Global: Branch target inside Reset: taken when Loop2.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop2:
jmp Reset ; CPU:$FDC5 PRG:7DC5 4C 43 FD
; -----------------------------------------------------------------------------
; Routine: Reset_OnZero
; Global: Branch target inside Reset: taken when the tested value is zero.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_OnZero:
lda Zp0C ; CPU:$FDC8 PRG:7DC8 A5 0C
beq Reset_OnZero ; CPU:$FDCA PRG:7DCA F0 FC
lda #$00 ; CPU:$FDCC PRG:7DCC A9 00
sta Zp0C ; CPU:$FDCE PRG:7DCE 85 0C
rts ; CPU:$FDD0 PRG:7DD0 60
; -----------------------------------------------------------------------------
; Routine: Sub_FDD1
; Global: Branch target inside Sub: taken when FDD1.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FDD1:
lda PpuCtrlShadow ; CPU:$FDD1 PRG:7DD1 A5 0D
and #$7F ; CPU:$FDD3 PRG:7DD3 29 7F
sta PPUCTRL ; CPU:$FDD5 PRG:7DD5 8D 00 20
; -----------------------------------------------------------------------------
; Routine: Reset_OnNonnegative3
; Global: Branch target inside Reset: taken when OnNonnegative3.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_OnNonnegative3:
lda PPUSTATUS ; CPU:$FDD8 PRG:7DD8 AD 02 20
bpl Reset_OnNonnegative3 ; CPU:$FDDB PRG:7DDB 10 FB
lda PpuCtrlShadow ; CPU:$FDDD PRG:7DDD A5 0D
sta PPUCTRL ; CPU:$FDDF PRG:7DDF 8D 00 20
rts ; CPU:$FDE2 PRG:7DE2 60
; -----------------------------------------------------------------------------
; Routine: Sub_FDE3
; Global: Branch target inside Sub: taken when FDE3.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FDE3:
lda #$00 ; CPU:$FDE3 PRG:7DE3 A9 00
jsr Sub_FE0D ; CPU:$FDE5 PRG:7DE5 20 0D FE
lda #$01 ; CPU:$FDE8 PRG:7DE8 A9 01
jsr Sub_FE0D ; CPU:$FDEA PRG:7DEA 20 0D FE
jsr Sub_FDF1 ; CPU:$FDED PRG:7DED 20 F1 FD
rts ; CPU:$FDF0 PRG:7DF0 60
; -----------------------------------------------------------------------------
; Routine: Sub_FDF1
; Global: Branch target inside Sub: taken when FDF1.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FDF1:
ldx #$00 ; CPU:$FDF1 PRG:7DF1 A2 00
ldy #$40 ; CPU:$FDF3 PRG:7DF3 A0 40
; -----------------------------------------------------------------------------
; Routine: Reset_OnNonzero3
; Global: Branch target inside Reset: taken when OnNonzero3.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_OnNonzero3:
lda #$F0 ; CPU:$FDF5 PRG:7DF5 A9 F0
sta $0700,x ; CPU:$FDF7 PRG:7DF7 9D 00 07
lda #$00 ; CPU:$FDFA PRG:7DFA A9 00
inx ; CPU:$FDFC PRG:7DFC E8
sta $0700,x ; CPU:$FDFD PRG:7DFD 9D 00 07
inx ; CPU:$FE00 PRG:7E00 E8
sta $0700,x ; CPU:$FE01 PRG:7E01 9D 00 07
inx ; CPU:$FE04 PRG:7E04 E8
sta $0700,x ; CPU:$FE05 PRG:7E05 9D 00 07
inx ; CPU:$FE08 PRG:7E08 E8
dey ; CPU:$FE09 PRG:7E09 88
bne Reset_OnNonzero3 ; CPU:$FE0A PRG:7E0A D0 E9
rts ; CPU:$FE0C PRG:7E0C 60
; -----------------------------------------------------------------------------
; Routine: Sub_FE0D
; Global: Branch target inside Sub: taken when FE0D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FE0D:
ldy #$00 ; CPU:$FE0D PRG:7E0D A0 00
ldx #$20 ; CPU:$FE0F PRG:7E0F A2 20
cmp #$00 ; CPU:$FE11 PRG:7E11 C9 00
beq Reset_OnNonzero4 ; CPU:$FE13 PRG:7E13 F0 02
ldx #$28 ; CPU:$FE15 PRG:7E15 A2 28
; -----------------------------------------------------------------------------
; Routine: Reset_OnNonzero4
; Global: Branch target inside Reset: taken when OnNonzero4.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_OnNonzero4:
tya ; CPU:$FE17 PRG:7E17 98
and #$1F ; CPU:$FE18 PRG:7E18 29 1F
bne Reset_Loop3 ; CPU:$FE1A PRG:7E1A D0 03
jsr Sub_FF53 ; CPU:$FE1C PRG:7E1C 20 53 FF
; -----------------------------------------------------------------------------
; Routine: Reset_Loop3
; Global: Branch target inside Reset: taken when Loop3.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop3:
lda #$00 ; CPU:$FE1F PRG:7E1F A9 00
sta PPUDATA ; CPU:$FE21 PRG:7E21 8D 07 20
iny ; CPU:$FE24 PRG:7E24 C8
bne Reset_Loop4 ; CPU:$FE25 PRG:7E25 D0 01
inx ; CPU:$FE27 PRG:7E27 E8
; -----------------------------------------------------------------------------
; Routine: Reset_Loop4
; Global: Branch target inside Reset: taken when Loop4.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop4:
txa ; CPU:$FE28 PRG:7E28 8A
and #$03 ; CPU:$FE29 PRG:7E29 29 03
bne Reset_OnNonzero4 ; CPU:$FE2B PRG:7E2B D0 EA
tya ; CPU:$FE2D PRG:7E2D 98
bne Reset_OnNonzero4 ; CPU:$FE2E PRG:7E2E D0 E7
jsr Sub_FF5A ; CPU:$FE30 PRG:7E30 20 5A FF
rts ; CPU:$FE33 PRG:7E33 60
; -----------------------------------------------------------------------------
; Routine: Sub_FE34
; Global: Branch target inside Sub: taken when FE34.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FE34:
pha ; CPU:$FE34 PRG:7E34 48
jsr Sub_FDD1 ; CPU:$FE35 PRG:7E35 20 D1 FD
pla ; CPU:$FE38 PRG:7E38 68
sty Zp04 ; CPU:$FE39 PRG:7E39 84 04
stx Zp05 ; CPU:$FE3B PRG:7E3B 86 05
ldx #$3F ; CPU:$FE3D PRG:7E3D A2 3F
ldy #$00 ; CPU:$FE3F PRG:7E3F A0 00
cmp #$00 ; CPU:$FE41 PRG:7E41 C9 00
beq Reset_Loop5 ; CPU:$FE43 PRG:7E43 F0 04
ldx #$3F ; CPU:$FE45 PRG:7E45 A2 3F
ldy #$10 ; CPU:$FE47 PRG:7E47 A0 10
; -----------------------------------------------------------------------------
; Routine: Reset_Loop5
; Global: Branch target inside Reset: taken when Loop5.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop5:
jsr Sub_FF53 ; CPU:$FE49 PRG:7E49 20 53 FF
ldy #$00 ; CPU:$FE4C PRG:7E4C A0 00
ldx #$10 ; CPU:$FE4E PRG:7E4E A2 10
; -----------------------------------------------------------------------------
; Routine: Reset_OnNonzero5
; Global: Branch target inside Reset: taken when OnNonzero5.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_OnNonzero5:
lda (Zp04),y ; CPU:$FE50 PRG:7E50 B1 04
sta PPUDATA ; CPU:$FE52 PRG:7E52 8D 07 20
iny ; CPU:$FE55 PRG:7E55 C8
dex ; CPU:$FE56 PRG:7E56 CA
bne Reset_OnNonzero5 ; CPU:$FE57 PRG:7E57 D0 F7
lda #$3F ; CPU:$FE59 PRG:7E59 A9 3F
sta PPUADDR ; CPU:$FE5B PRG:7E5B 8D 06 20
lda #$00 ; CPU:$FE5E PRG:7E5E A9 00
sta PPUADDR ; CPU:$FE60 PRG:7E60 8D 06 20
sta PPUADDR ; CPU:$FE63 PRG:7E63 8D 06 20
sta PPUADDR ; CPU:$FE66 PRG:7E66 8D 06 20
jsr Sub_FF5A ; CPU:$FE69 PRG:7E69 20 5A FF
rts ; CPU:$FE6C PRG:7E6C 60
; -----------------------------------------------------------------------------
; Routine: Sub_FE6D
; Global: Branch target inside Sub: taken when FE6D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FE6D:
ldy #$01 ; CPU:$FE6D PRG:7E6D A0 01
sty JOY1 ; CPU:$FE6F PRG:7E6F 8C 16 40
dey ; CPU:$FE72 PRG:7E72 88
sty JOY1 ; CPU:$FE73 PRG:7E73 8C 16 40
ldx #$08 ; CPU:$FE76 PRG:7E76 A2 08
; -----------------------------------------------------------------------------
; Routine: Reset_OnNonzero6
; Global: Branch target inside Reset: taken when OnNonzero6.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_OnNonzero6:
lda JOY1 ; CPU:$FE78 PRG:7E78 AD 16 40
ror a ; CPU:$FE7B PRG:7E7B 6A
bcs Reset_Loop6 ; CPU:$FE7C PRG:7E7C B0 01
ror a ; CPU:$FE7E PRG:7E7E 6A
; -----------------------------------------------------------------------------
; Routine: Reset_Loop6
; Global: Branch target inside Reset: taken when Loop6.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop6:
ror Zp00 ; CPU:$FE7F PRG:7E7F 66 00
lda JOY2 ; CPU:$FE81 PRG:7E81 AD 17 40
ror a ; CPU:$FE84 PRG:7E84 6A
bcs Reset_Loop7 ; CPU:$FE85 PRG:7E85 B0 01
ror a ; CPU:$FE87 PRG:7E87 6A
; -----------------------------------------------------------------------------
; Routine: Reset_Loop7
; Global: Branch target inside Reset: taken when Loop7.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop7:
ror Zp01 ; CPU:$FE88 PRG:7E88 66 01
dex ; CPU:$FE8A PRG:7E8A CA
bne Reset_OnNonzero6 ; CPU:$FE8B PRG:7E8B D0 EB
lda Zp00 ; CPU:$FE8D PRG:7E8D A5 00
sta Zp15 ; CPU:$FE8F PRG:7E8F 85 15
ldy #$00 ; CPU:$FE91 PRG:7E91 A0 00
ldx Zp00 ; CPU:$FE93 PRG:7E93 A6 00
txa ; CPU:$FE95 PRG:7E95 8A
and #$10 ; CPU:$FE96 PRG:7E96 29 10
beq Reset_Loop8 ; CPU:$FE98 PRG:7E98 F0 13
ldy #$02 ; CPU:$FE9A PRG:7E9A A0 02
txa ; CPU:$FE9C PRG:7E9C 8A
and #$80 ; CPU:$FE9D PRG:7E9D 29 80
bne Reset_Loop11 ; CPU:$FE9F PRG:7E9F D0 35
ldy #$08 ; CPU:$FEA1 PRG:7EA1 A0 08
txa ; CPU:$FEA3 PRG:7EA3 8A
and #$40 ; CPU:$FEA4 PRG:7EA4 29 40
bne Reset_Loop11 ; CPU:$FEA6 PRG:7EA6 D0 2E
ldy #$01 ; CPU:$FEA8 PRG:7EA8 A0 01
jmp Reset_Loop11 ; CPU:$FEAA PRG:7EAA 4C D6 FE
; -----------------------------------------------------------------------------
; Routine: Reset_Loop8
; Global: Branch target inside Reset: taken when Loop8.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop8:
txa ; CPU:$FEAD PRG:7EAD 8A
and #$20 ; CPU:$FEAE PRG:7EAE 29 20
beq Reset_Loop9 ; CPU:$FEB0 PRG:7EB0 F0 13
ldy #$04 ; CPU:$FEB2 PRG:7EB2 A0 04
txa ; CPU:$FEB4 PRG:7EB4 8A
and #$80 ; CPU:$FEB5 PRG:7EB5 29 80
bne Reset_Loop11 ; CPU:$FEB7 PRG:7EB7 D0 1D
ldy #$06 ; CPU:$FEB9 PRG:7EB9 A0 06
txa ; CPU:$FEBB PRG:7EBB 8A
and #$40 ; CPU:$FEBC PRG:7EBC 29 40
bne Reset_Loop11 ; CPU:$FEBE PRG:7EBE D0 16
ldy #$05 ; CPU:$FEC0 PRG:7EC0 A0 05
jmp Reset_Loop11 ; CPU:$FEC2 PRG:7EC2 4C D6 FE
; -----------------------------------------------------------------------------
; Routine: Reset_Loop9
; Global: Branch target inside Reset: taken when Loop9.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop9:
txa ; CPU:$FEC5 PRG:7EC5 8A
and #$80 ; CPU:$FEC6 PRG:7EC6 29 80
beq Reset_Loop10 ; CPU:$FEC8 PRG:7EC8 F0 05
ldy #$03 ; CPU:$FECA PRG:7ECA A0 03
jmp Reset_Loop11 ; CPU:$FECC PRG:7ECC 4C D6 FE
; -----------------------------------------------------------------------------
; Routine: Reset_Loop10
; Global: Branch target inside Reset: taken when Loop10.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop10:
txa ; CPU:$FECF PRG:7ECF 8A
and #$40 ; CPU:$FED0 PRG:7ED0 29 40
beq Reset_Loop11 ; CPU:$FED2 PRG:7ED2 F0 02
ldy #$07 ; CPU:$FED4 PRG:7ED4 A0 07
; -----------------------------------------------------------------------------
; Routine: Reset_Loop11
; Global: Branch target inside Reset: taken when Loop11.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop11:
sty Zp16 ; CPU:$FED6 PRG:7ED6 84 16
txa ; CPU:$FED8 PRG:7ED8 8A
and #$0F ; CPU:$FED9 PRG:7ED9 29 0F
sta Zp18 ; CPU:$FEDB PRG:7EDB 85 18
ldy #$00 ; CPU:$FEDD PRG:7EDD A0 00
ldx Zp01 ; CPU:$FEDF PRG:7EDF A6 01
txa ; CPU:$FEE1 PRG:7EE1 8A
and #$10 ; CPU:$FEE2 PRG:7EE2 29 10
beq Reset_Loop12 ; CPU:$FEE4 PRG:7EE4 F0 13
ldy #$02 ; CPU:$FEE6 PRG:7EE6 A0 02
txa ; CPU:$FEE8 PRG:7EE8 8A
and #$80 ; CPU:$FEE9 PRG:7EE9 29 80
bne Reset_Loop15 ; CPU:$FEEB PRG:7EEB D0 35
ldy #$08 ; CPU:$FEED PRG:7EED A0 08
txa ; CPU:$FEEF PRG:7EEF 8A
and #$40 ; CPU:$FEF0 PRG:7EF0 29 40
bne Reset_Loop15 ; CPU:$FEF2 PRG:7EF2 D0 2E
ldy #$01 ; CPU:$FEF4 PRG:7EF4 A0 01
jmp Reset_Loop15 ; CPU:$FEF6 PRG:7EF6 4C 22 FF
; -----------------------------------------------------------------------------
; Routine: Reset_Loop12
; Global: Branch target inside Reset: taken when Loop12.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop12:
txa ; CPU:$FEF9 PRG:7EF9 8A
and #$20 ; CPU:$FEFA PRG:7EFA 29 20
beq Reset_Loop13 ; CPU:$FEFC PRG:7EFC F0 13
ldy #$04 ; CPU:$FEFE PRG:7EFE A0 04
txa ; CPU:$FF00 PRG:7F00 8A
and #$80 ; CPU:$FF01 PRG:7F01 29 80
bne Reset_Loop15 ; CPU:$FF03 PRG:7F03 D0 1D
ldy #$06 ; CPU:$FF05 PRG:7F05 A0 06
txa ; CPU:$FF07 PRG:7F07 8A
and #$40 ; CPU:$FF08 PRG:7F08 29 40
bne Reset_Loop15 ; CPU:$FF0A PRG:7F0A D0 16
ldy #$05 ; CPU:$FF0C PRG:7F0C A0 05
jmp Reset_Loop15 ; CPU:$FF0E PRG:7F0E 4C 22 FF
; -----------------------------------------------------------------------------
; Routine: Reset_Loop13
; Global: Branch target inside Reset: taken when Loop13.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop13:
txa ; CPU:$FF11 PRG:7F11 8A
and #$80 ; CPU:$FF12 PRG:7F12 29 80
beq Reset_Loop14 ; CPU:$FF14 PRG:7F14 F0 05
ldy #$03 ; CPU:$FF16 PRG:7F16 A0 03
jmp Reset_Loop15 ; CPU:$FF18 PRG:7F18 4C 22 FF
; -----------------------------------------------------------------------------
; Routine: Reset_Loop14
; Global: Branch target inside Reset: taken when Loop14.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop14:
txa ; CPU:$FF1B PRG:7F1B 8A
and #$40 ; CPU:$FF1C PRG:7F1C 29 40
beq Reset_Loop15 ; CPU:$FF1E PRG:7F1E F0 02
ldy #$07 ; CPU:$FF20 PRG:7F20 A0 07
; -----------------------------------------------------------------------------
; Routine: Reset_Loop15
; Global: Branch target inside Reset: taken when Loop15.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop15:
sty Zp17 ; CPU:$FF22 PRG:7F22 84 17
txa ; CPU:$FF24 PRG:7F24 8A
and #$0F ; CPU:$FF25 PRG:7F25 29 0F
sta Zp19 ; CPU:$FF27 PRG:7F27 85 19
rts ; CPU:$FF29 PRG:7F29 60
; -----------------------------------------------------------------------------
; Routine: Sub_FF2A
; Global: Branch target inside Sub: taken when FF2A.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FF2A:
lda PpuCtrlShadow ; CPU:$FF2A PRG:7F2A A5 0D
and #$7F ; CPU:$FF2C PRG:7F2C 29 7F
sta PpuCtrlShadow ; CPU:$FF2E PRG:7F2E 85 0D
jsr Sub_FDD1 ; CPU:$FF30 PRG:7F30 20 D1 FD
lda PpuMaskShadow ; CPU:$FF33 PRG:7F33 A5 0E
and #$E7 ; CPU:$FF35 PRG:7F35 29 E7
sta PpuMaskShadow ; CPU:$FF37 PRG:7F37 85 0E
sta PPUMASK ; CPU:$FF39 PRG:7F39 8D 01 20
rts ; CPU:$FF3C PRG:7F3C 60
; -----------------------------------------------------------------------------
; Routine: Sub_FF3D
; Global: Branch target inside Sub: taken when FF3D.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FF3D:
lda PpuCtrlShadow ; CPU:$FF3D PRG:7F3D A5 0D
ora #$80 ; CPU:$FF3F PRG:7F3F 09 80
sta PpuCtrlShadow ; CPU:$FF41 PRG:7F41 85 0D
jsr Sub_FDD1 ; CPU:$FF43 PRG:7F43 20 D1 FD
jsr Reset_OnZero ; CPU:$FF46 PRG:7F46 20 C8 FD
lda PpuMaskShadow ; CPU:$FF49 PRG:7F49 A5 0E
ora #$18 ; CPU:$FF4B PRG:7F4B 09 18
sta PpuMaskShadow ; CPU:$FF4D PRG:7F4D 85 0E
sta PPUMASK ; CPU:$FF4F PRG:7F4F 8D 01 20
rts ; CPU:$FF52 PRG:7F52 60
; -----------------------------------------------------------------------------
; Routine: Sub_FF53
; Global: Branch target inside Sub: taken when FF53.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FF53:
stx PPUADDR ; CPU:$FF53 PRG:7F53 8E 06 20
sty PPUADDR ; CPU:$FF56 PRG:7F56 8C 06 20
rts ; CPU:$FF59 PRG:7F59 60
; -----------------------------------------------------------------------------
; Routine: Sub_FF5A
; Global: Branch target inside Sub: taken when FF5A.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FF5A:
lda Zp0F ; CPU:$FF5A PRG:7F5A A5 0F
sta PPUSCROLL ; CPU:$FF5C PRG:7F5C 8D 05 20
lda Zp10 ; CPU:$FF5F PRG:7F5F A5 10
sta PPUSCROLL ; CPU:$FF61 PRG:7F61 8D 05 20
rts ; CPU:$FF64 PRG:7F64 60
; -----------------------------------------------------------------------------
; Routine: Sub_FF65
; Global: Branch target inside Sub: taken when FF65.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FF65:
sty Zp04 ; CPU:$FF65 PRG:7F65 84 04
stx Zp05 ; CPU:$FF67 PRG:7F67 86 05
lda Zp04 ; CPU:$FF69 PRG:7F69 A5 04
clc ; CPU:$FF6B PRG:7F6B 18
adc #$02 ; CPU:$FF6C PRG:7F6C 69 02
sta Zp06 ; CPU:$FF6E PRG:7F6E 85 06
lda Zp05 ; CPU:$FF70 PRG:7F70 A5 05
adc #$00 ; CPU:$FF72 PRG:7F72 69 00
sta Zp07 ; CPU:$FF74 PRG:7F74 85 07
ldy #$00 ; CPU:$FF76 PRG:7F76 A0 00
lda (Zp04),y ; CPU:$FF78 PRG:7F78 B1 04
sta Zp08 ; CPU:$FF7A PRG:7F7A 85 08
iny ; CPU:$FF7C PRG:7F7C C8
lda (Zp04),y ; CPU:$FF7D PRG:7F7D B1 04
sta Zp09 ; CPU:$FF7F PRG:7F7F 85 09
tax ; CPU:$FF81 PRG:7F81 AA
ldy Zp08 ; CPU:$FF82 PRG:7F82 A4 08
; -----------------------------------------------------------------------------
; Routine: Sub_FF84
; Global: Branch target inside Sub: taken when FF84.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FF84:
jsr Sub_FF53 ; CPU:$FF84 PRG:7F84 20 53 FF
ldy #$00 ; CPU:$FF87 PRG:7F87 A0 00
; -----------------------------------------------------------------------------
; Routine: Sub_FF89
; Global: Branch target inside Sub: taken when FF89.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FF89:
lda (Zp06),y ; CPU:$FF89 PRG:7F89 B1 06
cmp #$FF ; CPU:$FF8B PRG:7F8B C9 FF
beq Reset_Loop17 ; CPU:$FF8D PRG:7F8D F0 31
cmp #$1F ; CPU:$FF8F PRG:7F8F C9 1F
beq Reset_Loop16 ; CPU:$FF91 PRG:7F91 F0 0A
sec ; CPU:$FF93 PRG:7F93 38
sbc #$20 ; CPU:$FF94 PRG:7F94 E9 20
sta PPUDATA ; CPU:$FF96 PRG:7F96 8D 07 20
iny ; CPU:$FF99 PRG:7F99 C8
jmp Sub_FF89 ; CPU:$FF9A PRG:7F9A 4C 89 FF
; -----------------------------------------------------------------------------
; Routine: Reset_Loop16
; Global: Branch target inside Reset: taken when Loop16.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop16:
jsr Sub_FF5A ; CPU:$FF9D PRG:7F9D 20 5A FF
iny ; CPU:$FFA0 PRG:7FA0 C8
tya ; CPU:$FFA1 PRG:7FA1 98
clc ; CPU:$FFA2 PRG:7FA2 18
adc Zp06 ; CPU:$FFA3 PRG:7FA3 65 06
sta Zp06 ; CPU:$FFA5 PRG:7FA5 85 06
lda #$00 ; CPU:$FFA7 PRG:7FA7 A9 00
adc Zp07 ; CPU:$FFA9 PRG:7FA9 65 07
sta Zp07 ; CPU:$FFAB PRG:7FAB 85 07
lda Zp08 ; CPU:$FFAD PRG:7FAD A5 08
clc ; CPU:$FFAF PRG:7FAF 18
adc #$20 ; CPU:$FFB0 PRG:7FB0 69 20
sta Zp08 ; CPU:$FFB2 PRG:7FB2 85 08
lda #$00 ; CPU:$FFB4 PRG:7FB4 A9 00
adc Zp09 ; CPU:$FFB6 PRG:7FB6 65 09
sta Zp09 ; CPU:$FFB8 PRG:7FB8 85 09
tax ; CPU:$FFBA PRG:7FBA AA
ldy Zp08 ; CPU:$FFBB PRG:7FBB A4 08
jmp Sub_FF84 ; CPU:$FFBD PRG:7FBD 4C 84 FF
; -----------------------------------------------------------------------------
; Routine: Reset_Loop17
; Global: Branch target inside Reset: taken when Loop17.
; Local: Part of Reset.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Reset_Loop17:
jsr Sub_FF5A ; CPU:$FFC0 PRG:7FC0 20 5A FF
rts ; CPU:$FFC3 PRG:7FC3 60
; -----------------------------------------------------------------------------
; Routine: Sub_FFC4
; Global: Branch target inside Sub: taken when FFC4.
; Local: Part of Sub.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
Sub_FFC4:
sta Zp12 ; CPU:$FFC4 PRG:7FC4 85 12
lda #$00 ; CPU:$FFC6 PRG:7FC6 A9 00
sta Zp13 ; CPU:$FFC8 PRG:7FC8 85 13
sta Zp14 ; CPU:$FFCA PRG:7FCA 85 14
rts ; CPU:$FFCC PRG:7FCC 60
; -----------------------------------------------------------------------------
; Routine: NmiHandler
; Global: Routine NmiHandler.
; Local: Part of the routine it belongs to.
; Parameters: none - the routine reads its state from the zero page.
; Returns: none - the result is left in the registers the caller reads.
; Clobbers: A, X, Y and the zero-page scratch it uses.
; -----------------------------------------------------------------------------
NmiHandler:
pha ; CPU:$FFCD PRG:7FCD 48
txa ; CPU:$FFCE PRG:7FCE 8A
pha ; CPU:$FFCF PRG:7FCF 48
tya ; CPU:$FFD0 PRG:7FD0 98
pha ; CPU:$FFD1 PRG:7FD1 48
lda #$00 ; CPU:$FFD2 PRG:7FD2 A9 00
sta OAMADDR ; CPU:$FFD4 PRG:7FD4 8D 03 20
lda #$07 ; CPU:$FFD7 PRG:7FD7 A9 07
sta OAMDMA ; CPU:$FFD9 PRG:7FD9 8D 14 40
lda PPUSTATUS ; CPU:$FFDC PRG:7FDC AD 02 20
jsr Sub_A9F7 ; CPU:$FFDF PRG:7FDF 20 F7 A9
lda #$FF ; CPU:$FFE2 PRG:7FE2 A9 FF
sta Zp0C ; CPU:$FFE4 PRG:7FE4 85 0C
inc Zp11 ; CPU:$FFE6 PRG:7FE6 E6 11
pla ; CPU:$FFE8 PRG:7FE8 68
tay ; CPU:$FFE9 PRG:7FE9 A8
pla ; CPU:$FFEA PRG:7FEA 68
tax ; CPU:$FFEB PRG:7FEB AA
pla ; CPU:$FFEC PRG:7FEC 68
rti ; CPU:$FFED PRG:7FED 40
; ---- data $FFEE-$FFFF (18 bytes) ----
.byte $20, $FA, $A9, $40, $40, $FF, $FF, $00, $FF, $D0, $00, $7B, $CD, $FF, $43, $FD ; CPU:$FFEE PRG:7FEE 20 FA A9 40 40 FF FF 00 FF D0 00 7B CD FF 43 FD
.byte $43, $FD ; CPU:$FFFE PRG:7FFE 43 FD