a2d/desktop/s1_aux1.s
2017-09-28 08:45:05 -07:00

15577 lines
299 KiB
ArmAsm

.org $4000
; da65 V2.16 - Git f5e9b401
; Created: 2017-09-27 19:43:21
; Input file: orig/DESKTOP2_s1_aux1
; Page: 1
.setcpu "65C02"
L0000 := $0000
L000C := $000C
L0030 := $0030
L003F := $003F
L0080 := $0080
L0082 := $0082
L0083 := $0083
L0088 := $0088
L00A0 := $00A0
L00C7 := $00C7
L0400 := $0400
L0465 := $0465
L193A := $193A
L2020 := $2020
L202C := $202C
L202D := $202D
L2061 := $2061
L2065 := $2065
L206C := $206C
L2079 := $2079
L2E2E := $2E2E
L2E41 := $2E41
L2E6C := $2E6C
L3028 := $3028
L3135 := $3135
L353F := $353F
L3632 := $3632
L3F01 := $3F01
RAMRDOFF := $C002
RAMRDON := $C003
RAMWRTOFF := $C004
RAMWRTON := $C005
ALTZPOFF := $C008
ALTZPON := $C009
LCBANK1 := $C08B
AUXMOVE := $C311
XFER := $C314
LD000 := $D000
LD05E := $D05E
LD2D0 := $D2D0
FSUB := $E7A7
FADD := $E7BE
FMULT := $E97F
FDIV := $EA66
ROUND := $EB2B
FLOAT := $EB93
FIN := $EC4A
FOUT := $ED34
COUT := $FDED
LFFFF := $FFFF
A2D: lda $C054
sta $C001
bit L5F1B
bpl L4022
ldx #$7F
L400D: lda L0080,x
sta L5F72,x
dex
bpl L400D
ldx #$0B
L4017: lda L5F66,x
sta $F4,x
dex
bpl L4017
L401F: jsr L40BD
L4022: pla
sta L0080
clc
adc #$03
tax
pla
sta $81
adc #$00
pha
txa
pha
tsx
stx L5F1D
ldy #$01
lda (L0080),y
asl a
tax
lda L40E5,x
L403F := * + 1
L4040 := * + 2
sta L4088
lda L40E6,x
sta L4089
iny
lda (L0080),y
pha
iny
lda (L0080),y
sta $81
pla
sta L0080
ldy L4184,x
bpl L4076
txa
pha
tya
pha
lda L0080
pha
lda $81
pha
bit L633F
bpl L406A
jsr L40D4
L406A: pla
sta $81
pla
sta L0080
pla
and #$7F
tay
pla
tax
L4076: lda L4183,x
beq L4087
sta L4082
dey
L407F: lda (L0080),y
L4082 := * + 1
sta $FF,y
dey
bpl L407F
L4087:
L4088 := * + 1
L4089 := * + 2
jsr LFFFF
L408A: bit L633F
bpl L4092
jsr L40DA
L4092: bit L5F1B
bpl L40AE
jsr L40C8
ldx #$0B
L409C: lda $F4,x
sta L5F66,x
dex
bpl L409C
ldx #$7F
L40A6: lda L5F72,x
sta L0080,x
dex
L40AC: bpl L40A6
L40AE: lda #$00
rts
L40B1: pha
jsr L408A
pla
ldx L5F1D
txs
ldy #$FF
L40BC: rts
L40BD: ldy #$23
L40BF: lda ($F4),y
sta $D0,y
dey
bpl L40BF
rts
L40C8: ldy #$23
L40CA: lda $D0,y
sta ($F4),y
dey
bpl L40CA
rts
L40D3: brk
L40D4: dec L40D3
jmp L625A
L40DA: bit L40D3
bpl L40BC
inc L40D3
jmp L6233
L40E5: .byte $B0
L40E6: .byte $40,$51,$5E,$7B,$5E,$C4,$5E,$9C
.byte $5E,$B4,$5E,$8E,$50,$AF,$4D,$8F
.byte $4F,$B0,$40,$B0,$40,$6A,$58,$B0
.byte $40,$42,$57,$B0,$40,$63,$57,$76
.byte $57,$40,$50,$E5,$4F,$51,$50,$6A
.byte $51,$7E,$53,$D6,$56,$7A,$53,$DC
.byte $58,$38,$59,$CF,$5E,$DE,$5E,$0A
.byte $5F,$41
L4120: .byte $63,$A5,$64,$D2,$64,$B3,$65,$27
.byte $84,$61,$7D,$47,$67,$7B,$60,$33
.byte $62,$5A,$62,$4E,$62,$0A,$63,$63
L4138: .byte $66,$D7,$65,$D8,$67,$D4,$65,$0F
.byte $66,$14,$68,$CD,$6E,$26,$69,$DB
.byte $6B,$60,$6B,$1D,$6B,$CB,$6B,$A9
.byte $6B,$B5,$6B,$1C,$6F,$7B,$74,$15
.byte $78,$36,$78,$00,$75,$9C,$75,$1F
.byte $76,$32,$75,$8C,$75,$F9,$73,$39
.byte $76,$AC,$74,$4A,$76,$AC,$76
L416F: .byte $A8,$76,$F9,$78,$E1,$78,$C1,$7A
.byte $75,$7B,$AA,$7B,$24,$7D,$65,$79
.byte $B3,$51,$69,$7D
L4183: .byte $00
L4184: .byte $00,$00,$00,$82,$01,$00,$00,$D0
.byte $24,$00,$00,$D0,$10,$F0,$01,$E0
.byte $08,$E8,$02,$EE,$02,$00,$00,$F1
.byte $01,$A1,$04,$EA,$04,$A1,$84,$92
.byte $84,$92,$88,$9F,$88,$92,$08,$8A
.byte $10,$00,$80,$00,$80,$00,$00,$A1
.byte $03,$A1,$83,$82,$01,$82,$01,$00
.byte $00,$82,$0C,$00,$00,$82,$03,$82
.byte $02,$82,$02,$82,$01,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$82,$05,$82,$01,$82,$04,$00
.byte $00,$00,$00,$C7,$04,$C7,$01,$C7
.byte $02,$C7,$03,$C7,$03,$C7,$04,$00
.byte $00,$82,$01,$00,$00,$82,$01,$82
.byte $03,$82,$02,$82,$01,$82,$01,$EA
.byte $04,$00,$00,$82,$01,$00,$00,$82
.byte $05,$82,$05,$82,$05,$82,$05,$EA
.byte $04,$82,$03,$82,$05,$8C,$03,$8C
.byte $02,$8A,$10,$82
L4220: .byte $02
L4221: .byte $00,$02,$04,$06,$08,$0A,$0C,$0E
.byte $10,$12,$14,$16,$18,$1A,$1C,$1E
.byte $20,$22,$24,$26,$28,$2A,$2C,$2E
.byte $30,$32,$34,$36,$38,$3A,$3C,$3E
.byte $40,$42,$44,$46,$48,$4A,$4C,$4E
.byte $50,$52,$54,$56,$58,$5A,$5C,$5E
.byte $60,$62,$64,$66,$68,$6A,$6C,$6E
.byte $70,$72,$74,$76,$78,$7A,$7C,$7E
.byte $00,$02,$04,$06,$08,$0A,$0C,$0E
.byte $10,$12,$14,$16,$18,$1A,$1C,$1E
.byte $20,$22,$24,$26,$28,$2A,$2C,$2E
.byte $30,$32,$34,$36,$38,$3A,$3C,$3E
.byte $40,$42,$44,$46,$48,$4A,$4C,$4E
.byte $50,$52,$54,$56,$58,$5A,$5C,$5E
.byte $60,$62,$64,$66,$68,$6A,$6C,$6E
.byte $70,$72,$74,$76,$78,$7A,$7C,$7E
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $01,$01,$01,$01,$01,$01,$01,$01
.byte $01,$01,$01,$01,$01,$01,$01,$01
.byte $01,$01,$01,$01,$01,$01,$01,$01
.byte $01,$01,$01,$01,$01,$01,$01,$01
.byte $01,$01,$01,$01
L4305: .byte $01,$01,$01,$01,$01,$01,$01,$01
.byte $01,$01,$01,$01
L4311: .byte $01,$01
L4313: .byte $01,$01,$01,$01,$01,$01,$01,$01
.byte $01,$01,$01,$01,$01
ora (L0000,x)
tsb $08
tsb $1410
clc
trb $2420
plp
bit $3430
sec
bit L4440,x
pha
jmp L5450
cli
.byte $5C
rts
stz $68
jmp (L7470)
sei
jmp (L0400,x)
php
tsb $1410
clc
trb $2420
plp
bit $3430
sec
bit L4440,x
pha
jmp L5450
cli
.byte $5C
rts
stz $68
jmp (L7470)
sei
jmp (L0400,x)
php
tsb $1410
clc
trb $2420
plp
bit $3430
sec
bit L4440,x
pha
jmp L5450
cli
.byte $5C
rts
stz $68
jmp (L7470)
sei
jmp (L0400,x)
php
tsb $1410
clc
trb $2420
plp
bit $3430
sec
bit L4440,x
pha
jmp L5450
cli
.byte $5C
rts
stz $68
jmp (L7470)
sei
jmp (L0000,x)
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
ora ($01,x)
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $02
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
L440D: .byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
.byte $03
L4420: .byte $03
brk
php
bpl L443D
jsr L3028
sec
rti
pha
bvc L4485
rts
pla
bvs L44A9
brk
php
bpl L444D
jsr L3028
sec
rti
pha
bvc L4495
L443D: rts
pla
.byte $70
L4440: sei
brk
php
bpl L445D
jsr L3028
sec
rti
pha
bvc L44A5
L444D: rts
pla
bvs L44C9
brk
php
bpl L446D
jsr L3028
sec
rti
pha
bvc L44B5
L445D: rts
pla
bvs L44D9
brk
php
bpl L447D
jsr L3028
sec
rti
pha
bvc L44C5
L446D: rts
pla
bvs L44E9
brk
php
bpl L448D
jsr L3028
sec
rti
pha
bvc L44D5
L447D: rts
pla
bvs L44F9
brk
php
bpl L449D
L4485: jsr L3028
sec
rti
pha
bvc L44E5
L448D: rts
pla
bvs L4509
brk
php
bpl L44AD
L4495: jsr L3028
sec
rti
pha
bvc L44F5
L449D: rts
pla
bvs L4519
.byte $00,$00,$00,$00
L44A5: .byte $00,$00,$00,$00
L44A9: .byte $00,$00,$00,$00
L44AD: .byte $00,$00,$00,$00,$01,$01,$01,$01
L44B5: .byte $01,$01,$01,$01,$01,$01,$01,$01
.byte $01,$01,$01,$01,$02,$02,$02,$02
L44C5: .byte $02,$02,$02,$02
L44C9: .byte $02,$02,$02,$02,$02,$02,$02,$02
.byte $03,$03,$03,$03
L44D5: .byte $03,$03,$03,$03
L44D9: .byte $03,$03,$03,$03,$03,$03,$03,$03
.byte $04,$04,$04,$04
L44E5: .byte $04,$04,$04,$04
L44E9: .byte $04,$04,$04,$04,$04,$04,$04,$04
.byte $05,$05,$05,$05
L44F5: .byte $05,$05,$05,$05
L44F9: .byte $05,$05,$05,$05,$05,$05,$05,$05
.byte $06,$06,$06,$06
L4505: .byte $06,$06,$06,$06
L4509: .byte $06,$06,$06,$06,$06,$06,$06
L4510: .byte $06,$07,$07,$07,$07,$07,$07,$07
.byte $07
L4519: .byte $07,$07,$07,$07,$07,$07,$07
L4520: .byte $07,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$10,$20,$30,$40,$50,$60
.byte $70,$00,$00,$00,$00,$00,$00,$00
.byte $00,$01,$01,$01,$01,$01,$01,$01
.byte $01,$02,$02,$02,$02,$02,$02,$02
.byte $02,$03,$03,$03,$03,$03,$03,$03
.byte $03,$04,$04,$04,$04,$04,$04,$04
.byte $04,$05,$05,$05,$05,$05,$05,$05
.byte $05,$06,$06,$06,$06,$06,$06,$06
.byte $06,$07,$07,$07,$07,$07,$07,$07
.byte $07,$08,$08,$08,$08,$08,$08,$08
.byte $08,$09,$09,$09,$09,$09,$09,$09
.byte $09,$0A,$0A,$0A,$0A,$0A,$0A,$0A
.byte $0A,$0B,$0B,$0B,$0B,$0B,$0B,$0B
.byte $0B,$0C,$0C,$0C,$0C,$0C,$0C,$0C
.byte $0C,$0D,$0D,$0D,$0D,$0D,$0D,$0D
.byte $0D,$0E,$0E,$0E,$0E,$0E,$0E
L4617: .byte $0E,$0E,$0F,$0F,$0F,$0F,$0F
L461E: .byte $0F,$0F
L4620: .byte $0F,$00,$20,$40,$60,$00,$20,$40
.byte $60,$00,$20,$40,$60,$00,$20,$40
.byte $60,$00,$20,$40,$60,$00,$20,$40
.byte $60,$00
L463A: .byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $20,$40,$60,$00,$20,$40,$60,$00
.byte $00,$00,$00,$01,$01,$01,$01,$02
.byte $02,$02,$02,$03,$03,$03,$03,$04
.byte $04,$04,$04,$05,$05,$05,$05,$06
.byte $06,$06,$06,$07,$07,$07,$07,$08
.byte $08,$08,$08,$09,$09,$09,$09,$0A
.byte $0A,$0A,$0A,$0B,$0B,$0B,$0B,$0C
.byte $0C,$0C,$0C,$0D,$0D,$0D,$0D,$0E
.byte $0E,$0E,$0E,$0F,$0F,$0F,$0F,$10
.byte $10,$10,$10,$11,$11,$11,$11,$12
.byte $12,$12,$12,$13,$13,$13,$13,$14
.byte $14,$14,$14,$15,$15,$15,$15,$16
.byte $16,$16,$16,$17,$17,$17,$17,$18
.byte $18,$18,$18,$19,$19,$19,$19,$1A
.byte $1A,$1A
L470C: .byte $1A,$1B,$1B,$1B,$1B,$1C,$1C,$1C
.byte $1C,$1D,$1D,$1D,$1D,$1E,$1E,$1E
.byte $1E,$1F,$1F,$1F
L4720: .byte $1F,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$40,$00,$40,$00,$40,$00
.byte $40,$00,$00,$01,$01,$02,$02,$03
.byte $03,$04,$04,$05,$05,$06,$06,$07
.byte $07,$08,$08,$09,$09,$0A,$0A,$0B
.byte $0B,$0C,$0C,$0D,$0D,$0E,$0E,$0F
.byte $0F,$10,$10,$11,$11,$12,$12,$13
.byte $13,$14,$14,$15,$15,$16,$16,$17
.byte $17,$18,$18,$19,$19,$1A,$1A,$1B
.byte $1B,$1C,$1C,$1D,$1D,$1E,$1E,$1F
.byte $1F,$20,$20,$21,$21,$22,$22,$23
.byte $23,$24,$24,$25,$25,$26,$26,$27
.byte $27,$28,$28,$29,$29,$2A,$2A,$2B
.byte $2B,$2C,$2C,$2D,$2D,$2E,$2E,$2F
.byte $2F,$30,$30,$31,$31,$32,$32,$33
.byte $33,$34,$34,$35,$35,$36,$36,$37
.byte $37,$38,$38,$39,$39,$3A,$3A,$3B
.byte $3B,$3C,$3C,$3D,$3D,$3E,$3E,$3F
L4820: .byte $3F
L4821: .byte $00,$00,$00,$00
L4825: .byte $00,$00,$00
L4828: .byte $01,$01,$01,$01,$01,$01,$01,$02
.byte $02,$02,$02,$02,$02,$02,$03,$03
.byte $03,$03,$03,$03,$03,$04,$04,$04
.byte $04,$04,$04,$04,$05,$05,$05,$05
.byte $05,$05,$05,$06,$06,$06,$06,$06
.byte $06,$06,$07,$07,$07,$07,$07,$07
.byte $07,$08,$08,$08
L485C: .byte $08,$08,$08,$08,$09,$09,$09,$09
.byte $09,$09,$09,$0A,$0A,$0A,$0A,$0A
.byte $0A,$0A,$0B,$0B,$0B,$0B,$0B,$0B
.byte $0B,$0C,$0C,$0C,$0C,$0C,$0C,$0C
.byte $0D,$0D,$0D,$0D,$0D,$0D,$0D,$0E
.byte $0E,$0E,$0E,$0E,$0E,$0E,$0F,$0F
.byte $0F,$0F,$0F,$0F,$0F,$10,$10,$10
.byte $10,$10,$10,$10,$11,$11,$11,$11
.byte $11,$11,$11,$12,$12,$12,$12,$12
.byte $12,$12,$13,$13,$13,$13,$13,$13
.byte $13,$14,$14,$14,$14,$14,$14,$14
.byte $15,$15,$15,$15,$15,$15,$15,$16
.byte $16,$16,$16,$16,$16,$16,$17,$17
.byte $17,$17,$17,$17,$17,$18,$18,$18
.byte $18,$18,$18,$18,$19,$19,$19,$19
.byte $19,$19,$19,$1A,$1A,$1A,$1A,$1A
.byte $1A,$1A,$1B,$1B,$1B,$1B,$1B,$1B
.byte $1B,$1C,$1C,$1C,$1C,$1C,$1C,$1C
.byte $1D,$1D,$1D,$1D,$1D,$1D,$1D,$1E
.byte $1E,$1E,$1E,$1E,$1E,$1E,$1F,$1F
.byte $1F,$1F,$1F,$1F,$1F,$20,$20,$20
.byte $20,$20,$20,$20,$21,$21,$21,$21
.byte $21,$21,$21,$22,$22,$22,$22,$22
.byte $22,$22,$23,$23,$23,$23,$23,$23
.byte $23,$24,$24,$24
L4920: .byte $24
L4921: .byte $00,$01,$02,$03
L4925: .byte $04,$05,$06,$00,$01,$02,$03,$04
.byte $05,$06,$00,$01,$02,$03,$04,$05
.byte $06,$00,$01,$02,$03,$04,$05,$06
.byte $00,$01,$02,$03,$04,$05,$06,$00
.byte $01,$02,$03,$04,$05,$06,$00,$01
.byte $02,$03,$04,$05,$06,$00,$01,$02
.byte $03,$04,$05,$06,$00,$01,$02,$03
.byte $04,$05,$06,$00,$01,$02,$03,$04
.byte $05,$06,$00,$01,$02,$03,$04,$05
.byte $06,$00,$01,$02,$03,$04,$05,$06
.byte $00,$01,$02,$03,$04,$05,$06,$00
.byte $01,$02,$03,$04,$05,$06,$00,$01
.byte $02,$03,$04,$05,$06,$00,$01,$02
.byte $03,$04,$05,$06,$00,$01,$02,$03
.byte $04,$05,$06,$00,$01,$02,$03,$04
L499D: .byte $05,$06,$00,$01,$02,$03,$04,$05
.byte $06,$00,$01,$02,$03,$04,$05,$06
.byte $00,$01,$02,$03,$04,$05,$06,$00
.byte $01,$02,$03,$04,$05,$06,$00,$01
.byte $02,$03,$04,$05,$06,$00,$01,$02
.byte $03,$04,$05,$06,$00,$01,$02,$03
.byte $04,$05,$06,$00,$01,$02,$03,$04
.byte $05,$06,$00,$01,$02,$03,$04,$05
.byte $06,$00,$01,$02,$03,$04,$05,$06
.byte $00,$01,$02,$03,$04,$05,$06,$00
.byte $01,$02,$03,$04,$05,$06,$00,$01
.byte $02,$03,$04,$05,$06,$00,$01,$02
.byte $03,$04,$05,$06,$00,$01,$02,$03
.byte $04,$05,$06,$00,$01,$02,$03,$04
.byte $05,$06,$00,$01,$02,$03,$04,$05
.byte $06,$00,$01,$02,$03,$04,$05,$06
.byte $00,$01,$02
L4A20: .byte $03
L4A21: .byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $80,$80,$80,$80,$80,$80,$80,$80
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $80,$80,$80,$80,$80,$80,$80,$80
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $80,$80,$80,$80,$80,$80,$80,$80
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $80,$80,$80,$80,$80,$80,$80,$80
.byte $28,$28,$28,$28,$28,$28,$28,$28
.byte $A8,$A8,$A8,$A8,$A8,$A8,$A8,$A8
.byte $28,$28,$28,$28,$28,$28,$28,$28
.byte $A8,$A8,$A8,$A8,$A8,$A8,$A8,$A8
.byte $28,$28,$28,$28,$28,$28,$28,$28
.byte $A8,$A8,$A8,$A8,$A8,$A8,$A8,$A8
.byte $28,$28,$28,$28,$28,$28,$28,$28
.byte $A8,$A8,$A8,$A8,$A8,$A8,$A8,$A8
.byte $50,$50,$50,$50,$50,$50,$50,$50
.byte $D0,$D0,$D0,$D0,$D0,$D0,$D0,$D0
.byte $50,$50,$50,$50,$50,$50,$50,$50
.byte $D0,$D0,$D0,$D0,$D0,$D0,$D0,$D0
.byte $50,$50,$50,$50,$50,$50,$50,$50
.byte $D0,$D0,$D0,$D0,$D0,$D0,$D0,$D0
.byte $50,$50,$50,$50,$50,$50,$50,$50
.byte $D0,$D0,$D0,$D0,$D0,$D0,$D0,$D0
L4AE1: .byte $00,$04,$08,$0C,$10,$14,$18,$1C
.byte $00,$04,$08,$0C,$10,$14,$18,$1C
.byte $01,$05,$09,$0D,$11,$15,$19,$1D
.byte $01,$05,$09,$0D,$11,$15,$19,$1D
.byte $02,$06,$0A,$0E,$12,$16,$1A,$1E
.byte $02,$06,$0A,$0E,$12,$16,$1A,$1E
.byte $03,$07,$0B,$0F,$13,$17,$1B,$1F
.byte $03,$07,$0B,$0F,$13,$17,$1B,$1F
.byte $00,$04,$08,$0C,$10,$14,$18,$1C
.byte $00,$04,$08,$0C,$10,$14,$18,$1C
.byte $01,$05,$09,$0D,$11,$15,$19,$1D
.byte $01,$05,$09,$0D,$11,$15,$19,$1D
.byte $02,$06,$0A,$0E,$12,$16,$1A,$1E
.byte $02,$06,$0A,$0E,$12,$16
L4B4F: .byte $1A,$1E,$03,$07,$0B
L4B54: .byte $0F,$13,$17,$1B,$1F,$03,$07,$0B
.byte $0F,$13,$17,$1B,$1F,$00,$04,$08
.byte $0C,$10,$14,$18,$1C,$00,$04,$08
.byte $0C,$10,$14,$18,$1C,$01,$05,$09
.byte $0D,$11,$15,$19,$1D,$01,$05,$09
.byte $0D,$11,$15,$19,$1D,$02,$06,$0A
.byte $0E,$12,$16,$1A,$1E,$02,$06,$0A
.byte $0E,$12,$16,$1A,$1E,$03,$07,$0B
.byte $0F,$13,$17,$1B,$1F,$03,$07,$0B
.byte $0F,$13,$17,$1B,$1F,$B1,$84,$51
.byte $8E,$45,$F6,$25,$89,$51,$84,$90
.byte $04,$B1,$8E,$45,$F6,$25,$E8,$05
.byte $E9,$91,$84,$88,$D0,$F3,$B1,$84
.byte $51,$8E,$45,$F6,$25,$88,$51,$84
.byte $25,$E8,$05,$E9,$91,$84,$60,$B1
.byte $8E,$45,$F6,$25,$89,$90,$04,$B1
.byte $8E,$45,$F6,$11,$84,$25,$E8,$05
.byte $E9,$91,$84,$88,$D0,$F1,$B1,$8E
.byte $45,$F6,$25,$88,$11,$84,$25,$E8
.byte $05,$E9,$91,$84,$60,$B1,$8E,$45
.byte $F6,$25,$89,$90,$04,$B1,$8E,$45
.byte $F6,$51,$84,$25,$E8,$05,$E9,$91
.byte $84,$88,$D0,$F1
L4C08: .byte $B1,$8E,$45,$F6,$25,$88,$51,$84
.byte $25,$E8,$05,$E9,$91,$84,$60,$B1
.byte $8E,$45,$F6,$25,$89,$90,$04,$B1
.byte $8E,$45,$F6,$49,$FF,$31,$84,$25
.byte $E8,$05,$E9,$91,$84,$88,$D0,$EF
L4C30: .byte $B1,$8E,$45,$F6,$25,$88,$49,$FF
.byte $31,$84,$25,$E8,$05,$E9,$91
L4C3F: .byte $84,$60,$E4,$98,$F0,$04,$E8,$4C
L4C47: .byte $FB
L4C48: .byte $4C,$60,$AD,$5B,$4C,$65,$90,$8D
.byte $5B,$4C,$90,$03,$EE,$5C,$4C,$AC
.byte $68,$51,$B9
L4C5B: .byte $FF
L4C5C: .byte $FF,$29,$7F,$99,$01,$06,$88,$10
.byte $F5,$30,$38
L4C67: .byte $A4,$8C,$E6,$8C,$B9,$E1,$4A,$05
.byte $80,$85,$83,$B9,$21,$4A,$65,$8A
.byte $85,$82,$86,$81,$A0,$00,$A2,$00
.byte $8D,$55,$C0,$B1,$82,$29,$7F,$8D
.byte $54,$C0,$9D
L4C8A: .byte $01,$06,$B1,$82,$29,$7F,$9D
L4C91: .byte $02,$06,$C8,$E8,$E8,$EC,$68,$51
.byte $90,$E4,$F0,$E2,$A6,$81,$18,$4C
L4CA1: .byte $BE
L4CA2: .byte $4C,$86,$82,$AC,$68,$51,$A9,$00
.byte $BE,$01,$06,$1D
L4CAE: .byte $A1
L4CAF: .byte $42,$99
L4CB1: .byte $02,$06,$BD
L4CB4: .byte $21
L4CB5: .byte $42,$88,$10,$F1,$8D
L4CBA: .byte $01,$06,$A6,$82,$4C
L4CBF: .byte $38
L4CC0: .byte $4D
L4CC1: .byte $86,$82,$A2,$00,$A0,$00,$BD
L4CC8: .byte $01,$06,$8D,$55,$C0,$99,$01,$06
.byte $8D,$54,$C0,$BD
L4CD4: .byte $02,$06,$99,$01,$06,$E8,$E8,$C8
.byte $C4,$91,$90,$E7,$F0,$E5,$A6,$82
.byte $4C,$38,$4D
L4CE7: .byte $A6,$94,$18,$4C,$46,$4C
L4CED: .byte $AE,$6A,$4D,$8E,$47,$4C,$AE,$6B
.byte $4D,$8E,$48,$4C,$A6,$94,$4C
L4CFC: .byte $11
L4CFD: .byte $4D,$8A,$6A,$6A,$6A,$29,$C0,$05
.byte $86,$85,$82,$A9,$04,$69,$00,$85
.byte $83,$4C,$79,$4C
L4D11: .byte $8A,$6A,$6A,$6A,$29,$C0,$05,$86
.byte $85,$8E,$A9,$04,$69,$00,$85,$8F
.byte $4C
L4D22: .byte $38
L4D23: .byte $4D,$A5,$84,$18,$65,$D6,$85,$84
.byte $90,$03,$E6,$85,$18,$A4,$91,$20
.byte $67,$4D,$4C,$41,$4C
L4D38: .byte $BD,$E1,$4A,$05,$D5,$85,$85,$BD
.byte $21,$4A,$18,$65,$86,$85,$84,$A0
.byte $01,$20,$54,$4D,$A0,$00,$20,$54
.byte $4D,$4C,$41,$4C,$99,$54,$C0,$B9
.byte $92,$00,$09,$80,$85,$88,$B9,$96
.byte $00,$09,$80,$85,$89,$A4,$91,$4C
L4D68: .byte $A1
L4D69: .byte $4B,$FB,$4C
L4D6C: .byte $00,$00,$00,$00,$00,$00,$00
L4D73: .byte $01,$03,$07,$0F,$1F,$3F,$7F
L4D7A: .byte $7F,$7F,$7F,$7F,$7F,$7F,$7F
L4D81: .byte $7F,$7E,$7C,$78,$70,$60,$40,$00
.byte $00,$00,$00,$00,$00,$00
L4D8F: .byte $A1
L4D90: .byte $4B,$CB,$4B,$F1,$4B,$17,$4C,$A1
.byte $4B,$CB,$4B,$F1,$4B,$17,$4C
L4D9F: .byte $BA
L4DA0: .byte $4B,$E2,$4B,$08,$4C,$30,$4C,$BA
.byte $4B,$E2,$4B,$08,$4C,$30,$4C
L4DAF: lda $F0
ldx #$00
cmp #$04
bcc L4DB9
ldx #$7F
L4DB9: stx $F6
rts
L4DBC: lda $F7
clc
adc $96
sta $96
lda $F8
adc $97
sta $97
lda $F9
clc
adc $98
sta $98
lda $FA
adc $99
sta $99
lda $F7
clc
adc $92
sta $92
lda $F8
adc $93
sta $93
lda $F9
clc
adc $94
sta $94
lda $FA
adc $95
sta $95
lsr $97
beq L4DF7
jmp L4E79
L4DF7: lda $96
ror a
tax
lda L4821,x
ldy L4921,x
L4E01: sta L0082
tya
rol a
tay
lda L4D73,y
L4E09: sta $97
.byte $B9
L4E0C: jmp ($854D)
stx $46,y
.byte $93
bne L4E68
lda $92
ror a
tax
lda L4821,x
ldy L4921,x
L4E1E: sta $86
L4E20: tya
rol a
tay
sty $87
lda L4D81,y
sta $93
lda L4D7A,y
sta $92
lda L0082
sec
sbc $86
L4E34: sta $91
pha
lda $F0
asl a
tax
pla
bne L4E5B
lda $93
and $97
sta $93
sta $97
lda $92
and $96
sta $92
sta $96
lda L4D9F,x
sta L4D68
lda L4DA0,x
sta L4D69
rts
L4E5B: lda L4D8F,x
sta L4D68
lda L4D90,x
sta L4D69
rts
L4E68: lda $92
ror a
tax
php
lda L4825,x
clc
adc #$24
plp
ldy L4925,x
bpl L4E1E
L4E79: lda $96
ror a
tax
php
lda L4825,x
clc
adc #$24
plp
ldy L4925,x
bmi L4E8D
jmp L4E01
L4E8D: lsr a
bne L4E9A
txa
ror a
tax
lda L4821,x
ldy L4921,x
rts
L4E9A: txa
ror a
tax
php
lda L4825,x
clc
adc #$24
plp
ldy L4925,x
rts
L4EA9: lda $86
ldx $94
ldy $D6
jsr L4F6D
clc
adc $D4
sta $84
tya
adc $D5
sta $85
lda #$02
tax
tay
bit $D6
bmi L4EE9
lda #$01
sta $8E
lda #$06
sta $8F
jsr L4F11
txa
inx
stx L5168
jsr L4E34
lda L4F31
sta L4CA1
lda L4F32
sta L4CA2
lda #$00
ldx #$00
ldy #$00
L4EE9: pha
lda L4F37,x
sta L4D22
lda L4F38,x
sta L4D23
pla
tax
lda L4F33,x
sta L4CFC
lda L4F34,x
sta L4CFD
lda L4F3B,y
sta L4CBF
lda L4F3C,y
sta L4CC0
rts
L4F11: lda $91
asl a
tax
inx
lda $93
bne L4F25
dex
inc $8E
inc $84
bne L4F23
inc $85
L4F23: lda $92
L4F25: sta L0088
lda $96
bne L4F2E
dex
lda $97
L4F2E: sta $89
rts
L4F31: .byte $BE
L4F32: .byte $4C
L4F33: .byte $FE
L4F34: jmp L4D11
L4F37: .byte $24
L4F38: eor L4D38
L4F3B: .byte $24
L4F3C: eor L4CC1
L4F3F: ldx $8C
ldy $90
bmi L4F48
jsr L4F70
L4F48: clc
adc $8E
sta L4C5B
tya
adc $8F
sta L4C5C
ldx #$02
bit $90
bmi L4F5C
ldx #$00
L4F5C: lda L4F69,x
sta L4C47
lda L4F6A,x
sta L4C48
rts
L4F69: lsr a
L4F6A: jmp L4C67
L4F6D: bmi L4F8E
asl a
L4F70: stx L0082
sty L0083
ldx #$08
L4F76: lsr L0083
bcc L4F7D
clc
adc L0082
L4F7D: ror a
ror $84
dex
bne L4F76
sty L0082
tay
lda $84
sec
sbc L0082
bcs L4F8E
dey
L4F8E: rts
L4F8F: lda #$00
sta $8E
lda $F9
and #$07
lsr a
ror $8E
lsr a
ror $8E
adc #$04
sta $8F
ldx #$07
L4FA3: lda $F7
and #$07
tay
lda $E0,x
L4FAA: dey
bmi L4FB2
cmp #$80
rol a
bne L4FAA
L4FB2: ldy #$27
L4FB4: pha
lsr a
sta $C054
sta ($8E),y
pla
ror a
pha
lsr a
sta $C055
sta ($8E),y
pla
ror a
dey
bpl L4FB4
lda $8E
sec
sbc #$40
sta $8E
bcs L4FDD
ldy $8F
dey
cpy #$04
bcs L4FDB
ldy #$05
L4FDB: sty $8F
L4FDD: dex
bpl L4FA3
sta $C054
rts
L4FE4: brk
ldy #$03
L4FE7: ldx #$07
L4FE9: lda $9F,x
sta $92,x
dex
bpl L4FE9
ldx L5016,y
lda $9F,x
pha
lda L00A0,x
ldx L501A,y
sta $93,x
pla
sta $92,x
sty L4FE4
jsr L501E
ldy L4FE4
dey
bpl L4FE7
ldx #$03
L500E: lda $9F,x
sta $EA,x
dex
bpl L500E
L5015: rts
L5016: brk
.byte $02
.byte $04
L5019: .byte $06
L501A: tsb $06
brk
.byte $02
L501E: lda $EE
L5020: sec
sbc #$01
L5023: cmp #$FF
beq L5015
adc $96
sta $96
bcc L502F
inc $97
L502F: lda $EF
sec
sbc #$01
cmp #$FF
beq L5015
adc $98
sta $98
bcc L5040
inc $99
L5040: jsr L514C
L5043: jsr L50A9
bcc L5015
jsr L4DBC
jsr L4EA9
jmp L4CED
L5051: jsr L514C
lda $EA
ldx $EB
cpx $93
bmi L508D
bne L5062
cmp $92
bcc L508D
L5062: cpx $97
bmi L506E
bne L508D
cmp $96
bcc L506E
bne L508D
L506E: lda $EC
ldx $ED
cpx $95
bmi L508D
bne L507C
cmp $94
bcc L508D
L507C: cpx $99
bmi L5088
bne L508D
cmp $98
bcc L5088
bne L508D
L5088: lda #$80
jmp L40B1
L508D: rts
L508E: lda $D0
sec
sbc $D8
sta $F7
lda $D1
sbc $D9
sta $F8
lda $D2
sec
sbc $DA
sta $F9
lda $D3
sbc $DB
sta $FA
rts
L50A9: lda $DD
cmp $93
bmi L50B7
bne L50B9
lda $DC
cmp $92
bcs L50B9
L50B7: clc
L50B8: rts
L50B9: lda $97
cmp $D9
bmi L50B7
bne L50C7
lda $96
cmp $D8
bcc L50B8
L50C7: lda $DF
cmp $95
bmi L50B7
bne L50D5
lda $DE
cmp $94
bcc L50B8
L50D5: lda $99
cmp $DB
bmi L50B7
bne L50E3
lda $98
cmp $DA
bcc L50B8
L50E3: ldy #$00
lda $92
sec
sbc $D8
tax
lda $93
sbc $D9
bpl L50FE
stx $9B
sta $9C
lda $D8
sta $92
lda $D9
sta $93
iny
L50FE: lda $DC
sec
sbc $96
tax
lda $DD
sbc $97
bpl L5116
lda $DC
sta $96
lda $DD
sta $97
tya
ora #$04
tay
L5116: lda $94
sec
sbc $DA
tax
lda $95
sbc $DB
bpl L5130
stx $9D
sta $9E
lda $DA
sta $94
lda $DB
sta $95
iny
iny
L5130: lda $DE
sec
sbc $98
tax
lda $DF
sbc $99
bpl L5148
lda $DE
sta $98
lda $DF
sta $99
tya
ora #$08
tay
L5148: sty $9A
sec
rts
L514C: sec
lda $96
sbc $92
lda $97
sbc $93
bmi L5163
sec
lda $98
sbc $94
lda $99
sbc $95
bmi L5163
rts
L5163: lda #$81
jmp L40B1
L5168: brk
L5169: brk
ldx #$03
L516C: lda $8A,x
sta $9B,x
lda $92,x
sta $8A,x
dex
bpl L516C
lda $96
sec
sbc $92
sta L0082
lda $97
sbc $93
sta L0083
lda $9B
sta $92
clc
adc L0082
sta $96
lda $9C
sta $93
adc L0083
sta $97
lda $98
sec
sbc $94
sta L0082
lda $99
sbc $95
sta L0083
lda $9D
sta $94
clc
adc L0082
sta $98
lda $9E
sta $95
adc L0083
sta $99
L51B3: lda #$00
sta $9B
sta $9C
sta $9D
lda $8F
sta L0080
jsr L50A9
bcs L51C5
rts
L51C5: jsr L4DBC
lda $91
asl a
ldx $93
beq L51D1
adc #$01
L51D1: ldx $96
beq L51D7
adc #$01
L51D7: sta L5169
sta L5168
lda #$02
sta $81
lda #$00
sec
sbc $9D
clc
adc $8C
sta $8C
lda #$00
sec
sbc $9B
tax
lda #$00
sbc $9C
tay
txa
clc
adc $8A
tax
tya
adc $8B
jsr L4E8D
sta $8A
tya
rol a
cmp #$07
ldx #$01
bcc L520E
dex
sbc #$07
L520E: stx L4C8A
inx
stx L4C91
sta $9B
lda $8A
rol a
jsr L4F3F
jsr L4EA9
L5220: lda #$01
sta $8E
lda #$06
sta $8F
ldx #$01
lda $87
sec
sbc #$07
bcc L5234
sta $87
dex
L5234: stx L4CC8
inx
stx L4CD4
lda $87
sec
sbc $9B
bcs L5249
adc #$07
inc L5168
dec $81
L5249: tay
bne L5250
ldx #$00
beq L5276
L5250: tya
asl a
tay
lda L5293,y
sta L4CAE
lda L5294,y
sta L4CAF
lda L5287,y
sta L4CB4
lda L5288,y
sta L4CB5
ldy $81
sty L4CB1
dey
sty L4CBA
ldx #$02
L5276: lda L5285,x
sta L4CA1
lda L5286,x
sta L4CA2
jmp L4CE7
L5285: .byte $BE
L5286: .byte $4C
L5287: .byte $A3
L5288: jmp L4221
and ($43,x)
and ($44,x)
and ($45,x)
and ($46,x)
L5293: .byte $21
L5294: rmb4 $A1
.byte $42
lda ($43,x)
lda ($44,x)
lda ($45,x)
lda ($46,x)
lda ($47,x)
L52A1: stx $B0
asl a
asl a
sta $B3
ldy #$03
L52A9: lda (L0080),y
sta $92,y
sta $96,y
dey
bpl L52A9
lda $94
sta $A7
lda $95
sta $A8
ldy #$00
stx $AE
L52C0: stx L0082
lda (L0080),y
sta $0700,x
pha
iny
lda (L0080),y
sta $073C,x
tax
pla
iny
cpx $93
bmi L52DB
bne L52E1
cmp $92
bcs L52E1
L52DB: sta $92
stx $93
bcc L52EF
L52E1: cpx $97
bmi L52EF
bne L52EB
cmp $96
bcc L52EF
L52EB: sta $96
stx $97
L52EF: ldx L0082
lda (L0080),y
sta $0780,x
pha
iny
lda (L0080),y
sta $07BC,x
tax
pla
iny
cpx $95
bmi L530A
bne L5310
.byte $C5
L5307: sty $B0,x
.byte $06
L530A: sta $94
stx $95
bcc L531E
L5310: cpx $99
bmi L531E
bne L531A
cmp $98
bcc L531E
L531A: sta $98
stx $99
L531E: cpx $A8
L5320: stx $A8
bmi L5330
bne L532C
cmp $A7
bcc L5330
beq L5330
L532C: ldx L0082
stx $AE
L5330: sta $A7
L5332: ldx L0082
inx
L5335: cpx #$3C
beq L5398
cpy $B3
bcc L52C0
lda $94
cmp $98
bne L5349
lda $95
cmp $99
beq L5398
L5349: stx $B3
bit $BA
bpl L5351
sec
rts
L5351: jmp L50A9
L5354: lda $B4
bpl L5379
asl a
asl a
adc L0080
sta L0080
bcc L5362
inc $81
L5362: ldy #$00
lda (L0080),y
iny
ora (L0080),y
sta $B4
inc L0080
bne L5371
inc $81
L5371: inc L0080
bne L5377
inc $81
L5377: ldy #$80
L5379: rts
lda #$80
bne L5380
L537E: lda #$00
L5380: sta $BA
ldx #$00
stx $AD
jsr L5362
L5389: jsr L52A1
bcs L539D
ldx $B0
L5390: jsr L5354
bmi L5389
jmp L546F
L5398: lda #$82
jmp L40B1
L539D: ldy #$01
sty $AF
ldy $AE
cpy $B0
bne L53A9
ldy $B3
L53A9: dey
sty $AB
php
L53AD: sty $AC
iny
cpy $B3
bne L53B6
ldy $B0
L53B6: sty $AA
cpy $AE
bne L53BE
dec $AF
L53BE: lda $0780,y
ldx $07BC,y
stx L0083
L53C6: sty $A9
iny
cpy $B3
bne L53CF
ldy $B0
L53CF: cmp $0780,y
bne L53DB
ldx $07BC,y
cpx L0083
beq L53C6
L53DB: ldx $AB
sec
sbc $0780,x
lda L0083
sbc $07BC,x
bmi L5448
lda $A9
plp
bmi L53F8
tay
sta $0680,x
lda $AA
sta $06BC,x
bpl L545D
L53F8: ldx $AD
cpx #$10
bcs L5398
sta $0468,x
lda $AA
.byte $9D
L5404: tay
tsb $A4
.byte $AB
lda $0680,y
sta $0469,x
lda $06BC,y
.byte $9D
.byte $A9
L5413: tsb $B9
.byte $80
L5416: rmb0 $9D
inx
.byte $05
L541A: sta $05E9,x
lda $07BC,y
L5420: sta L5E01,x
sta L5E02,x
lda $0700,y
sta L5E32,x
lda $073C,y
sta L5E42,x
.byte $A4
L5433: ldy a:$B9
L5436: rmb0 $9D
L5438: and ($5E),y
lda $073C,y
sta L5E41,x
inx
inx
stx $AD
ldy $A9
bpl L545D
L5448: plp
bmi L5450
lda #$80
sta $0680,x
L5450: ldy $AA
txa
sta $0680,y
lda $AC
sta $06BC,y
lda #$80
L545D: php
sty $AB
ldy $A9
bit $AF
bmi L5469
jmp L53AD
L5469: plp
ldx $B3
jmp L5390
L546F: ldx #$00
stx $B1
lda #$80
sta $0428
sta $B2
L547A: inx
cpx $AD
bcc L5482
beq L54B2
rts
L5482: lda $B1
L5484: tay
lda $05E8,x
cmp $05E8,y
bcs L54A2
tya
sta $0428,x
cpy $B1
.byte $F0
L5494: ora #$A4
.byte $82
txa
sta $0428,y
jmp L547A
L549E: stx $B1
bcs L547A
L54A2: sty L0082
lda $0428,y
bpl L5484
sta $0428,x
txa
sta $0428,y
bpl L547A
L54B2: ldx $B1
lda $05E8,x
sta $A9
sta $94
lda L5E01,x
sta $AA
sta $95
L54C2: ldx $B1
bmi L5534
L54C6: lda $05E8,x
cmp $A9
bne L5532
lda L5E01,x
cmp $AA
bne L5532
lda $0428,x
sta L0082
jsr L5606
lda $B2
bmi L5517
L54E0: tay
lda L5E41,x
cmp L5E41,y
bmi L5520
bne L5507
lda L5E31,x
cmp L5E31,y
bcc L5520
bne L5507
lda L5E11,x
cmp L5E11,y
bcc L5520
bne L5507
lda L5E21,x
cmp L5E21,y
bcc L5520
L5507: sty L0083
.byte $B9
L550A: plp
tsb $10
cmp ($9D)
plp
tsb $8A
sta $0428,y
bpl L552E
L5517: sta $0428,x
stx $B2
jmp L552E
L551F: rts
L5520: tya
cpy $B2
beq L5517
sta $0428,x
txa
ldy L0083
sta $0428,y
L552E: ldx L0082
bpl L54C6
L5532: stx $B1
L5534: lda #$00
sta $AB
lda $B2
sta L0083
bmi L551F
L553E: tax
lda $A9
cmp $05E8,x
bne L5584
lda $AA
cmp L5E01,x
bne L5584
ldy $0468,x
lda $0680,y
bpl L556C
cpx $B2
beq L5564
ldy L0083
lda $0428,x
sta $0428,y
jmp L55F8
L5564: lda $0428,x
sta $B2
jmp L55F8
L556C: sta $0468,x
lda $0700,y
sta L5E31,x
lda $073C,y
sta L5E41,x
lda $06BC,y
sta $04A8,x
jsr L5606
L5584: stx $AC
ldy L5E41,x
lda L5E31,x
tax
lda $AB
eor #$FF
sta $AB
bpl L559B
stx $92
sty $93
bmi L55CE
L559B: stx $96
sty $97
cpy $93
bmi L55A9
bne L55B5
cpx $92
bcs L55B5
L55A9: lda $92
stx $92
sta $96
lda $93
sty $93
sta $97
L55B5: lda $A9
sta $94
sta $98
lda $AA
sta $95
sta $99
bit $BA
bpl L55CB
jsr L5051
jmp L55CE
L55CB: jsr L5043
L55CE: ldx $AC
lda L5E21,x
clc
adc $0528,x
sta L5E21,x
lda L5E11,x
adc $04E8,x
sta L5E11,x
lda L5E31,x
adc $0568,x
sta L5E31,x
lda L5E41,x
adc $05A8,x
sta L5E41,x
lda $0428,x
L55F8: bmi L55FD
jmp L553E
L55FD: inc $A9
bne L5603
inc $AA
L5603: jmp L54C2
L5606: ldy $04A8,x
lda $0780,y
sta $05E8,x
sec
sbc $A9
sta $A3
lda $07BC,y
sta L5E01,x
sbc $AA
sta $A4
lda $0700,y
sec
sbc L5E31,x
sta $A1
lda $073C,y
sbc L5E41,x
sta $A2
php
bpl L563F
lda #$00
sec
sbc $A1
sta $A1
lda #$00
sbc $A2
sta $A2
L563F: stx $84
jsr L569A
ldx $84
plp
bpl L5662
lda #$00
sec
sbc $9F
sta $9F
lda #$00
sbc L00A0
sta L00A0
lda #$00
sbc $A1
sta $A1
lda #$00
sbc $A2
sta $A2
L5662: lda $A2
sta $05A8,x
cmp #$80
ror a
pha
lda $A1
sta $0568,x
ror a
pha
lda L00A0
sta $04E8,x
ror a
pha
lda $9F
sta $0528,x
ror a
sta L5E21,x
pla
clc
adc #$80
sta L5E11,x
pla
adc L5E31,x
sta L5E31,x
pla
adc L5E41,x
sta L5E41,x
rts
L5698: lda $A2
L569A: ora $A1
bne L56A8
sta $9F
sta L00A0
sta $A1
sta $A2
beq L56D5
L56A8: ldy #$20
lda #$00
sta $9F
sta L00A0
sta $A5
sta $A6
L56B4: asl $9F
rol L00A0
rol $A1
rol $A2
rol $A5
rol $A6
lda $A5
sec
sbc $A3
tax
lda $A6
sbc $A4
bcc L56D2
stx $A5
sta $A6
inc $9F
L56D2: dey
bne L56B4
L56D5: rts
lda #$00
sta $BA
jsr L5362
L56DD: lda L0080
sta $B7
lda $81
sta $B8
lda $B4
sta $B6
ldx #$00
jsr L52A1
bcc L572F
lda $B3
sta $B5
ldy #$00
L56F6: dec $B5
beq L5713
sty $B9
ldx #$00
L56FE: lda ($B7),y
sta $92,x
iny
inx
cpx #$08
bne L56FE
jsr L5783
lda $B9
clc
adc #$04
tay
bne L56F6
L5713: ldx #$00
L5715: lda ($B7),y
sta $92,x
iny
inx
cpx #$04
bne L5715
ldy #$03
L5721: lda ($B7),y
sta $96,y
sta $EA,y
dey
bpl L5721
jsr L5783
L572F: ldx #$01
L5731: lda $B7,x
sta L0080,x
lda $B5,x
sta $B3,x
dex
bpl L5731
jsr L5354
bmi L56DD
rts
lda $A1
ldx $A2
jsr L5758
lda $A3
ldx $A4
clc
adc $EC
sta $EC
txa
adc $ED
sta $ED
rts
L5758: clc
adc $EA
sta $EA
txa
adc $EB
sta $EB
rts
ldx #$02
L5765: lda $A1,x
clc
adc $EA,x
sta $92,x
lda $A2,x
adc $EB,x
sta $93,x
dex
dex
bpl L5765
ldx #$03
L5778: lda $EA,x
sta $96,x
lda $92,x
sta $EA,x
dex
bpl L5778
L5783: lda $99
cmp $95
bmi L57B0
bne L57BF
lda $98
cmp $94
bcc L57B0
bne L57BF
lda $92
ldx $93
cpx $97
bmi L57AD
bne L57A1
cmp $96
bcc L57AD
L57A1: ldy $96
sta $96
sty $92
ldy $97
stx $97
sty $93
L57AD: jmp L501E
L57B0: ldx #$03
L57B2: lda $92,x
tay
lda $96,x
sta $92,x
tya
sta $96,x
dex
bpl L57B2
L57BF: ldx $EE
dex
stx $A2
lda $EF
sta $A4
lda #$00
sta $A1
sta $A3
lda $92
ldx $93
cpx $97
bmi L57E9
bne L57E1
cmp $96
bcc L57E9
bne L57E1
jmp L501E
L57E1: lda $A1
ldx $A2
sta $A2
stx $A1
L57E9: ldy #$05
L57EB: sty L0082
ldx L583E,y
ldy #$03
L57F2: lda $92,x
sta L0083,y
dex
dey
bpl L57F2
ldy L0082
ldx L5844,y
lda $A1,x
clc
adc L0083
sta L0083
bcc L580B
inc $84
L580B: ldx L584A,y
lda $A3,x
clc
adc $85
sta $85
bcc L5819
inc $86
L5819: tya
asl a
asl a
tay
ldx #$00
L581F: lda L0083,x
sta L5852,y
iny
inx
cpx #$04
bne L581F
ldy L0082
dey
bpl L57EB
lda L583C
.byte $85
L5833: bra $57E2
and $8558,x
sta ($4C,x)
.byte $7E
.byte $53
L583C: .byte $50
L583D: cli
L583E: .byte $03
.byte $03
rmb0 $07
rmb0 $03
L5844: brk
brk
brk
ora ($01,x)
.byte $01
L584A: brk
ora ($01,x)
ora (L0000,x)
brk
asl L0000
L5852: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
lda L0080
sta $F2
lda $81
sta $F3
L5872: ldy #$00
L5874: lda ($F2),y
sta $FD,y
iny
cpy #$03
bne L5874
cmp #$11
bcs L58B7
lda $F2
ldx $F3
clc
adc #$03
bcc L588C
inx
L588C: sta $FB
stx $FC
sec
adc $FE
bcc L5896
inx
L5896: ldy #$00
L5898: sta L58BC,y
pha
txa
sta L58CC,y
pla
sec
adc $FE
bcc L58A7
inx
L58A7: bit $FD
bpl L58B1
sec
adc $FE
bcc L58B1
inx
L58B1: iny
cpy $FF
bne L5898
rts
L58B7: lda #$83
jmp L40B1
L58BC: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L58CC: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
jsr L58E8
ldy #$03
sta (L0080),y
txa
iny
sta (L0080),y
rts
L58E8: ldx #$00
ldy #$00
sty L0082
L58EE: sty L0083
lda ($A1),y
tay
txa
clc
adc ($FB),y
bcc L58FB
inc L0082
L58FB: tax
ldy L0083
iny
cpy $A3
bne L58EE
txa
ldx L0082
rts
L5907: sec
sbc #$01
bcs L590D
dex
L590D: clc
adc $EA
sta $96
txa
adc $EB
sta $97
lda $EA
sta $92
lda $EB
sta $93
lda $EC
sta $98
ldx $ED
stx $99
clc
adc #$01
bcc L592D
inx
L592D: sec
sbc $FF
bcs L5933
dex
L5933: sta $94
stx $95
rts
L5938: jsr L5EFA
jsr L58E8
sta $A4
stx $A5
ldy #$00
sty $9F
sty L00A0
sty $9B
sty $9D
jsr L5907
jsr L50A9
.byte $90
L5953: adc $98
ror a
bcc L5972
ldy #$00
ldx $9C
L595C: sty $9F
lda ($A1),y
tay
lda ($FB),y
clc
adc $9B
bcc L596B
inx
beq L5972
L596B: sta $9B
ldy $9F
iny
bne L595C
L5972: jsr L4DBC
jsr L4EA9
lda $87
clc
adc $9B
bpl L5985
inc $91
dec L00A0
adc #$0E
L5985: sta $87
lda $91
inc $91
ldy $D6
bpl L599F
asl a
tax
lda $87
cmp #$07
bcs L5998
inx
L5998: lda $96
beq L599D
inx
L599D: stx $91
L599F: lda $87
sec
sbc #$07
bcc L59A8
sta $87
L59A8: lda #$00
rol a
eor #$01
sta $9C
tax
sta $C054,x
jsr L59C3
sta $C054
L59B9: jsr L5EEA
lda $A4
ldx $A5
jmp L5758
L59C3: lda $98
sec
sbc $94
asl a
tax
lda L5D81,x
sta L5B02
lda L5D82,x
sta L5B03
lda L5DA1,x
sta L5A95
lda L5DA2,x
sta L5A96
lda L5DC1,x
sta L5C22
lda L5DC2,x
sta L5C23
lda L5DE1,x
sta L5CBE
lda L5DE2,x
sta L5CBF
txa
lsr a
tax
sec
stx L0080
stx $81
lda #$00
sbc $9D
sta $9D
tay
ldx #$C3
sec
L5A0C: lda L58BC,y
sta L5B05,x
lda L58CC,y
sta L5B06,x
txa
sbc #$0D
tax
iny
dec L0080
bpl L5A0C
ldy $9D
ldx #$4B
sec
L5A26: lda L58BC,y
sta L5A98,x
lda L58CC,y
sta L5A99,x
txa
sbc #$05
tax
iny
dec $81
bpl L5A26
ldy $94
ldx #$00
L5A3F: bit $D6
bmi L5A56
lda $84
clc
adc $D6
sta $84
sta $20,x
lda $85
adc #$00
sta $85
sta $21,x
bne L5A65
L5A56: lda L4A21,y
clc
adc $86
sta $20,x
lda L4AE1,y
ora $D5
sta $21,x
L5A65: cpy $98
.byte $F0
L5A68: ora $C8
inx
inx
bne L5A3F
L5A6E: ldx #$0F
lda #$00
L5A72: sta L0000,x
dex
bpl L5A72
sta $81
sta $40
lda #$80
sta $42
ldy $9F
L5A81: lda ($A1),y
tay
bit $81
bpl L5A8B
sec
adc $FE
L5A8B: tax
lda ($FB),y
beq L5AE7
ldy $87
bne L5AEA
.byte $4C
L5A95: .byte $97
L5A96: phy
.byte $BD
L5A98: .byte $FF
L5A99: bbs7 $85,L5AAB
lda LFFFF,x
sta $0E
lda LFFFF,x
sta $0D
lda LFFFF,x
sta L000C
L5AAB: lda LFFFF,x
sta $0B
lda LFFFF,x
sta $0A
lda LFFFF,x
sta $09
lda LFFFF,x
sta $08
lda LFFFF,x
sta $07
lda LFFFF,x
sta $06
lda LFFFF,x
sta $05
lda LFFFF,x
sta $04
lda LFFFF,x
sta $03
lda LFFFF,x
sta $02
lda LFFFF,x
sta $01
lda LFFFF,x
sta L0000
L5AE7: jmp L5BD4
L5AEA: tya
asl a
tay
lda L5287,y
sta $40
lda L5288,y
sta $41
lda L5293,y
sta $42
lda L5294,y
.byte $85
L5B00: .byte $43
.byte $4C
L5B02: .byte $04
L5B03: .byte $5B
.byte $BC
L5B05: .byte $FF
L5B06: bbs7 $B1,L5B4B
sta $1F
lda ($40),y
ora $0F
sta $0F
ldy LFFFF,x
lda ($42),y
sta $1E
lda ($40),y
ora $0E
sta $0E
ldy LFFFF,x
lda ($42),y
sta $1D
lda ($40),y
ora $0D
sta $0D
ldy LFFFF,x
lda ($42),y
sta $1C
lda ($40),y
ora L000C
sta L000C
ldy LFFFF,x
lda ($42),y
sta $1B
lda ($40),y
ora $0B
sta $0B
ldy LFFFF,x
lda ($42),y
.byte $85
L5B4B: inc a
lda ($40),y
ora $0A
sta $0A
ldy LFFFF,x
lda ($42),y
sta $19
lda ($40),y
ora $09
sta $09
ldy LFFFF,x
lda ($42),y
sta $18
lda ($40),y
ora $08
sta $08
ldy LFFFF,x
lda ($42),y
sta $17
lda ($40),y
ora $07
sta $07
ldy LFFFF,x
lda ($42),y
sta $16
lda ($40),y
ora $06
sta $06
ldy LFFFF,x
lda ($42),y
sta $15
lda ($40),y
ora $05
sta $05
ldy LFFFF,x
lda ($42),y
sta $14
lda ($40),y
ora $04
sta $04
ldy LFFFF,x
lda ($42),y
sta $13
lda ($40),y
ora $03
sta $03
ldy LFFFF,x
lda ($42),y
sta $12
lda ($40),y
ora $02
sta $02
ldy LFFFF,x
lda ($42),y
sta $11
lda ($40),y
ora $01
sta $01
ldy LFFFF,x
lda ($42),y
sta $10
lda ($40),y
ora L0000
sta L0000
L5BD4: bit $81
bpl L5BE2
inc $9F
lda #$00
sta $81
lda $9A
bne L5BF6
L5BE2: txa
tay
lda ($FB),y
cmp #$08
bcs L5BEE
inc $9F
bcc L5BF6
L5BEE: sbc #$07
sta $9A
ror $81
lda #$07
L5BF6: clc
adc $87
cmp #$07
bcs L5C0D
sta $87
L5BFF: .byte $A4
L5C00: .byte $9F
L5C01: cpy $A3
beq L5C08
jmp L5A81
L5C08: ldy L00A0
jmp L5CB5
L5C0D: sbc #$07
sta $87
ldy L00A0
bne L5C18
jmp L5CA2
L5C18: bmi L5C84
dec $91
bne L5C21
jmp L5CB5
L5C21: .byte $4C
L5C22: .byte $24
L5C23: .byte $5C
lda $0F
eor $F1
sta ($3E),y
lda $0E
eor $F1
sta ($3C),y
lda $0D
eor $F1
sta ($3A),y
lda L000C
eor $F1
sta ($38),y
lda $0B
eor $F1
sta ($36),y
lda $0A
eor $F1
sta ($34),y
lda $09
eor $F1
sta ($32),y
lda $08
eor $F1
sta (L0030),y
lda $07
eor $F1
sta ($2E),y
lda $06
eor $F1
sta ($2C),y
lda $05
eor $F1
sta ($2A),y
lda $04
eor $F1
sta ($28),y
lda $03
eor $F1
sta ($26),y
lda $02
eor $F1
sta ($24),y
lda $01
eor $F1
sta ($22),y
lda L0000
eor $F1
sta ($20),y
L5C84: bit $D6
bpl L5C94
lda $9C
eor #$01
tax
sta $9C
sta $C054,x
beq L5C96
L5C94: inc L00A0
L5C96: ldx #$0F
L5C98: lda $10,x
sta L0000,x
dex
bpl L5C98
jmp L5BFF
L5CA2: ldx $9C
lda $92,x
dec $91
beq L5CB0
jsr L5CB9
jmp L5C84
L5CB0: and $96,x
bne L5CB9
rts
L5CB5: ldx $9C
lda $96,x
L5CB9: ora #$80
sta L0080
.byte $4C
L5CBE: .byte $C0
L5CBF: .byte $5C
lda $0F
eor $F1
eor ($3E),y
and L0080
eor ($3E),y
sta ($3E),y
lda $0E
eor $F1
eor ($3C),y
and L0080
eor ($3C),y
sta ($3C),y
lda $0D
eor $F1
eor ($3A),y
and L0080
eor ($3A),y
sta ($3A),y
lda L000C
eor $F1
eor ($38),y
and L0080
eor ($38),y
sta ($38),y
lda $0B
eor $F1
eor ($36),y
and L0080
eor ($36),y
sta ($36),y
L5CFC: lda $0A
eor $F1
eor ($34),y
and L0080
eor ($34),y
sta ($34),y
lda $09
eor $F1
eor ($32),y
and L0080
eor ($32),y
sta ($32),y
L5D14: lda $08
eor $F1
eor (L0030),y
and L0080
eor (L0030),y
sta (L0030),y
lda $07
eor $F1
eor ($2E),y
and L0080
eor ($2E),y
sta ($2E),y
lda $06
eor $F1
eor ($2C),y
and L0080
eor ($2C),y
sta ($2C),y
L5D38: lda $05
eor $F1
eor ($2A),y
and L0080
eor ($2A),y
sta ($2A),y
lda $04
eor $F1
eor ($28),y
and L0080
eor ($28),y
sta ($28),y
L5D50: lda $03
eor $F1
eor ($26),y
and L0080
eor ($26),y
sta ($26),y
lda $02
eor $F1
eor ($24),y
and L0080
eor ($24),y
sta ($24),y
L5D68: lda $01
eor $F1
L5D6C: eor ($22),y
and L0080
eor ($22),y
sta ($22),y
lda L0000
eor $F1
eor ($20),y
and L0080
eor ($20),y
sta ($20),y
rts
L5D81: .byte $C7
L5D82: .byte $5B
tsx
.byte $5B
lda LA05B
.byte $5B
.byte $93
.byte $5B
stx $5B
adc L6C5B,y
.byte $5B
bbr5 $5B,L5DE6
.byte $5B
eor $5B
sec
.byte $5B
.byte $2B
.byte $5B
asl $115B,x
.byte $5B
tsb $5B
L5DA1: .byte $E2
L5DA2: phy
cmp $D85A,x
phy
.byte $D3
phy
dec $C95A
phy
cpy $5A
bbs3 $5A,L5D6C
phy
lda $5A,x
bcs L5E11
.byte $AB
phy
ldx $5A
lda ($5A,x)
stz L975A
phy
L5DC1: .byte $7E
L5DC2: .byte $5C
sei
.byte $5C
adc ($5C)
jmp (L665C)
.byte $5C
rts
.byte $5C
phy
.byte $5C
.byte $54
.byte $5C
lsr L485C
.byte $5C
.byte $42
.byte $5C
bit $365C,x
.byte $5C
bmi L5E39
rol a
.byte $5C
bit $5C
L5DE1: .byte $74
L5DE2: eor L5D68,x
.byte $5C
L5DE6: eor L5D50,x
.byte $44
eor L5D38,x
bit $205D
eor L5D14,x
php
eor L5CFC,x
beq L5E55
cpx $5C
cld
.byte $5C
cpy $C05C
.byte $5C
L5E01: brk
L5E02: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L5E11: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L5E21: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L5E31: brk
L5E32: brk
brk
brk
brk
brk
brk
brk
L5E39: brk
brk
brk
brk
brk
brk
brk
brk
L5E41: brk
L5E42: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L5E51: lda #$71
sta L0082
L5E55: jsr L5E7B
ldx #$23
L5E5A: lda L5F1E,x
sta $8A,x
sta $D0,x
dex
bpl L5E5A
lda L5E79
ldx L5E7A
jsr L5EA0
lda #$7F
sta $F6
jsr L5040
lda #$00
sta $F6
rts
L5E79: .byte $42
L5E7A: .byte $5F
L5E7B: lda $C05E
sta $C00D
ldx #$03
L5E83: lsr L0082
lda L5E98,x
rol a
tay
bcs L5E91
lda $C000,y
bcc L5E94
L5E91: sta $C000,y
L5E94: dex
bpl L5E83
rts
L5E98: plp
and #$2A
.byte $2B
lda L0080
ldx $81
L5EA0: sta $F4
stx $F5
L5EA4: lda $F3
beq L5EAB
jsr L5872
L5EAB: jsr L508E
jsr L4F8F
jmp L4DAF
jsr L40C8
lda $F4
ldx $F5
L5EBB: ldy #$00
L5EBD: sta (L0080),y
txa
iny
sta (L0080),y
rts
ldy #$23
L5EC6: lda L5F1E,y
sta (L0080),y
dey
bpl L5EC6
L5ECE: rts
lda L0082
cmp L5F1B
beq L5ECE
sta L5F1B
bcc L5ECE
jmp L408A
lda L0082
cmp L5F1C
beq L5ECE
sta L5F1C
bcc L5EFF
L5EEA: .byte $2C
.byte $1C
L5EEC: bbr5 $10,L5EF9
ldx #$43
L5EF1: lda L5E01,x
sta L0000,x
dex
bpl L5EF1
L5EF9: rts
L5EFA: bit L5F1C
bpl L5EF9
L5EFF: ldx #$43
L5F01: lda L0000,x
sta L5E01,x
dex
bpl L5F01
rts
ldy #$05
L5F0C: lda L5F15,y
.byte $91
L5F10: bra $5E9A
bpl L5F0C
rts
L5F15: ora (L0000,x)
brk
lsr $01
brk
L5F1B: .byte $80
L5F1C: .byte $80
L5F1D: brk
L5F1E: brk
brk
brk
brk
brk
jsr L0080
brk
brk
brk
brk
bbr2 $02,L5EEC
brk
L5F2E: .byte $FF
.byte $FF
L5F30: bbs7 $FF,$5F32
L5F33: bbs7 $FF,$5F35
L5F36: bbs7 L0000,$5F39
brk
brk
brk
ora ($01,x)
brk
L5F3F: brk
L5F40: brk
L5F41: brk
brk
brk
brk
brk
brk
jsr L0080
brk
brk
brk
brk
bbr2 $02,L5F10
brk
.byte $FF
.byte $FF
L5F54: bbs7 $FF,$5F56
L5F57: bbs7 $FF,$5F59
L5F5A: bbs7 L0000,$5F5D
brk
brk
brk
ora ($01,x)
brk
brk
brk
brk
L5F66: .byte $42
bbr5 L0000,L5F6A
L5F6A: brk
brk
brk
brk
brk
brk
brk
brk
L5F72: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L5FF2: brk
L5FF3: .byte $FF
L5FF4: brk
L5FF5: brk
L5FF6: brk
brk
L5FF8: brk
L5FF9: brk
L5FFA: brk
L5FFB: brk
L5FFC: brk
L5FFD: brk
L5FFE: brk
L5FFF: brk
L6000: brk
L6001: brk
L6002: brk
L6003: brk
L6004: brk
L6005: brk
L6006: brk
L6007: brk
L6008: brk
L6009: brk
L600A: brk
L600B: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L601F: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L602F: brk
brk
brk
brk
brk
brk
.byte $02
brk
asl L0000
asl $1E00
brk
rol L7E00,x
brk
inc a
brk
bmi L6045
L6045: bmi L6047
L6047: rts
brk
brk
brk
.byte $03
brk
rmb0 L0000
bbr0 L0000,L6071
brk
bbr3 L0000,L60D5
brk
bbr7 $01,L60D9
brk
sei
brk
sei
brk
bvs L6062
.byte $70
L6062: ora ($01,x)
.byte $01
L6065: .byte $33
L6066: rts
L6067: lda #$FF
sta L5FF3
lda #$00
sta L5FF2
L6071: lda L6065
sta L0080
lda L6066
sta $81
L607B: php
sei
lda L0080
ldx $81
sta L6142
stx L6143
clc
adc #$18
bcc L608D
inx
L608D: sta L6148
stx L6149
ldy #$30
lda (L0080),y
sta L6002
iny
lda (L0080),y
sta L6003
jsr L61C6
jsr L60B2
plp
L60A7: rts
L60A8: lda L5FF3
bne L60A7
bit L5FF2
bmi L60A7
L60B2: lda #$00
sta L5FF3
sta L5FF2
lda L5FF6
clc
sbc L6003
sta $84
clc
adc #$0C
sta $85
lda L5FF4
sec
sbc L6002
tax
lda L5FF5
sbc #$00
L60D5: bpl L60E1
txa
ror a
L60D9: tax
ldy L499D,x
lda #$FF
bmi L60E4
L60E1: jsr L4E8D
L60E4: sta L0082
tya
rol a
cmp #$07
bcc L60EE
sbc #$07
L60EE: tay
lda #$2A
rol a
eor #$01
sta L0083
sty L6004
tya
asl a
tay
lda L5293,y
sta L6164
lda L5294,y
sta L6165
lda L5287,y
sta L616A
lda L5288,y
sta L616B
ldx #$03
L6116: lda L0082,x
sta L602F,x
dex
bpl L6116
ldx #$17
L6120: stx $86
ldx #$23
ldy $85
L6126: cpy #$C0
bcc L612D
jmp L61B9
L612D: lda L4A21,y
sta L0088
lda L4AE1,y
ora #$20
sta $89
sty $85
stx $87
ldy $86
ldx #$01
L6141: .byte $B9
L6142: .byte $FF
L6143: bbs7 $9D,L614B
rts
L6147: .byte $B9
L6148: .byte $FF
L6149: .byte $FF
.byte $9D
L614B: php
L614C: rts
dey
dex
bpl L6141
lda #$00
sta L6007
sta L600A
ldy L6004
beq L6172
ldy #$05
L6160: ldx L6004,y
L6163: .byte $1D
L6164: .byte $80
L6165: bbs7 $99,L616D
rts
.byte $BD
L616A: brk
L616B: .byte $FF
dey
L616D: .byte $D0
L616E: .byte $F1
L616F: sta L6005
L6172: .byte $A6
L6173: smb0 $A4
.byte $82
.byte $A5
L6177: .byte $83
jsr L622A
bcs L618D
lda (L0088),y
sta L600B,x
lda L6008
ora (L0088),y
eor L6005
sta (L0088),y
dex
L618D: jsr L6220
bcs L61A2
lda (L0088),y
sta L600B,x
lda L6009
ora (L0088),y
eor L6006
sta (L0088),y
dex
L61A2: jsr L6220
bcs L61B7
lda (L0088),y
sta L600B,x
lda L600A
ora (L0088),y
eor L6007
sta (L0088),y
dex
L61B7: ldy $85
L61B9: dec $86
dec $86
dey
cpy $84
beq L621C
jmp L6126
L61C5: rts
L61C6: lda L5FF3
bne L61C5
bit L5FF2
bmi L61C5
ldx #$03
L61D2: lda L602F,x
sta L0082,x
dex
bpl L61D2
ldx #$23
ldy $85
L61DE: cpy #$C0
bcs L6217
lda L4A21,y
sta L0088
lda L4AE1,y
ora #$20
sta $89
sty $85
.byte $A4
L61F1: .byte $82
lda L0083
jsr L622A
bcs L61FF
lda L600B,x
sta (L0088),y
dex
L61FF: .byte $20
.byte $20
L6201: .byte $62
bcs L620A
lda L600B,x
sta (L0088),y
dex
L620A: jsr L6220
bcs L6215
lda L600B,x
sta (L0088),y
dex
L6215: ldy $85
L6217: dey
cpy $84
bne L61DE
L621C: sta $C054
L621F: rts
L6220: lda L622E
eor #$01
cmp #$54
beq L622A
iny
L622A: sta L622E
.byte $8D
L622E: bbs7 $C0,L61F1
plp
rts
L6233: php
sei
lda L5FF3
beq L624C
inc L5FF3
bmi L624C
beq L6244
dec L5FF3
L6244: bit L5FF2
bmi L624C
jsr L60B2
L624C: plp
rts
php
sei
jsr L61C6
lda #$80
sta L5FF2
plp
rts
L625A: php
sei
jsr L61C6
dec L5FF3
plp
L6263: rts
L6264: brk
L6265: bit L6339
bpl L627C
lda L7D74
bne L627C
dec L6264
lda L6264
bpl L6263
lda #$02
sta L6264
L627C: ldx #$02
L627E: lda L5FF8,x
cmp L5FF4,x
bne L628B
dex
bpl L627E
bmi L629F
L628B: jsr L61C6
ldx #$02
stx L5FF2
L6293: lda L5FF8,x
sta L5FF4,x
dex
bpl L6293
jsr L60A8
L629F: bit L851C
bmi L62A7
jsr L62BA
L62A7: bit L851C
bpl L62B1
lda #$00
sta L5FFC
L62B1: lda L7D74
beq L62B9
jsr L7EF5
L62B9: rts
L62BA: ldy #$14
jsr L6313
bit L5FFF
bmi L62D9
ldx L851D
lda $03B8,x
sta L5FF8
lda $04B8,x
sta L5FF9
lda $0438,x
sta L5FFA
L62D9: ldy L5FFD
beq L62EF
L62DE: lda L5FF8
asl a
sta L5FF8
lda L5FF9
rol a
sta L5FF9
dey
bne L62DE
L62EF: ldy L5FFE
beq L62FE
lda L5FFA
L62F7: asl a
dey
bne L62F7
sta L5FFA
L62FE: bit L5FFF
bmi L6309
lda $06B8,x
sta L5FFC
L6309: rts
lda L6142
ldx L6143
jmp L5EBB
L6313: bit L851C
bmi L62B9
bit L5FFF
bmi L6332
pha
.byte $AE
.byte $1D
L6320: sta $86
bit #$A9
brk
sta L0088
lda (L0088),y
sta L0088
pla
ldy L851E
jmp (L0088)
L6332: jmp (L6000)
L6335: brk
L6336: brk
L6337: brk
L6338: brk
L6339: brk
L633A: brk
L633B: brk
L633C: brk
L633D: brk
L633E: brk
L633F: brk
L6340: brk
php
pla
sta L6340
ldx #$04
L6348: .byte $B5
L6349: .byte $82
sta L6335,x
dex
bpl L6348
lda #$7F
sta L5F3F
lda $87
sta L5F40
lda L0088
sta L5F41
lda $89
sta L6835
.byte $A5
L6365: txa
sta L6836
L6369: lda $8B
sta L633B
.byte $A5
L636F: sty $3C8D
.byte $63
.byte $20
.byte $6F
L6375: stz $20
sta ($64),y
ldy #$02
lda ($87),y
tax
stx L6822
dex
stx L78CB
inx
inx
inx
stx L6833
inx
stx L78CD
stx L682B
stx L6839
stx L6841
inx
stx L78D3
stx L78CF
stx L6594
stx L659C
dex
stx L6847
clc
ldy #$00
L63AC: txa
adc L6847,y
iny
sta L6847,y
cpy #$0E
bcc L63AC
lda #$01
sta L5FFD
lda #$00
sta L5FFE
bit L6336
bvs L63D1
lda #$02
sta L5FFD
lda #$01
sta L5FFE
L63D1: ldx L6338
jsr L84BD
bit L6338
bpl L63F6
cpx #$00
bne L63E5
lda #$92
jmp L40B1
L63E5: lda L6338
and #$7F
beq L63F6
cpx L6338
beq L63F6
lda #$91
jmp L40B1
L63F6: stx L6338
lda #$80
sta L633F
lda L6338
bne L640D
bit L6339
bpl L640D
lda #$00
sta L6339
L640D: ldy #$03
lda L6338
sta (L0080),y
iny
lda L6339
sta (L0080),y
bit L6339
bpl L642A
.byte $2C
L6420: rmb3 $63
bpl L642A
jsr MLI
.byte $40
.addr L6469
L642A: lda $FBB3
pha
lda #$06
sta $FBB3
ldy #$12
lda #$01
bit L6339
bpl L643F
cli
ora #$08
L643F: jsr L6313
pla
sta $FBB3
jsr L5E51
jsr L6067
jsr L67D8
lda #$00
sta L700C
L6454: jsr L653F
jsr L6588
jsr A2D
.byte $08
.addr L65AA
jsr A2D
.byte $11
L6464: .addr L659A
jmp L6556
L6469: .byte $02
L646A: brk
sed
.byte $66
L646D: .byte $01
L646E: brk
L646F: lda #$00
sta L633A
lda L6339
beq L648B
cmp #$01
beq L6486
cmp #$03
bne L648C
lda #$80
sta L633A
L6486: lda #$80
sta L6339
L648B: rts
L648C: lda #$93
jmp L40B1
L6491: lda L6337
beq L649F
cmp #$01
beq L64A4
lda #$90
jmp L40B1
L649F: lda #$80
sta L6337
L64A4: rts
ldy #$12
lda #$00
jsr L6313
ldy #$13
jsr L6313
bit L6339
bpl L64C7
bit L6337
bpl L64C7
lda L646A
sta L646E
jsr MLI
.byte $41
.addr L646D
L64C7: lda L6340
pha
plp
lda #$00
sta L633F
rts
lda L0082
cmp #$01
bne L64E5
lda $84
bne L64F6
sta L6522
lda L0083
sta L6521
rts
L64E5: cmp #$02
bne L6508
lda $84
bne L64FF
sta L6538
lda L0083
sta L6537
rts
L64F6: lda #$00
sta L6521
sta L6522
rts
L64FF: lda #$00
sta L6537
sta L6538
rts
L6508: lda #$94
jmp L40B1
L650D: lda L6522
beq L651D
jsr L653F
jsr L651E
php
jsr L6556
plp
L651D: rts
L651E: .byte $6C
.byte $21
L6520: .byte $65
L6521: brk
L6522: brk
L6523: lda L6538
beq L6533
jsr L653F
jsr L6534
php
jsr L6556
plp
L6533: rts
L6534: jmp (L6537)
L6537: brk
L6538: brk
L6539: brk
L653A: brk
L653B: brk
L653C: jsr L625A
L653F: lda L0080
sta L6539
L6544: lda $81
.byte $8D
L6547: dec a
adc $AD
ora $8D5F,x
.byte $3B
L654E: adc $4E
.byte $1B
.byte $5F
L6552: rts
L6553: jsr L6233
L6556: asl L5F1B
lda L6539
sta L0080
.byte $AD
dec a
L6560: adc $85
L6562: .byte $81
L6563: .byte $A5
L6564: .byte $F4
.byte $A6
L6566: .byte $F5
L6567: sta L0082
stx L0083
.byte $AD
L656C: .byte $3B
.byte $65
L656E: .byte $8D
.byte $1D
L6570: .byte $5F
.byte $A0
L6572: .byte $23
L6573: .byte $B1
L6574: .byte $82
L6575: sta $D0,y
dey
bpl L6573
jmp L5EA4
L657E: lda L6586
ldx L6587
bne L6567
L6586: .byte $1E
L6587: .byte $5F
L6588: jsr L657E
jsr A2D
.byte $06
.addr L6592
rts
L6592: brk
brk
L6594: ora a:L0000
jsr L0080
L659A: brk
brk
L659C: brk
brk
bbr2 $02,L6560
brk
brk
brk
brk
brk
brk
brk
brk
brk
L65AA: eor $AA,x
eor $AA,x
eor $AA,x
eor $AA,x
brk
bit L633F
bmi L65CD
lda L0082
sta L6000
lda L0083
sta L6001
lda L65D2
ldx L65D3
ldy #$02
jmp L5EBD
L65CD: lda #$95
jmp L40B1
L65D2: sed
L65D3: bbr5 $18,L6566
ora ($38,x)
php
bit L6339
bpl L65E1
sei
bmi L65E4
L65E1: jsr L6663
L65E4: jsr L67FE
bcs L6604
plp
php
bcc L65F0
sta L6752
L65F0: tax
ldy #$00
L65F3: lda L6754,x
sta (L0080),y
inx
iny
cpy #$04
bne L65F3
lda #$00
sta (L0080),y
beq L6607
L6604: jsr L6645
L6607: plp
bit L6339
bpl L660E
cli
L660E: rts
php
sei
lda L0082
bmi L6626
cmp #$06
bcs L663B
cmp #$03
beq L6626
ldx L0083
.byte $A4
L6620: sty $A5
sta $20
.byte $19
.byte $7E
L6626: jsr L67E4
bcs L663F
tax
ldy #$00
L662E: lda (L0080),y
sta L6754,x
inx
iny
cpy #$04
bne L662E
plp
rts
L663B: lda #$98
bmi L6641
L663F: lda #$99
L6641: plp
jmp L40B1
L6645: lda #$00
bit L5FFC
bpl L664E
lda #$04
L664E: ldy #$00
sta (L0080),y
iny
lda L5FF3,y
sta (L0080),y
iny
cpy #$05
.byte $D0
L665C: inc $60,x
L665E: brk
L665F: brk
L6660: brk
brk
L6662: brk
L6663: bit L6339
bpl L666D
lda #$97
jmp L40B1
L666D: sec
.byte $20
L666F: ora $9065
rmb7 $AD
.byte $62
cpy #$0A
lda $C061
and #$80
rol a
rol a
sta L6662
jsr L7F66
jsr L6265
lda L5FFC
asl a
eor L5FFC
bmi L66B9
bit L5FFC
bmi L66EA
bit L6813
bpl L66B9
lda L7D74
bne L66B9
lda $C000
bpl L66EA
and #$7F
sta L665F
bit $C010
lda L6662
sta L6660
lda #$03
sta L665E
bne L66D8
L66B9: bcc L66C8
lda L6662
beq L66C4
lda #$05
bne L66CA
L66C4: lda #$01
bne L66CA
L66C8: lda #$02
L66CA: sta L665E
ldx #$02
L66CF: lda L5FF4,x
sta L665F,x
dex
bpl L66CF
L66D8: jsr L67E4
tax
ldy #$00
L66DE: lda L665E,y
sta L6754,x
inx
iny
cpy #$04
bne L66DE
L66EA: jmp L6523
L66ED: brk
brk
brk
brk
brk
brk
brk
brk
brk
L66F6: brk
L66F7: brk
cld
lda $C01C
sta L66F6
lda $C018
sta L66F7
lda $C054
sta $C001
ldx #$08
L670D: lda L0082,x
sta L66ED,x
dex
bpl L670D
ldy #$13
jsr L6313
bcs L6720
jsr L666D
clc
L6720: bit L633A
bpl L6726
clc
L6726: ldx #$08
L6728: lda L66ED,x
sta L0082,x
dex
bpl L6728
lda $C054
sta $C000
lda L66F6
bpl L673E
lda $C055
L673E: lda L66F7
bpl L6746
sta $C001
L6746: rts
lda L6750
ldx L6751
jmp L5EBB
L6750: .byte $F9
L6751: .byte $66
L6752: brk
L6753: brk
L6754: brk
L6755: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L67D8: php
sei
lda #$00
sta L6752
sta L6753
plp
rts
L67E4: lda L6753
cmp #$80
bne L67EF
lda #$00
bcs L67F2
L67EF: clc
L67F0: adc #$04
L67F2: cmp L6752
beq L67FC
sta L6753
clc
rts
L67FC: sec
rts
L67FE: .byte $AD
.byte $52
L6800: rmb6 $CD
.byte $53
rmb6 $F0
inc $C9,x
bra $67D9
tsb $A9
brk
bcs L6811
L680E: clc
adc #$04
L6811: clc
rts
L6813: bra L6823
.byte $13
pla
ror L0082
ror L6813
rts
L681D: .byte $02
L681E: .byte $09
L681F: .byte $10
L6820: .byte $09
L6821: .byte $1E
L6822: brk
L6823: brk
L6824: brk
L6825: .byte $FF
.byte $FF
L6827: bbs7 $FF,$685A
.byte $02
L682B: .byte $0C
brk
L682D: brk
brk
brk
brk
L6831: brk
brk
L6833: .byte $0B
brk
L6835: brk
L6836: brk
L6837: brk
brk
L6839: .byte $0C
brk
L683B: brk
brk
L683D: brk
brk
L683F: brk
L6840: brk
L6841: .byte $0C
brk
L6843: brk
L6844: brk
L6845: brk
L6846: brk
L6847: .byte $0C
L6848: clc
bit L0030
bit L5448,x
rts
jmp (L8478)
bcc L67F0
L6854: tay
.byte $B4
L6856: .byte $1E
L6857: .byte $1F
L6858: .byte $1D
L6859: ora ($02,x)
L685B: .byte $1E
L685C: .byte $FF
.byte $01
L685E: .byte $1D
L685F: .byte $25
L6860: pla
L6861: .byte $37
L6862: pla
L6863: .byte $5D
L6864: pla
L6865: phy
L6866: pla
L6867: lda L6823
sta L0082
lda L6824
sta L0083
ldy #$00
.byte $B1
L6874: .byte $82
sta $A8
rts
L6878: stx $A7
lda #$02
clc
L687D: dex
bmi L6884
adc #$0C
bne L687D
L6884: adc L6823
.byte $85
L6888: .byte $AB
lda L6824
adc #$00
sta $AC
ldy #$0B
L6892: lda ($AB),y
sta $AF,y
dey
bpl L6892
ldy #$05
L689C: lda ($B3),y
sta $BA,y
dey
bne L689C
lda ($B3),y
sta $AA
rts
L68A9: ldy #$0B
L68AB: lda $AF,y
sta ($AB),y
dey
bpl L68AB
ldy #$05
L68B5: lda $BA,y
sta ($B3),y
dey
bne L68B5
rts
L68BE: stx $A9
lda #$06
clc
L68C3: dex
bmi L68CA
adc #$06
bne L68C3
L68CA: adc $B3
sta $AD
lda $B4
adc #$00
sta $AE
ldy #$05
L68D6: lda ($AD),y
sta $BF,y
dey
bpl L68D6
rts
L68DF: ldy #$05
L68E1: lda $BF,y
sta ($AD),y
dey
bpl L68E1
rts
L68EA: sty $EC
ldy #$00
sty $ED
L68F0: sta $EA
stx $EB
rts
L68F5: sta $F0
jmp L4DAF
L68FA: jsr L6906
jmp L58E8
L6900: jsr L6906
jmp L5938
L6906: sta L0082
stx L0083
clc
adc #$01
bcc L6910
inx
L6910: sta $A1
stx $A2
ldy #$00
lda (L0082),y
sta $A3
rts
L691B: jsr A2D
.byte $2A
.addr L0082
lda L0082
rts
L6924: brk
L6925: brk
lda #$00
sta L633D
sta L633E
lda L0080
sta L6823
lda $81
sta L6824
jsr L6867
jsr L653C
jsr L657E
lda L685F
.byte $AE
rts
L6946: pla
jsr L6A66
lda #$0C
ldx #$00
ldy L6822
iny
L6952: .byte $20
L6953: nop
pla
ldx #$00
L6957: jsr L6878
lda $EA
ldx $EB
sta $B5
.byte $86
L6961: ldx $38,y
.byte $E9
L6964: php
.byte $B0
L6966: ora ($CA,x)
L6968: sta $B7
stx $B8
L696C: sta $BB
stx $BC
ldx #$00
stx $C5
L6974: stx $C6
L6976: .byte $20
L6977: ldx $2468,y
bbs3 $70,L69B4
lda $C3
ldx $C4
jsr L68FA
sta L0082
stx L0083
lda $BF
and #$03
bne L6997
lda $C1
bne L6997
lda L6820
bne L699A
L6997: lda L6821
L699A: clc
adc L0082
sta L0082
bcc L69A3
inc L0083
L69A3: sec
sbc $C5
lda L0083
sbc $C6
bmi L69B4
lda L0082
sta $C5
lda L0083
sta $C6
L69B4: ldx $A9
inx
cpx $AA
bne L6976
lda $AA
tax
ldy L6822
iny
iny
iny
jsr L4F70
pha
lda $C5
sta $A1
lda $C6
sta $A2
lda #$07
sta $A3
lda #$00
sta $A4
jsr L5698
ldy $A1
iny
iny
pla
tax
jsr L4F70
sta L6924
sty L6925
sec
sbc L633D
tya
sbc L633E
bmi L6A00
lda L6924
sta L633D
lda L6925
sta L633E
L6A00: lda $BB
clc
adc $C5
sta $BD
lda $BC
adc #$00
sta $BE
jsr L68A9
lda $B1
ldx $B2
jsr L6900
jsr L6A5C
lda $EA
ldx $EB
clc
adc #$08
bcc L6A24
inx
L6A24: sta $B9
stx $BA
jsr L68A9
lda #$0C
ldx #$00
jsr L5758
ldx $A7
inx
cpx $A8
beq L6A3C
jmp L6957
L6A3C: lda #$00
sta L7D7A
sta L7D7B
jsr L6553
sec
lda L633B
sbc L633D
lda L633C
sbc L633E
bpl L6A5B
lda #$9C
jmp L40B1
L6A5B: rts
L6A5C: ldx $A7
jsr L6878
ldx $A9
jmp L68BE
L6A66: sta L6A7B
stx L6A7B+1
sta L6A86
stx L6A86+1
lda #$00
jsr L68F5
jsr A2D
.byte $11
L6A7B: .addr L0000
lda #$04
jsr L68F5
jsr A2D
.byte $12
L6A86: .addr L0000
rts
L6A89: jsr L6A94
bne L6A93
lda #$9A
jmp L40B1
L6A93: rts
L6A94: lda #$00
L6A96: sta $C6
jsr L6867
ldx #$00
L6A9D: jsr L6878
bit $C6
bvs L6ACA
bmi L6AAE
lda $AF
cmp L00C7
bne L6ACF
beq L6AD9
L6AAE: lda L5FF4
ldx L5FF5
cpx $B8
bcc L6ACF
bne L6ABE
cmp $B7
bcc L6ACF
L6ABE: cpx $BA
bcc L6AD9
bne L6ACF
cmp $B9
bcc L6AD9
bcs L6ACF
L6ACA: jsr L6ADC
bne L6AD9
L6ACF: ldx $A7
inx
cpx $A8
bne L6A9D
lda #$00
rts
L6AD9: lda $AF
rts
L6ADC: ldx #$00
L6ADE: jsr L68BE
ldx $A9
inx
bit $C6
bvs L6AFA
bmi L6AF0
cpx $C8
bne L6B16
beq L6B1C
L6AF0: lda L6847,x
cmp L5FF6
bcs L6B1C
bcc L6B16
L6AFA: lda $C9
and #$7F
cmp $C1
beq L6B06
cmp $C2
bne L6B16
L6B06: cmp #$20
bcc L6B1C
lda $BF
and #$C0
bne L6B16
lda $BF
and $CA
bne L6B1C
L6B16: .byte $E4
L6B17: tax
bne L6ADE
ldx #$00
L6B1C: rts
L6B1D: lda L00C7
bne L6B26
lda L6BD9
sta L00C7
L6B26: jsr L6A89
L6B29: jsr L653C
jsr L657E
jsr L6B35
jmp L6553
L6B35: ldx #$01
L6B37: lda $B7,x
sta L682D,x
lda $B9,x
sta L6831,x
lda $BB,x
sta L6837,x
sta L683F,x
lda $BD,x
sta L683B,x
sta L6843,x
dex
bpl L6B37
lda #$02
jsr L68F5
jsr A2D
.byte $11
.addr L682D
rts
lda $C9
cmp #$1B
bne L6B70
lda $CA
bne L6B70
jsr L7D61
jmp L6BDB
L6B70: lda #$C0
jsr L6A96
beq L6B88
lda $B0
bmi L6B88
lda $BF
and #$C0
bne L6B88
lda $AF
sta L6BD9
bne L6B8B
L6B88: lda #$00
tax
L6B8B: ldy #$00
sta (L0080),y
iny
txa
sta (L0080),y
bne L6B29
rts
L6B96: jsr L6A89
jsr L6ADC
cpx #$00
L6B9E: rts
L6B9F: jsr L6B96
bne L6B9E
lda #$9B
jmp L40B1
jsr L6B9F
asl $BF
ror $C9
ror $BF
jmp L68DF
jsr L6B9F
lda $C9
beq L6BC2
lda #$20
ora $BF
bne L6BC6
L6BC2: lda #$DF
and $BF
L6BC6: sta $BF
jmp L68DF
jsr L6A89
asl $B0
ror $C8
ror $B0
ldx $A7
jmp L68A9
L6BD9: brk
L6BDA: brk
L6BDB: jsr L7ECD
jsr L6867
jsr L653F
jsr L657E
bit L7D74
bpl L6BF2
jsr L7FE1
jmp L6C23
L6BF2: lda #$00
sta L6BD9
sta L6BDA
jsr L691B
L6BFD: bit L7D81
.byte $10
L6C01: .byte $03
jmp L8149
L6C05: jsr A2D
.byte $0E
.addr L0083
jsr A2D
.byte $13
.addr L6825
bne L6C58
lda L6BD9
beq L6C23
jsr A2D
.byte $13
.addr L6837
bne L6C73
jsr L6EA1
L6C23: jsr L691B
beq L6C2C
cmp #$02
bne L6BFD
L6C2C: lda L6BDA
bne L6C37
jsr L6D23
jmp L6C40
L6C37: jsr L625A
jsr L657E
jsr L6CF4
L6C40: jsr L6556
lda #$00
ldx L6BDA
beq L6C55
lda L6BD9
ldy $A7
.byte $8C
L6C50: ply
adc $7B8E,x
.byte $7D
L6C55: jmp L5EBB
L6C58: jsr L6EA1
L6C5B: lda #$80
jsr L6A96
cmp L6BD9
L6C63: beq L6C23
pha
jsr L6D23
pla
sta L6BD9
jsr L6D26
jmp L6C23
L6C73: lda #$80
sta $C6
jsr L6ADC
cpx L6BDA
beq L6C23
lda $B0
ora $BF
and #$C0
beq L6C89
ldx #$00
L6C89: txa
pha
jsr L6EAA
pla
sta L6BDA
jsr L6EAA
jmp L6C23
L6C98: lda $BC
lsr a
lda $BB
ror a
tax
lda L4821,x
sta L0082
lda $BE
lsr a
lda $BD
ror a
tax
lda L4821,x
sec
sbc L0082
sta $90
lda L6835
sta $8E
lda L6836
sta $8F
ldy $AA
ldx L6847,y
inx
stx L0083
stx L6845
stx L683D
ldx L6822
inx
inx
inx
stx L6841
stx L6839
rts
L6CD8: lda L4A21,x
clc
adc L0082
sta $84
lda L4AE1,x
ora #$20
sta $85
rts
L6CE8: lda $8E
sec
adc $90
sta $8E
bcc L6CF3
inc $8F
L6CF3: rts
L6CF4: jsr L6C98
L6CF7: jsr L6CD8
sta $C055
ldy $90
L6CFF: lda ($8E),y
sta ($84),y
dey
bpl L6CFF
jsr L6CE8
sta $C054
ldy $90
L6D0E: lda ($8E),y
sta ($84),y
dey
bpl L6D0E
jsr L6CE8
inx
cpx L0083
bcc L6CF7
beq L6CF7
jmp L6233
L6D22: rts
L6D23: clc
bcc L6D27
L6D26: sec
L6D27: lda L6BD9
beq L6D22
php
sta L00C7
jsr L6A94
jsr L625A
jsr L6B35
plp
bcc L6CF4
jsr L6C98
L6D3E: jsr L6CD8
sta $C055
ldy $90
L6D46: lda ($84),y
sta ($8E),y
dey
bpl L6D46
jsr L6CE8
sta $C054
ldy $90
L6D55: lda ($84),y
sta ($8E),y
dey
bpl L6D55
jsr L6CE8
inx
.byte $E4
L6D61: .byte $83
bcc L6D3E
beq L6D3E
jsr L657E
lda L6861
ldx L6862
jsr L6A66
inc L683F
L6D75: bne L6D7A
inc L6840
L6D7A: lda L6843
bne L6D82
dec L6844
L6D82: dec L6843
jsr L6A5C
ldx #$00
L6D8A: jsr L68BE
bit $BF
bvc L6D94
jmp L6E18
L6D94: lda $BF
and #$20
beq L6DBD
lda L681D
jsr L6E25
lda L6858
sta L685E
lda $BF
and #$04
beq L6DB1
lda $C0
sta L685E
L6DB1: lda L6863
ldx L6864
jsr L6900
jsr L6A5C
L6DBD: lda L681E
jsr L6E25
lda $C3
ldx $C4
jsr L6900
jsr L6A5C
lda $BF
and #$03
bne L6DE0
lda $C1
beq L6E0A
lda L6859
sta L685B
jmp L6E0A
L6DE0: cmp #$01
bne L6DED
lda L6857
sta L685B
jmp L6DF3
L6DED: lda L6856
sta L685B
L6DF3: lda $C1
sta L685C
lda L681F
jsr L6E92
lda L6865
ldx L6866
jsr L6900
jsr L6A5C
L6E0A: bit $B0
bmi L6E12
bit $BF
bpl L6E18
L6E12: jsr L6E36
jmp L6E18
L6E18: ldx $A9
inx
cpx $AA
beq L6E22
jmp L6D8A
L6E22: jmp L6233
L6E25: ldx $A9
ldy L6848,x
dey
ldx $BC
clc
adc $BB
bcc L6E33
inx
L6E33: jmp L68EA
L6E36: ldx $A9
lda L6847,x
sta L6E8C
inc L6E8C
lda L6848,x
sta L6E90
clc
.byte $A5
L6E49: .byte $BB
adc #$05
sta L6E8A
lda $BC
adc #$00
sta L6E8B
sec
lda $BD
sbc #$05
sta L6E8E
lda $BE
.byte $E9
L6E61: brk
sta L6E8F
L6E65: jsr A2D
.byte $08
L6E69: .addr L6E82
lda #$01
.byte $20
.byte $F5
L6E6F: pla
jsr A2D
.byte $11
L6E74: .addr L6E8A
jsr A2D
.byte $08
.addr L5F2E
lda #$02
jsr L68F5
rts
L6E82: dey
eor L0088,x
eor L0088,x
eor L0088,x
.byte $55
L6E8A: brk
L6E8B: brk
L6E8C: brk
brk
L6E8E: brk
L6E8F: brk
L6E90: brk
brk
L6E92: sta L0082
lda $BD
ldx $BE
sec
sbc L0082
bcs L6E9E
dex
L6E9E: jmp L68F0
L6EA1: jsr L6EAA
lda #$00
sta L6BDA
L6EA9: rts
L6EAA: ldx L6BDA
beq L6EA9
ldy L6846,x
iny
sty L6841
ldy L6847,x
sty L6845
jsr L625A
lda #$02
jsr L68F5
jsr A2D
.byte $11
.addr L683F
jmp L6233
ldx #$03
L6ECF: lda L0082,x
sta L6856,x
dex
bpl L6ECF
lda L5F40
sta L0082
lda L5F41
sta L0083
ldy #$00
lda (L0082),y
bmi L6F02
lda #$02
sta L681D
lda #$09
sta L681E
lda #$10
sta L681F
lda #$09
sta L6820
lda #$1E
sta L6821
bne L6F1B
L6F02: lda #$02
sta L681D
lda #$10
sta L681E
lda #$1E
sta L681F
lda #$10
sta L6820
lda #$33
sta L6821
L6F1B: rts
jsr L6B9F
lda $C9
beq L6F30
lda #$04
ora $BF
sta $BF
lda $CA
sta $C0
jmp L68DF
L6F30: lda #$FB
and $BF
sta $BF
jmp L68DF
L6F39: brk
brk
L6F3B: brk
brk
.byte $13
asl a
adc ($6F,x)
L6F41: brk
brk
L6F43: brk
L6F44: brk
.byte $13
L6F46: asl a
.byte $82
.byte $6F
L6F49: brk
brk
L6F4B: brk
brk
.byte $14
L6F4E: ora #$A3
.byte $6F
L6F51: brk
L6F52: brk
L6F53: brk
brk
ora ($09)
cmp ($6F,x)
L6F59: brk
brk
brk
brk
trb $0A
cpx #$6F
brk
brk
L6F63: brk
L6F64: brk
clc
L6F66: brk
brk
ror L0000
rti
.byte $01
L6F6C: .byte $03
L6F6D: .byte $30
L6F6E: brk
L6F6F: tsb $017C
.byte $3F
rti
L6F74: ora ($03,x)
L6F76: rti
ora ($03,x)
L6F79: rti
bbr7 $03,L6F7D
L6F7D: brk
brk
ror L7F7F,x
ror L7F7F,x
brk
brk
brk
rti
bbr7 $03,L6FCC
ora ($03,x)
rti
ora ($03,x)
jmp (L3F01,x)
bmi L6F96
L6F96: tsb $0140
.byte $03
brk
.byte $66
L6F9C: brk
brk
clc
brk
brk
brk
brk
brk
brk
brk
brk
clc
rti
brk
asl L4040,x
adc $304F,y
brk
jmp L000C
jmp L0030
jmp L7940
bbr4 L0000,L6FDB
rti
brk
clc
rti
brk
brk
brk
ora (L000C,x)
brk
ora ($3C,x)
brk
.byte $79
.byte $4F
L6FCC: ora ($19,x)
brk
asl $19
brk
clc
ora $0600,y
adc $014F,y
ora ($3C,x)
L6FDB: brk
ora (L000C,x)
brk
brk
bbr7 $7F,L7062
ora (L0000,x)
rti
adc L403F,y
ora L4F70,y
ora L4C30,y
ora L4C30,y
adc L4C3F,y
adc (L0000,x)
jmp L7F61
bbr4 $01,L6FFD
L6FFD: rti
.byte $7F
.byte $7F
L7000: .byte $7F
L7001: .byte $39
L7002: .byte $6F
L7003: .byte $41
L7004: .byte $6F
L7005: .byte $49
L7006: .byte $6F
L7007: .byte $51
L7008: .byte $6F
L7009: .byte $59
L700A: .byte $6F
L700B: brk
L700C: brk
L700D: brk
L700E: brk
L700F: brk
L7010: brk
.byte $D3
.byte $6F
L7013: lda $7011
sta $A7
lda $7012
sta $A8
lda L700B
ldx L700C
bne L7038
L7025: rts
L7026: lda $A9
sta $A7
lda $AA
sta $A8
ldy #$39
lda ($A9),y
beq L7025
tax
dey
lda ($A9),y
L7038: sta L700E
stx L700F
L703E: lda L700E
ldx L700F
L7044: sta $A9
stx $AA
ldy #$0B
L704A: lda ($A9),y
sta $AB,y
dey
bpl L704A
ldy #$23
L7054: lda ($A9),y
sta $A3,y
dey
cpy #$13
bne L7054
L705E: lda $A9
ldx $AA
L7062: rts
L7063: jsr L7013
beq L7073
L7068: lda $AB
cmp L0082
beq L705E
.byte $20
L706F: rol $70
bne L7068
L7073: rts
L7074: .byte $20
.byte $63
L7076: bvs L7068
.byte $01
L7079: rts
lda #$9F
jmp L40B1
L707F: .byte $20
L7080: brk
rti
.byte $12
.addr L00C7
rts
L7086: jsr A2D
.byte $13
.addr L00C7
rts
L708D: ldx #$03
L708F: lda $B7,x
sta L00C7,x
dex
bpl L708F
ldx #$02
L7098: lda $C3,x
sec
sbc $BF,x
tay
lda $C4,x
sbc $C0,x
pha
tya
clc
adc L00C7,x
sta $CB,x
pla
adc $C8,x
sta $CC,x
dex
dex
bpl L7098
L70B2: lda #$C7
ldx #$00
rts
L70B7: jsr L708D
lda L00C7
bne L70C0
dec $C8
L70C0: dec L00C7
bit $B0
bmi L70D0
lda $AC
and #$04
bne L70D0
lda #$01
bne L70D2
L70D0: lda #$15
L70D2: clc
adc $CB
sta $CB
bcc L70DB
inc $CC
L70DB: lda #$01
bit $AF
bpl L70E3
lda #$0B
L70E3: clc
adc $CD
sta $CD
bcc L70EC
inc $CE
L70EC: lda #$01
and $AC
bne L70F5
lda L78CF
L70F5: sta L0082
lda $C9
sec
sbc L0082
sta $C9
bcs L70B2
dec $CA
bcc L70B2
L7104: jsr L70B7
lda $CB
ldx $CC
sec
sbc #$14
bcs L7111
dex
L7111: sta L00C7
stx $C8
lda $AC
and #$01
bne L70B2
lda $C9
clc
adc L78CD
sta $C9
bcc L70B2
inc $CA
bcs L70B2
L7129: jsr L70B7
L712C: lda $CD
ldx $CE
sec
sbc #$0A
bcs L7136
dex
L7136: sta $C9
stx $CA
jmp L70B2
L713D: jsr L7104
jmp L712C
L7143: jsr L70B7
lda $C9
clc
adc L78CD
sta $CD
lda $CA
adc #$00
sta $CE
jmp L70B2
L7157: jsr L7143
lda L00C7
ldx $C8
clc
adc #$0C
bcc L7164
inx
L7164: sta L00C7
stx $C8
clc
adc #$0E
bcc L716E
inx
L716E: sta $CB
stx $CC
lda $C9
ldx $CA
clc
adc #$02
bcc L717C
inx
L717C: sta $C9
stx $CA
clc
adc L78CB
bcc L7187
inx
L7187: sta $CD
stx $CE
jmp L70B2
L718E: jsr L70B7
jsr L6A66
lda $AC
and #$01
bne L71AA
jsr L7143
jsr L6A66
jsr L73BF
lda $AD
ldx $AE
jsr L6900
L71AA: jsr L703E
bit $B0
bpl L71B7
jsr L7104
jsr L707F
L71B7: bit $AF
bpl L71C1
jsr L7129
jsr L707F
L71C1: lda $AC
and #$04
beq L71D3
jsr L713D
jsr L707F
jsr L7104
jsr L707F
L71D3: jsr L703E
lda $AB
cmp L700D
bne L71E3
jsr L6588
jmp L720B
L71E3: rts
L71E4: .byte $01
L71E5: .byte $FF
L71E6: brk
.byte $FF
brk
L71E9: bbs7 L0000,$71EB
brk
L71ED: .byte $FF
L71EE: jsr L7157
lda $C9
and #$01
beq L71FE
jsr A2D
.byte $08
.addr L71E5
rts
L71FE: jsr A2D
.byte $08
.addr L71E6
rts
L7205: lda #$01
ldx #$00
beq L720F
L720B: lda #$03
ldx #$01
L720F: stx L71E4
jsr L68F5
lda $AC
and #$02
beq L7255
lda $AC
and #$01
bne L7255
jsr L7157
jsr L707F
jsr L71EE
lda L00C7
ldx $C8
sec
sbc #$09
bcs L7234
dex
L7234: sta $92
stx $93
clc
adc #$06
bcc L723E
inx
L723E: sta $96
stx $97
lda $C9
L7244: sta $94
lda $CA
sta $95
lda $CD
sta $98
lda $CE
sta $99
jsr L5040
L7255: lda $AC
and #$01
bne L72C9
jsr L7143
jsr L73BF
L7261: jsr L5907
L7264: .byte $20
L7265: .byte $EE
L7266: adc ($A5),y
wai
L7269: ldx $CC
clc
adc #$03
bcc L7271
inx
L7271: tay
lda $AC
L7274: and #$02
.byte $D0
L7277: php
tya
sec
sbc #$1A
bcs L727F
dex
L727F: tay
L7280: tya
ldy $96
sty $CB
ldy $97
sty $CC
ldy $92
sty $96
ldy $93
sty $97
sta $92
stx $93
lda $96
sec
sbc #$0A
sta $96
bcs L72A0
dec $97
L72A0: jsr L5040
lda $CB
clc
adc #$0A
sta $92
lda $CC
adc #$00
sta $93
jsr L7143
lda $CB
sec
sbc #$03
sta $96
lda $CC
sbc #$00
sta $97
jsr L5040
jsr A2D
.byte $08
.addr L5F2E
L72C9: jsr L703E
bit $B0
bpl L7319
jsr L7104
ldx #$03
L72D5: lda L00C7,x
sta L6F39,x
sta L6F41,x
dex
bpl L72D5
inc L6F3B
lda $CD
ldx $CE
sec
sbc #$0A
bcs L72ED
dex
L72ED: pha
lda $AC
and #$04
bne L72F8
bit $AF
bpl L7300
L72F8: pla
sec
sbc #$0B
bcs L72FF
dex
L72FF: pha
L7300: pla
sta L6F43
stx L6F44
lda L7003
ldx L7004
jsr L791C
lda L7001
ldx L7002
jsr L791C
L7319: bit $AF
bpl L7363
jsr L7129
ldx #$03
L7322: lda L00C7,x
sta L6F49,x
sta L6F51,x
dex
bpl L7322
lda $CB
ldx $CC
sec
sbc #$14
bcs L7337
dex
L7337: pha
lda $AC
and #$04
bne L7342
bit $B0
bpl L734A
L7342: pla
sec
.byte $E9
L7345: ora $B0,x
ora ($CA,x)
L7349: pha
L734A: pla
sta L6F51
stx L6F52
lda L7007
ldx L7008
jsr L791C
lda L7005
ldx L7006
.byte $20
L7361: .byte $1C
.byte $79
L7363: lda #$00
L7365: jsr L68F5
.byte $A5
L7369: bcs $7394
ora ($F0,x)
.byte $0D
.byte $A9
L736F: bra $72F6
sty $E4AD
.byte $71
L7375: jsr L79A0
jsr L703E
L737B: lda $AF
and #$01
beq L738E
lda #$00
sta $8C
lda L71E4
jsr L79A0
jsr L703E
L738E: lda $AC
and #$04
beq L73BE
jsr L713D
lda L71E4
bne L73A6
lda #$C7
ldx #$00
jsr L6A66
jmp L73BE
L73A6: ldx #$03
L73A8: lda L00C7,x
sta L6F59,x
dex
bpl L73A8
lda #$04
jsr L68F5
lda L7009
ldx L700A
jsr L791C
L73BE: rts
L73BF: lda $AD
ldx $AE
jsr L68FA
sta L0082
stx L0083
lda L00C7
clc
adc $CB
tay
lda $C8
adc $CC
tax
tya
sec
sbc L0082
tay
txa
sbc L0083
cmp #$80
ror a
sta $EB
tya
ror a
sta $EA
lda $CD
ldx $CE
sec
sbc #$02
bcs L73F0
dex
L73F0: sta $EC
stx $ED
lda L0082
ldx L0083
rts
jsr L653F
jsr A2D
.byte $13
.addr L6825
beq L7416
lda #$01
L7406: ldx #$00
L7408: pha
txa
pha
jsr L6556
pla
tax
pla
ldy #$04
jmp L5EBD
L7416: lda #$00
sta L747A
jsr L7013
beq L7430
L7420: jsr L70B7
jsr L7086
.byte $D0
L7427: tsb $2620
bvs $73BA
ply
stz $D0,x
.byte $F0
L7430: lda #$00
beq L7406
L7434: lda $AC
and #$01
bne L745D
jsr L7143
jsr L7086
beq L745D
lda L747A
bne L7459
lda $AC
and #$02
beq L7459
jsr L7157
jsr L7086
L7453: beq L7459
lda #$05
bne L7472
L7459: lda #$03
bne L7472
L745D: lda L747A
.byte $D0
L7461: trb $A5
.byte $AC
.byte $29
L7465: tsb $F0
asl $3D20
adc ($20),y
stx $70
L746E: .byte $F0
L746F: .byte $06
L7470: lda #$04
L7472: .byte $A6
L7473: .byte $AB
bne L7408
L7476: lda #$02
bne L7472
L747A: brk
lda L0080
sta $A9
lda $81
sta $AA
ldy #$00
lda ($A9),y
bne L748E
lda #$9E
jmp L40B1
L748E: sta L0082
jsr L7063
beq L749A
lda #$9D
jmp L40B1
L749A: lda L0080
sta $A9
lda $81
sta $AA
ldy #$0A
lda ($A9),y
ora #$80
sta ($A9),y
bmi L74BD
jsr L7074
cmp L700B
bne L74BA
cpx L700C
bne L74BA
rts
L74BA: jsr L74F4
L74BD: ldy #$38
lda L700B
sta ($A9),y
iny
lda L700C
sta ($A9),y
lda $A9
pha
lda $AA
pha
jsr L653C
jsr L6588
jsr L7013
beq L74DE
jsr L7205
L74DE: pla
sta L700C
pla
sta L700B
jsr L7013
lda $AB
sta L700D
jsr L718E
jmp L6553
L74F4: ldy #$38
lda ($A9),y
sta ($A7),y
iny
lda ($A9),y
sta ($A7),y
rts
jsr L7074
lda $A9
ldx $AA
ldy #$01
jmp L5EBD
L750C: brk
L750D: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
jsr L7074
lda $AB
cmp L7010
bne L753F
inc L7871
L753F: jsr L653C
jsr L6588
lda L7871
bne L7550
jsr A2D
.byte $06
.addr L78D1
L7550: jsr L718E
jsr L6588
lda L7871
bne L7561
jsr A2D
.byte $06
.addr L78D1
L7561: jsr L703E
lda $F4
L7566: sta L750C
lda $F5
sta L750D
jsr L75C6
php
L7572: lda L758A
ldx L758B
jsr L5EA0
asl L5F1B
plp
bcc L7582
rts
L7582: jsr L758C
L7585: lda #$A3
jmp L40B1
L758A: .byte $0E
L758B: .byte $75
L758C: jsr L6233
lda L750C
ldx L750D
sta $F4
stx $F5
jmp L6567
jsr L40C8
jsr L7074
lda L0083
sta L0080
lda $84
sta $81
ldx #$07
L75AC: lda L659A,x
sta $D8,x
dex
bpl L75AC
jsr L75C6
bcc L7585
ldy #$23
L75BB: lda $D0,y
sta (L0080),y
dey
bpl L75BB
jmp L40BD
L75C6: jsr L708D
ldx #$07
L75CB: lda #$00
sta $9B,x
lda L00C7,x
sta $92,x
dex
bpl L75CB
jsr L50A9
bcs L75DC
rts
L75DC: ldy #$14
L75DE: lda ($A9),y
sta $BC,y
iny
cpy #$38
bne L75DE
ldx #$02
L75EA: lda $92,x
sta $D0,x
lda $93,x
sta $D1,x
lda $96,x
sec
sbc $92,x
sta L0082,x
lda $97,x
sbc $93,x
sta L0083,x
lda $D8,x
sec
sbc $9B,x
sta $D8,x
lda $D9,x
sbc $9C,x
sta $D9,x
lda $D8,x
clc
adc L0082,x
sta $DC,x
lda $D9,x
adc L0083,x
sta $DD,x
dex
dex
bpl L75EA
sec
rts
jsr L7074
lda $A9
clc
adc #$14
sta $A9
bcc L762D
inc $AA
L762D: ldy #$23
L762F: lda (L0082),y
sta ($A9),y
dey
cpy #$10
bcs L762F
rts
jsr L7013
beq L7642
lda $AB
bne L7644
L7642: lda #$00
L7644: ldy #$00
sta (L0080),y
rts
L7649: brk
jsr L7013
beq L7697
jsr L7157
jsr L653F
jsr L6588
lda #$80
L765A: sta L7649
lda #$02
jsr L68F5
jsr L625A
jsr A2D
.byte $11
.addr L00C7
jsr L6233
L766E: .byte $20
L766F: .byte $1B
adc #$C9
.byte $02
beq L768B
jsr A2D
.byte $0E
.addr L5FF4
jsr L7086
eor L7649
bpl L766E
lda L7649
eor #$80
jmp L765A
L768B: jsr L6556
ldy #$00
lda L7649
beq L7697
lda #$01
L7697: sta (L0080),y
rts
brk
L769B: brk
L769C: brk
L769D: brk
L769E: brk
L769F: brk
L76A0: brk
brk
brk
L76A3: brk
L76A4: brk
brk
brk
L76A7: brk
lda #$80
bmi L76AE
lda #$00
L76AE: sta L76A7
jsr L7ECD
ldx #$03
L76B6: lda L0083,x
sta L769B,x
sta L769F,x
lda #$00
sta L76A3,x
dex
bpl L76B6
jsr L7074
bit L7D74
bpl L76D1
jsr L817C
L76D1: jsr L653C
jsr L784C
lda #$02
jsr L68F5
jsr A2D
.byte $08
.addr L65AA
L76E2: jsr L703E
jsr L7749
jsr L70B7
jsr L707F
jsr L6233
L76F1: jsr L691B
cmp #$02
bne L773B
jsr L707F
bit L7D81
bmi L770A
ldx #$03
L7702: lda L76A3,x
bne L7714
dex
bpl L7702
L770A: jsr L6553
lda #$00
L770F: ldy #$05
sta (L0080),y
rts
L7714: ldy #$14
L7716: lda $A3,y
sta ($A9),y
iny
cpy #$24
bne L7716
L7720: jsr L625A
lda $AB
jsr L7872
jsr L653C
bit L7D81
bvc L7733
jsr L8347
L7733: jsr L6553
lda #$80
jmp L770F
L773B: jsr L77E0
beq L76F1
jsr L625A
jsr L707F
jmp L76E2
L7749: ldy #$13
L774B: lda ($A9),y
sta $BB,y
dey
cpy #$0B
bne L774B
ldx #$00
stx L8351
bit L76A7
bmi L777D
L775F: lda $B7,x
clc
adc L76A3,x
L7765: sta $B7,x
lda $B8,x
adc L76A4,x
sta $B8,x
inx
inx
cpx #$04
bne L775F
lda #$12
cmp $B9
bcc L777C
sta $B9
L777C: rts
L777D: lda #$00
sta L83F5
L7782: clc
lda $C3,x
adc L76A3,x
sta $C3,x
lda $C4,x
adc L76A4,x
sta $C4,x
sec
lda $C3,x
sbc $BF,x
sta L0082
lda $C4,x
sbc $C0,x
sta L0083
sec
lda L0082
sbc L00C7,x
lda L0083
sbc $C8,x
bpl L77BC
clc
lda L00C7,x
adc $BF,x
sta $C3,x
lda $C8,x
adc $C0,x
sta $C4,x
jsr L83F6
jmp L77D7
L77BC: sec
lda $CB,x
sbc L0082
lda $CC,x
sbc L0083
bpl L77D7
clc
lda $CB,x
adc $BF,x
sta $C3,x
lda $CC,x
adc $C0,x
sta $C4,x
jsr L83F6
L77D7: inx
inx
cpx #$04
bne L7782
jmp L83FC
L77E0: ldx #$02
ldy #$00
L77E4: lda $84,x
cmp L76A0,x
bne L77EC
iny
L77EC: lda L0083,x
cmp L769F,x
bne L77F4
iny
L77F4: sta L769F,x
sec
sbc L769B,x
sta L76A3,x
lda $84,x
sta L76A0,x
sbc L769C,x
sta L76A4,x
dex
dex
bpl L77E4
cpy #$04
bne L7814
lda L8351
L7814: rts
jsr L7074
jsr L653C
jsr L784C
jsr L74F4
ldy #$0A
lda ($A9),y
and #$7F
sta ($A9),y
jsr L7013
lda $AB
sta L700D
lda #$00
jmp L7872
L7836: jsr L7013
beq L7849
ldy #$0A
lda ($A9),y
and #$7F
sta ($A9),y
jsr L74F4
jmp L7836
L7849: jmp L6454
L784C: jsr L6588
jsr L70B7
ldx #$07
L7854: lda L00C7,x
sta $92,x
dex
bpl L7854
jsr L50A9
ldx #$03
L7860: lda $92,x
sta L78D9,x
L7865: sta L78D1,x
lda $96,x
sta L78DD,x
dex
bpl L7860
rts
L7871: brk
L7872: sta L7010
lda #$00
sta L7871
jsr A2D
.byte $06
.addr L78D1
lda #$00
jsr L68F5
jsr A2D
.byte $08
.addr L65AA
jsr A2D
.byte $11
.addr L78D9
jsr L6553
jsr L7013
beq L78CA
php
sei
jsr L67D8
L789E: jsr L7026
bne L789E
L78A3: jsr L67E4
bcs L78C9
tax
lda #$06
sta L6754,x
lda $AB
sta L6755,x
lda $AB
cmp L700D
beq L78C9
sta L0082
jsr L7063
lda $A7
ldx $A8
jsr L7044
jmp L78A3
L78C9: plp
L78CA: rts
L78CB: php
brk
L78CD: .byte $0C
brk
L78CF: .byte $0D
brk
L78D1: brk
brk
L78D3: ora a:L0000
jsr L0080
L78D9: brk
brk
brk
brk
L78DD: brk
brk
brk
brk
jsr L7074
ldx #$02
L78E6: lda L0083,x
clc
adc $B7,x
sta L0083,x
lda $84,x
adc $B8,x
sta $84,x
dex
dex
bpl L78E6
bmi L790F
jsr L7074
ldx #$02
L78FE: lda L0083,x
sec
sbc $B7,x
sta L0083,x
lda $84,x
sbc $B8,x
sta $84,x
dex
dex
bpl L78FE
L790F: ldy #$05
L7911: lda $7E,y
sta (L0080),y
iny
cpy #$09
bne L7911
rts
L791C: sta L0082
stx L0083
ldy #$03
L7922: lda #$00
sta $8A,y
lda (L0082),y
sta $92,y
dey
bpl L7922
iny
sty $91
ldy #$04
lda (L0082),y
tax
lda L4828,x
sta $90
txa
ldx $93
clc
L7940: adc $92
bcc L7945
inx
L7945: sta $96
stx $97
iny
lda (L0082),y
ldx $95
clc
adc $94
bcc L7954
L7953: inx
L7954: sta $98
stx $99
iny
lda (L0082),y
sta $8E
iny
lda (L0082),y
sta $8F
jmp L51B3
lda $8C
cmp #$01
bne L7971
lda #$80
sta $8C
bne L797C
L7971: cmp #$02
bne L797B
lda #$00
sta $8C
beq L797C
L797B: rts
L797C: jsr L653C
jsr L7013
bit $8C
bpl L798C
lda $B0
ldy #$05
bne L7990
L798C: lda $AF
ldy #$04
L7990: eor $8D
and #$01
eor ($A9),y
sta ($A9),y
lda $8D
jsr L79A0
jmp L6553
L79A0: bne L79AF
jsr L79F1
jsr L657E
jsr A2D
.byte $11
.addr L00C7
rts
L79AF: bit $8C
bmi L79B8
bit $AF
bmi L79BC
L79B7: rts
L79B8: bit $B0
bpl L79B7
L79BC: jsr L657E
jsr L79F1
jsr A2D
.byte $08
.addr L79E7
jsr A2D
.byte $11
.addr L00C7
jsr A2D
.byte $08
.addr L5F2E
bit $8C
bmi L79DD
bit $AF
bvs L79E1
L79DC: rts
L79DD: bit $B0
bvc L79DC
L79E1: jsr L7A73
jmp L6A66
L79E7: cmp $DD77,x
rmb7 $DD
rmb7 $DD
rmb7 L0000
brk
L79F1: bit $8C
bpl L7A34
jsr L7104
lda $C9
clc
adc #$0C
sta $C9
bcc L7A03
inc $CA
L7A03: lda $CD
sec
sbc #$0B
sta $CD
bcs L7A0E
dec $CE
L7A0E: lda $AC
and #$04
bne L7A18
bit $AF
bpl L7A23
L7A18: lda $CD
sec
sbc #$0B
sta $CD
bcs L7A23
dec $CE
L7A23: inc L00C7
bne L7A29
inc $C8
L7A29: lda $CB
bne L7A2F
dec $CC
L7A2F: dec $CB
jmp L7A70
L7A34: jsr L7129
lda L00C7
clc
adc #$15
sta L00C7
bcc L7A42
inc $C8
L7A42: lda $CB
sec
sbc #$15
sta $CB
bcs L7A4D
dec $CC
L7A4D: lda $AC
and #$04
bne L7A57
bit $B0
bpl L7A62
L7A57: lda $CB
sec
sbc #$15
sta $CB
bcs L7A62
dec $CC
L7A62: inc $C9
bne L7A68
inc $CA
L7A68: lda $CD
bne L7A6E
dec $CE
L7A6E: dec $CD
L7A70: jmp L70B2
L7A73: jsr L79F1
jsr L7CE3
jsr L5698
lda $A1
pha
jsr L7CFB
jsr L7CBA
pla
tax
lda $A3
ldy $A4
cpx #$01
beq L7A94
ldx L00A0
jsr L7C93
L7A94: sta L0082
sty L0083
ldx #$00
lda #$14
bit $8C
bpl L7AA4
ldx #$02
lda #$0C
L7AA4: pha
lda L00C7,x
clc
adc L0082
sta L00C7,x
lda $C8,x
adc L0083
sta $C8,x
pla
clc
adc L00C7,x
sta $CB,x
lda $C8,x
adc #$00
sta $CC,x
jmp L70B2
jsr L653F
jsr L7013
bne L7ACE
lda #$A0
jmp L40B1
L7ACE: bit $B0
bpl L7B15
jsr L7104
jsr L7086
beq L7B15
ldx #$00
lda $B0
and #$01
beq L7B11
lda #$80
sta $8C
jsr L79F1
jsr L7086
beq L7AFE
bit $B0
bcs L7B70
jsr L7A73
jsr L7086
beq L7B02
ldx #$05
bne L7B11
L7AFE: lda #$01
bne L7B04
L7B02: lda #$03
L7B04: pha
jsr L7A73
pla
tax
lda $EC
cmp $C9
bcc L7B11
inx
L7B11: lda #$01
bne L7B72
L7B15: bit $AF
bpl L7B64
jsr L7129
jsr L7086
beq L7B64
ldx #$00
lda $AF
and #$01
beq L7B60
lda #$00
sta $8C
jsr L79F1
jsr L7086
beq L7B45
bit $AF
bvc L7B70
jsr L7A73
jsr L7086
beq L7B49
ldx #$05
bne L7B60
L7B45: lda #$01
bne L7B4B
L7B49: lda #$03
L7B4B: pha
jsr L7A73
pla
tax
lda $EB
cmp $C8
bcc L7B60
bne L7B5F
lda $EA
cmp L00C7
bcc L7B60
L7B5F: inx
L7B60: lda #$02
bne L7B72
L7B64: jsr L708D
jsr L7086
beq L7B70
lda #$00
beq L7B72
L7B70: lda #$03
L7B72: jmp L7408
lda L0082
cmp #$01
bne L7B81
lda #$80
sta L0082
bne L7B90
L7B81: cmp #$02
bne L7B8B
lda #$00
sta L0082
beq L7B90
L7B8B: lda #$A4
jmp L40B1
L7B90: jsr L7013
bne L7B9A
lda #$A0
jmp L40B1
L7B9A: ldy #$06
bit L0082
bpl L7BA2
ldy #$08
L7BA2: lda L0083
sta ($A9),y
sta $AB,y
rts
lda L0082
cmp #$01
bne L7BB6
lda #$80
sta L0082
bne L7BC5
L7BB6: cmp #$02
bne L7BC0
lda #$00
sta L0082
beq L7BC5
L7BC0: lda #$A4
jmp L40B1
L7BC5: lda L0082
sta $8C
ldx #$03
L7BCB: lda L0083,x
sta L769B,x
sta L769F,x
dex
bpl L7BCB
jsr L7013
bne L7BE0
lda #$A0
jmp L40B1
L7BE0: jsr L7A73
jsr L653F
jsr L6588
lda #$02
jsr L68F5
jsr A2D
.byte $08
.addr L79E7
jsr L625A
L7BF7: jsr L707F
jsr L6233
L7BFD: jsr L691B
cmp #$02
beq L7C66
jsr L77E0
beq L7BFD
jsr L625A
jsr L707F
jsr L7013
jsr L7A73
ldx #$00
lda #$14
bit $8C
bpl L7C21
ldx #$02
lda #$0C
L7C21: sta L0082
lda L00C7,x
clc
adc L76A3,x
tay
lda $C8,x
adc L76A4,x
cmp L7CB9
bcc L7C3B
bne L7C41
cpy L7CB8
bcs L7C41
L7C3B: lda L7CB9
ldy L7CB8
L7C41: cmp L7CB7
bcc L7C53
bne L7C4D
cpy L7CB6
bcc L7C53
L7C4D: lda L7CB7
ldy L7CB6
L7C53: sta $C8,x
tya
sta L00C7,x
clc
adc L0082
sta $CB,x
lda $C8,x
adc #$00
sta $CC,x
jmp L7BF7
L7C66: jsr L625A
jsr L707F
jsr L6553
jsr L7CBA
jsr L5698
ldx $A1
jsr L7CE3
lda $A3
ldy #$00
cpx #$01
bcs L7C87
ldx L00A0
jsr L7C93
L7C87: ldx #$01
cmp $A1
bne L7C8E
dex
L7C8E: ldy #$05
jmp L5EBD
L7C93: sta L0082
sty L0083
lda #$80
sta $84
ldy #$00
sty $85
txa
beq L7CB5
L7CA2: lda L0082
clc
adc $84
sta $84
lda L0083
adc $85
sta $85
bcc L7CB2
iny
L7CB2: dex
bne L7CA2
L7CB5: rts
L7CB6: brk
L7CB7: brk
L7CB8: brk
L7CB9: brk
L7CBA: lda L7CB6
sec
sbc L7CB8
sta $A3
lda L7CB7
sbc L7CB9
sta $A4
ldx #$00
bit $8C
bpl L7CD3
ldx #$02
L7CD3: lda L00C7,x
sec
sbc L7CB8
sta $A1
lda $C8,x
sbc L7CB9
sta $A2
rts
L7CE3: ldy #$06
bit $8C
bpl L7CEB
ldy #$08
L7CEB: lda ($A9),y
sta $A3
iny
lda ($A9),y
sta $A1
lda #$00
sta $A2
sta $A4
rts
L7CFB: ldx #$00
lda #$14
bit $8C
bpl L7D07
ldx #$02
lda #$0C
L7D07: sta L0082
lda L00C7,x
ldy $C8,x
sta L7CB8
sty L7CB9
lda $CB,x
ldy $CC,x
sec
sbc L0082
bcs L7D1D
dey
L7D1D: sta L7CB6
sty L7CB7
rts
lda $8C
cmp #$01
bne L7D30
lda #$80
sta $8C
bne L7D3F
L7D30: cmp #$02
bne L7D3A
lda #$00
sta $8C
beq L7D3F
L7D3A: lda #$A4
jmp L40B1
L7D3F: jsr L7013
bne L7D49
lda #$A0
jmp L40B1
L7D49: ldy #$07
bit $8C
bpl L7D51
ldy #$09
L7D51: lda $8D
sta ($A9),y
jsr L653C
jsr L657E
jsr L79A0
jmp L6553
L7D61: lda #$80
sta L7D74
jmp L67D8
lda L0082
sta L7D7A
lda L0083
sta L7D7B
rts
L7D74: brk
L7D75: brk
L7D76: brk
L7D77: brk
brk
L7D79: brk
L7D7A: brk
L7D7B: brk
L7D7C: brk
L7D7D: brk
L7D7E: brk
L7D7F: brk
L7D80: brk
L7D81: brk
L7D82: brk
L7D83: ldx #$7F
L7D85: lda L0080,x
sta L7D99,x
dex
bpl L7D85
rts
L7D8E: ldx #$7F
L7D90: lda L7D99,x
sta L0080,x
dex
bpl L7D90
rts
L7D99: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L7E00: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L7E19: bit L5FFF
bmi L7E49
bit L851C
bmi L7E49
pha
txa
sec
jsr L7E75
ldx L851D
sta $03B8,x
tya
sta $04B8,x
pla
ldy #$00
clc
jsr L7E75
ldx L851D
sta $0438,x
tya
sta $0538,x
ldy #$16
jmp L6313
L7E49: stx L5FF8
sty L5FF9
sta L5FFA
bit L5FFF
bpl L7E5C
ldy #$16
jmp L6313
L7E5C: rts
L7E5D: ldx L7D7C
ldy L7D7D
lda L7D7E
jmp L7E19
L7E69: ldx L7D75
ldy L7D76
lda L7D77
jmp L7E19
L7E75: bcc L7E7D
ldx L5FFD
bne L7E82
L7E7C: rts
L7E7D: ldx L5FFE
beq L7E7C
L7E82: pha
tya
lsr a
tay
pla
ror a
dex
bne L7E82
rts
L7E8C: ldx #$02
L7E8E: lda L7D75,x
sta L5FF8,x
dex
bpl L7E8E
rts
L7E98: jsr L7E8C
jmp L7E69
L7E9E: jsr L62BA
ldx #$02
L7EA3: lda L5FF8,x
sta L7D7C,x
dex
bpl L7EA3
rts
L7EAD: jsr L7F30
lda L7F2E
sta L0080
lda L7F2F
sta $81
jsr L607B
jsr L7F3B
lda #$00
sta L7D74
lda #$40
sta L5FFC
jmp L7E5D
L7ECD: lda #$00
sta L7D81
sta L8351
rts
L7ED6: lda $C062
asl a
lda $C061
and #$80
rol a
rol a
rts
L7EE2: jsr L7ED6
sta L8350
L7EE8: clc
lda $C000
bpl L7EF4
stx $C010
and #$7F
sec
L7EF4: rts
L7EF5: lda L7D74
bne L7EFB
rts
L7EFB: cmp #$04
beq L7F48
jsr L7FB4
lda L7D74
cmp #$01
bne L7F0C
jmp L804D
L7F0C: jmp L825F
L7F0F: jsr L7F30
lda L6142
sta L7F2E
lda L6143
sta L7F2F
lda L6065
sta L0080
lda L6066
sta $81
jsr L607B
jmp L7F3B
L7F2E: brk
L7F2F: brk
L7F30: lda L0080
sta L7F46
lda $81
sta L7F47
rts
L7F3B: lda L7F46
sta L0080
lda L7F47
sta $81
rts
L7F46: brk
L7F47: brk
L7F48: jsr L7ED6
ror a
ror a
ror L7D82
lda L7D82
sta L5FFC
lda #$00
sta L6662
jsr L7EE8
bcc L7F63
.byte $4C
L7F61: sta (L0082)
L7F63: jmp L7E98
L7F66: pha
lda L7D74
bne L7FA3
pla
cmp #$03
bne L7FA2
bit L5FFC
bmi L7FA2
lda #$04
sta L7D74
ldx #$0A
L7F7D: .byte $AD
.byte $30
L7F7F: cpy #$A0
brk
L7F82: dey
bne L7F82
dex
bpl L7F7D
L7F88: jsr L7ED6
cmp #$03
beq L7F88
sta L6662
lda #$00
sta L7D82
ldx #$02
L7F99: lda L5FF4,x
sta L7D75,x
dex
bpl L7F99
L7FA2: rts
L7FA3: cmp #$04
bne L7FB2
pla
and #$01
bne L7FB1
lda #$00
sta L7D74
L7FB1: rts
L7FB2: pla
rts
L7FB4: bit L5FFC
bpl L7FC1
lda #$00
sta L7D74
jmp L7E69
L7FC1: lda L5FFC
pha
lda #$C0
sta L5FFC
pla
and #$20
beq L7FDE
ldx #$02
L7FD1: lda L5FF8,x
sta L7D75,x
dex
bpl L7FD1
stx L7D79
rts
L7FDE: jmp L7E8C
L7FE1: php
sei
jsr L7E9E
lda #$01
sta L7D74
jsr L800F
lda #$80
sta L5FFC
jsr L7F0F
ldx L7D7A
jsr L6878
lda $AF
sta L6BD9
jsr L6D26
lda L7D7B
sta L6BDA
jsr L6EAA
plp
rts
L800F: ldx L7D7A
jsr L6878
clc
lda $B7
adc #$05
sta L7D75
lda $B8
adc #$00
sta L7D76
ldy L7D7B
lda L6847,y
sta L7D77
lda #$C0
sta L5FFC
jmp L7E98
L8035: bit L7D79
bpl L804C
lda L6BDA
sta L7D7B
ldx L6BD9
dex
stx L7D7A
lda #$00
sta L7D79
L804C: rts
L804D: jsr L7D83
jsr L8056
jmp L7D8E
L8056: jsr L7EE2
bcs L805C
rts
L805C: pha
jsr L8035
pla
cmp #$1B
bne L8073
lda #$00
sta L7D80
sta L7D7F
lda #$80
sta L7D81
rts
L8073: cmp #$0D
bne L807D
jsr L7E8C
jmp L7EAD
L807D: cmp #$0B
bne L80A3
L8081: dec L7D7B
bpl L8091
ldx L7D7A
jsr L6878
ldx $AA
stx L7D7B
L8091: ldx L7D7B
beq L80A0
dex
jsr L68BE
lda $BF
and #$C0
bne L8081
L80A0: jmp L800F
L80A3: cmp #$0A
bne L80D0
L80A7: inc L7D7B
ldx L7D7A
jsr L6878
lda L7D7B
cmp $AA
bcc L80BE
beq L80BE
lda #$00
sta L7D7B
L80BE: ldx L7D7B
beq L80CD
dex
jsr L68BE
lda $BF
and #$C0
bne L80A7
L80CD: jmp L800F
L80D0: cmp #$15
bne L80EB
lda #$00
sta L7D7B
inc L7D7A
lda L7D7A
cmp $A8
bcc L80E8
lda #$00
sta L7D7A
L80E8: jmp L800F
L80EB: cmp #$08
bne L8105
lda #$00
sta L7D7B
dec L7D7A
bmi L80FC
jmp L800F
L80FC: ldx $A8
dex
stx L7D7A
jmp L800F
L8105: jsr L8110
bcc L810F
lda #$80
sta L7D81
L810F: rts
L8110: sta $C9
lda L8350
and #$03
sta $CA
lda L6BD9
pha
lda L6BDA
pha
lda #$C0
jsr L6A96
beq L813D
stx L7D80
lda $B0
bmi L813D
lda $BF
and #$C0
bne L813D
lda $AF
sta L7D7F
sec
bcs L813E
L813D: clc
L813E: pla
sta L6BDA
pla
sta L6BD9
sta L00C7
rts
L8149: php
sei
jsr L6D23
jsr L7EAD
lda L7D7F
sta L00C7
sta L6BD9
lda L7D80
sta $C8
sta L6BDA
jsr L6556
lda L7D7F
beq L816F
jsr L6B1D
lda L7D7F
L816F: sta L6BD9
ldx L7D80
stx L6BDA
plp
jmp L5EBB
L817C: php
sei
jsr L7E9E
lda #$80
sta L5FFC
jsr L70B7
bit L76A7
bpl L81E4
lda $AC
and #$04
beq L81D9
ldx #$00
L8196: sec
lda $CB,x
sbc #$04
sta L7D75,x
sta L769B,x
sta L769F,x
lda $CC,x
sbc #$00
sta L7D76,x
sta L769C,x
sta L76A0,x
inx
inx
cpx #$04
bcc L8196
sec
lda #$2F
sbc L769B
lda #$02
sbc L769C
bmi L81D9
sec
lda #$BF
sbc L769D
lda #$00
sbc L769E
bmi L81D9
jsr L7E98
jsr L7F0F
plp
rts
L81D9: lda #$00
sta L7D74
lda #$A2
plp
jmp L40B1
L81E4: lda $AC
and #$01
beq L81F4
lda #$00
sta L7D74
lda #$A1
jmp L40B1
L81F4: ldx #$00
L81F6: clc
lda L00C7,x
cpx #$02
beq L8202
adc #$23
jmp L8204
L8202: adc #$05
L8204: sta L7D75,x
sta L769B,x
sta L769F,x
lda $C8,x
adc #$00
sta L7D76,x
sta L769C,x
sta L76A0,x
inx
inx
cpx #$04
bcc L81F6
bit L7D76
bpl L8235
ldx #$01
lda #$00
L8229: sta L7D75,x
sta L769B,x
sta L769F,x
dex
bpl L8229
L8235: jsr L7E98
jsr L7F0F
plp
rts
L823D: php
clc
adc L7D77
sta L7D77
plp
bpl L8254
cmp #$C0
bcc L8251
lda #$00
sta L7D77
L8251: jmp L7E98
L8254: cmp #$C0
bcc L8251
lda #$BF
sta L7D77
bne L8251
L825F: jsr L7D83
jsr L8268
jmp L7D8E
L8268: jsr L7EE2
bcs L826E
rts
L826E: cmp #$1B
bne L827A
lda #$80
sta L7D81
jmp L7EAD
L827A: cmp #$0D
bne L8281
jmp L7EAD
L8281: pha
lda L8350
beq L828C
ora #$80
sta L8350
L828C: pla
ldx #$C0
stx L5FFC
cmp #$0B
bne L82A2
lda #$F8
bit L8350
bpl L829F
lda #$D0
L829F: jmp L823D
L82A2: cmp #$0A
bne L82B2
lda #$08
bit L8350
bpl L82AF
lda #$30
L82AF: jmp L823D
L82B2: cmp #$15
bne L82ED
jsr L839A
bcc L82EA
clc
lda #$08
bit L8350
bpl L82C5
lda #$40
L82C5: adc L7D75
sta L7D75
lda L7D76
adc #$00
sta L7D76
sec
lda L7D75
sbc #$2F
lda L7D76
sbc #$02
bmi L82EA
lda #$02
sta L7D76
lda #$2F
sta L7D75
L82EA: jmp L7E98
L82ED: cmp #$08
bne L831D
jsr L8352
bcc L831A
lda L7D75
bit L8350
bpl L8303
sbc #$40
jmp L8305
L8303: sbc #$08
L8305: sta L7D75
lda L7D76
sbc #$00
sta L7D76
bpl L831A
lda #$00
sta L7D75
sta L7D76
L831A: jmp L7E98
L831D: sta L834F
ldx #$23
L8322: lda $A7,x
sta $0600,x
dex
bpl L8322
lda L834F
jsr L8110
php
ldx #$23
L8333: lda $0600,x
sta $A7,x
dex
bpl L8333
plp
bcc L8346
lda #$40
sta L7D81
jmp L7EAD
L8346: rts
L8347: jsr A2D
.byte $2D
.addr L834E
rts
L834E: .byte $03
L834F: brk
L8350: brk
L8351: brk
L8352: lda L7D74
cmp #$04
beq L8368
lda L7D75
bne L8368
lda L7D76
bne L8368
bit L76A7
bpl L836A
L8368: sec
rts
L836A: jsr L70B7
lda $CC
bne L8380
lda #$09
bit L8350
bpl L837A
lda #$41
L837A: cmp $CB
bcc L8380
clc
rts
L8380: inc L8351
clc
lda #$08
.byte $2C
.byte $50
L8388: .byte $83
bpl L838D
lda #$40
L838D: adc L769B
sta L769B
bcc L8398
inc L769C
L8398: clc
rts
L839A: lda L7D74
cmp #$04
beq L83B3
bit L76A7
.byte $30
L83A5: ora $75AD
adc $2FE9,x
lda L7D76
sbc #$02
beq L83B5
sec
L83B3: sec
rts
L83B5: jsr L70B7
sec
lda #$2F
sbc L00C7
tax
lda #$02
sbc $C8
beq L83C6
ldx #$FF
L83C6: bit L8350
bpl L83D1
cpx #$64
bcc L83D7
bcs L83D9
L83D1: cpx #$2C
bcc L83D7
bcs L83E2
L83D7: clc
rts
L83D9: sec
lda L769B
sbc #$40
jmp L83E8
L83E2: sec
lda L769B
sbc #$08
L83E8: sta L769B
bcs L83F0
dec L769C
L83F0: inc L8351
clc
rts
L83F5: brk
L83F6: lda #$80
sta L83F5
L83FB: rts
L83FC: bit L7D74
bpl L83FB
bit L83F5
bpl L83FB
jsr L70B7
php
sei
ldx #$00
L840D: sec
lda $CB,x
sbc #$04
sta L7D75,x
lda $CC,x
sbc #$00
sta L7D76,x
inx
inx
cpx #$04
bcc L840D
jsr L7E98
plp
rts
lda L0082
sta L5FFD
lda L0083
sta L5FFE
L8431: bit L851C
bmi L84AC
lda L5FFD
asl a
tay
lda #$00
sta L5FF8
sta L5FF9
bit L5FFF
bmi L844E
sta $0478
sta $0578
L844E: lda L84AD,y
sta L5FFA
bit L5FFF
bmi L845C
sta $04F8
L845C: lda L84AE,y
sta L5FFB
bit L5FFF
bmi L846A
sta $05F8
L846A: lda #$00
ldy #$17
jsr L6313
lda L5FFE
asl a
tay
lda #$00
L8478: sta L5FF8
sta L5FF9
bit L5FFF
bmi L8489
sta $0478
sta $0578
L8489: lda L84B5,y
sta L5FFA
bit L5FFF
bmi L8497
sta $04F8
L8497: lda L84B6,y
sta L5FFB
bit L5FFF
bmi L84A5
sta $05F8
L84A5: lda #$01
ldy #$17
jsr L6313
L84AC: rts
L84AD: .byte $2F
L84AE: .byte $02
rmb1 $01
.byte $8B
brk
eor L0000
L84B5: .byte $BF
L84B6: brk
bbr5 L0000,L84E9
brk
rmb1 L0000
L84BD: txa
and #$7F
beq L84CD
jsr L84F2
sta L851C
beq L84DE
ldx #$00
rts
L84CD: ldx #$07
L84CF: txa
jsr L84F2
sta L851C
beq L84DE
dex
bpl L84CF
ldx #$00
rts
L84DE: ldy #$19
jsr L6313
jsr L8431
ldy #$18
.byte $20
L84E9: .byte $13
.byte $63
lda L851D
and #$0F
tax
rts
L84F2: ora #$C0
sta $89
lda #$00
sta L0088
ldy #$0C
lda (L0088),y
cmp #$20
bne L8519
ldy #$FB
lda (L0088),y
cmp #$D6
bne L8519
lda $89
sta L851D
asl a
asl a
asl a
asl a
sta L851E
lda #$00
rts
L8519: lda #$80
rts
L851C: brk
L851D: brk
L851E: brk
.byte $03
sbc #$85
php
lda $E904,x
sta $09
ldy #$14
ldx #$00
L852C: lda ($08),y
sta L8590,x
iny
inx
cpx #$04
bne L852C
ldy #$1C
ldx #$00
L853B: lda ($08),y
sta L8594,x
iny
inx
cpx #$04
bne L853B
ldy #$03
lda ($06),y
sec
sbc L8590
sta ($06),y
iny
lda ($06),y
sbc L8591
sta ($06),y
iny
lda ($06),y
sec
sbc L8592
sta ($06),y
iny
lda ($06),y
sbc L8593
sta ($06),y
ldy #$03
lda ($06),y
clc
adc L8594
sta ($06),y
iny
lda ($06),y
adc L8595
sta ($06),y
iny
lda ($06),y
clc
adc L8596
sta ($06),y
iny
lda ($06),y
adc L8597
sta ($06),y
jsr L83A5
rts
L8590: .byte $24
L8591: brk
L8592: .byte $23
L8593: brk
L8594: brk
L8595: brk
L8596: brk
L8597: brk
lda #$00
ldx #$00
L859C: sta $D409,x
sta $D401,x
sta $D40D
inx
cpx #$04
bne L859C
lda #$0A
sta $D40D
sta $D40F
ldy #$04
lda #$01
ldx #$D4
jsr LD000
rts
lda #$39
ldx #$1A
jsr L6B17
ldx $D5CA
txs
rts
lda #$56
ldx #$1A
jsr L6B17
ldx $D5CA
txs
rts
lda #$71
ldx #$1A
jsr L6B17
ldx $D5CA
txs
rts
cmp #$27
bne L85F2
lda #$22
ldx #$1B
jsr L6B17
ldx $D5CA
txs
jmp L8625
L85F2: cmp #$45
bne L8604
lda #$3B
ldx #$1B
jsr L6B17
ldx $D5CA
txs
jmp L8625
L8604: cmp #$52
bne L8616
lda #$5B
ldx #$1B
jsr L6B17
ldx $D5CA
txs
jmp L8625
L8616: cmp #$57
bne L8625
lda #$7C
ldx #$1B
jsr L6B17
ldx $D5CA
txs
L8625: ldy #$33
lda #$3F
ldx #$D6
jsr LD000
rts
lda #$9C
ldx #$1B
jsr L6B17
ldx $D5CA
txs
ldy #$33
lda #$3F
ldx #$D6
jsr LD000
rts
lda #$BF
ldx #$1B
jsr L6B17
ldx $D5CA
txs
ldy #$33
lda #$3F
ldx #$D6
jsr LD000
rts
sta L8737
sty L8738
and #$F0
sta L8776
sta ALTZPOFF
jsr MLI
.byte $C5
.addr L8775
sta ALTZPON
beq L867B
L8672: pha
dec $EF8A
dec $EF88
pla
rts
L867B: lda L8779
beq L8672
jsr L8388
jsr LD05E
ldy L8738
sta $D464,y
asl a
tax
lda $F13A,x
sta $06
lda $F13B,x
sta $07
ldx #$00
ldy #$09
lda #$20
L869E: sta ($06),y
iny
inx
cpx #$12
bne L869E
ldy #$09
lda L8779
and #$0F
sta L8779
sta ($06),y
ldx #$00
ldy #$0B
L86B6: lda L877A,x
cmp #$41
bcc L86C4
cmp #$5F
bcs L86C4
clc
adc #$20
L86C4: sta ($06),y
iny
inx
cpx L8779
bne L86B6
ldy #$09
lda ($06),y
clc
adc #$02
sta ($06),y
lda L8737
and #$0F
cmp #$04
bne L86ED
ldy #$07
lda #$B4
sta ($06),y
iny
lda #$14
sta ($06),y
jmp L870A
L86ED: cmp #$0B
bne L86FF
ldy #$07
lda #$70
sta ($06),y
iny
lda #$14
sta ($06),y
jmp L870A
L86FF: .byte $A0
L8700: rmb0 $A9
rti
sta ($06),y
iny
lda #$14
sta ($06),y
L870A: ldy #$02
lda #$00
sta ($06),y
inc L8738
lda L8738
asl a
asl a
tax
ldy #$03
L871B: lda L8739,x
sta ($06),y
inx
iny
cpy #$07
bne L871B
ldx $EF8A
dex
ldy #$00
lda ($06),y
sta $EF8B,x
jsr L83A5
lda #$00
rts
L8737: rts
L8738: .byte $04
L8739: brk
brk
brk
brk
.byte $F4
ora ($10,x)
brk
.byte $F4
ora ($29,x)
brk
.byte $F4
ora ($42,x)
brk
.byte $F4
ora ($5B,x)
brk
.byte $F4
ora ($74,x)
brk
clv
ora ($10,x)
brk
clv
ora ($29,x)
brk
clv
ora ($42,x)
brk
clv
ora ($5B,x)
brk
clv
ora ($74,x)
brk
clv
ora ($8D,x)
brk
bcc L876C
.byte $10
L876C: brk
bcc L8770
.byte $29
L8770: brk
bcc L8774
.byte $42
L8774: brk
L8775: .byte $02
L8776: rts
.byte $79
.byte $87
L8779: .byte $0B
L877A: rmb4 $52
eor ($50,x)
pha
eor #$43
.byte $53
rol L4B54
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
iny
.byte $00,$7F
L8802: .byte $09,$01,$07,$07,$07,$07,$07,$01
.byte $07,$07,$07,$07,$07,$07,$07,$07
.byte $07,$07,$03,$07,$06,$07,$07,$07
.byte $07,$07,$07,$07,$07,$07,$07,$07
.byte $07,$05,$03,$04,$07,$06,$06,$06
.byte $02,$03,$03,$06,$06,$03,$06,$03
.byte $07,$06,$06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$03,$03,$05,$06,$05
.byte $06,$07,$07,$07,$07,$07,$07,$07
.byte $07,$07,$07,$07,$07,$07,$07,$07
.byte $07,$07,$07,$07,$07,$07,$07,$06
.byte $07,$07,$07,$07,$05,$06,$06,$04
.byte $06,$05,$07,$07,$06,$07,$06,$06
.byte $06,$06,$03,$05,$06,$03,$07,$06
.byte $06,$06,$06,$06,$06,$06,$06,$06
.byte $07,$06,$06,$06,$04,$02,$04,$05
.byte $07,$00,$00,$00,$3F,$77,$01,$01
.byte $00,$00,$7F,$00,$00,$7F,$20,$3E
.byte $3E,$00,$00,$3C,$00,$00,$00,$00
.byte $00,$14,$55,$2A,$00,$7F,$00,$10
.byte $10,$00,$03,$05,$12,$04,$03,$02
.byte $01,$02,$01,$00,$00,$00,$00,$00
.byte $00,$0E,$0C,$0E,$0E,$1B,$1F,$0E
.byte $1F,$0E,$0E,$00,$00,$00,$00,$00
.byte $0E,$00,$1E,$1F,$1E,$1F,$3F,$3F
.byte $1E,$33,$3F,$3E,$33,$03,$33,$33
.byte $1E,$1F,$1E,$1F,$1E,$3F,$33,$1B
.byte $33,$33,$33,$3F,$0F,$00,$0F,$02
.byte $00,$03,$00,$03,$00,$30,$00,$1C
.byte $00,$03,$03,$0C,$03,$03,$00,$00
.byte $00,$00,$00,$00,$00,$06,$00,$00
.byte $00,$00,$00,$00,$04,$01,$01,$05
.byte $00,$00,$7F,$00,$21,$1C,$03,$01
.byte $00,$00,$01,$08,$08,$40,$20,$41
.byte $41,$00,$00,$42,$00,$00,$00,$08
.byte $00,$14,$2A,$55,$00,$3F,$40,$08
.byte $08,$00,$03,$05,$12,$1E,$13,$05
.byte $01,$01,$02,$04,$04,$00,$00,$00
.byte $30,$1B,$0F,$1B,$1B,$1B,$03,$1B
.byte $18,$1B,$1B,$00,$00,$0C,$00,$03
.byte $1B,$1E,$33,$33,$33,$33,$03,$03
.byte $33,$33,$0C,$18,$1B,$03,$3F,$33
.byte $33,$33,$33,$33,$33,$0C,$33,$1B
.byte $33,$33,$33,$30,$03,$00,$0C,$05
.byte $00,$06,$00,$03,$00,$30,$00,$06
.byte $00,$03,$00,$00,$03,$03,$00,$00
.byte $00,$00,$00,$00,$00,$06,$00,$00
.byte $00,$00,$00,$00,$02,$01,$02,$0A
.byte $00,$00,$41,$00,$12,$08,$07,$01
.byte $00,$0C,$01,$08,$1C,$40,$20,$5D
.byte $5D,$77,$03,$04,$1F,$0C,$18,$1C
.byte $0C,$14,$55,$2A,$0C,$1F,$60,$36
.byte $36,$00,$03,$00,$3F,$05,$08,$05
.byte $00,$01,$02,$15,$04,$00,$00,$00
.byte $18,$1B,$0C,$18,$18,$1B,$0F,$03
.byte $0C,$1B,$1B,$03,$03,$06,$0F,$06
.byte $18,$21,$33,$33,$03,$33,$03,$03
.byte $03,$33,$0C,$18,$0F,$03,$3F,$37
.byte $33,$33,$33,$33,$03,$0C,$33,$1B
.byte $33,$1E,$33,$18,$03,$01,$0C,$00
.byte $00,$0C,$1E,$1F,$1E,$3E,$0E,$06
.byte $0E,$0F,$03,$0C,$1B,$03,$1F,$0F
.byte $0E,$0F,$1E,$0F,$1E,$1F,$1B,$1B
.byte $23,$1B,$1B,$1F,$02,$01,$02,$00
.byte $00,$00,$41,$3F,$0C,$08,$0F,$01
.byte $00,$06,$01,$08,$3E,$40,$24,$45
.byte $55,$52,$02,$08,$0A,$00,$30,$36
.byte $12,$77,$2A,$55,$1E,$4E,$31,$7F
.byte $49,$00,$03,$00,$12,$0E,$04,$02
.byte $00,$01,$02,$0E,$1F,$00,$1F,$00
.byte $0C,$1B,$0C,$0C,$0C,$1F,$18,$0F
.byte $06,$0E,$1E,$00,$00,$03,$00,$0C
.byte $0C,$2D,$3F,$1F,$03,$33,$0F,$0F
.byte $3B,$3F,$0C,$18,$0F,$03,$33,$3B
.byte $33,$1F,$33,$1F,$1E,$0C,$33,$1B
.byte $33,$0C,$1E,$0C,$03,$02,$0C,$00
.byte $00,$00,$30,$33,$03,$33,$1B,$0F
.byte $1B,$1B,$03,$0C,$0F,$03,$2B,$1B
.byte $1B,$1B,$1B,$1B,$03,$06,$1B,$1B
.byte $2B,$0E,$1B,$18,$01,$01,$04,$00
.byte $2A,$00,$01,$20,$0C,$08,$1F,$01
.byte $7F,$7F,$01,$6B,$6B,$40,$26,$45
.byte $4D,$12,$02,$3E,$0A,$3F,$7F,$63
.byte $21,$00,$55,$2A,$3F,$64,$1B,$3F
.byte $21,$00,$03,$00,$12,$14,$02,$15
.byte $00,$01,$02,$15,$04,$00,$00,$00
.byte $06,$1B,$0C,$06,$18,$18,$18,$1B
.byte $03,$1B,$10,$00,$00,$06,$0F,$06
.byte $06,$3D,$33,$33,$03,$33,$03,$03
.byte $33,$33,$0C,$18,$0F,$03,$33,$33
.byte $33,$03,$33,$33,$30,$0C,$33,$1B
.byte $3F,$1E,$0C,$06,$03,$04,$0C,$00
.byte $00,$00,$3E,$33,$03,$33,$1F,$06
.byte $1B,$1B,$03,$0C,$07,$03,$2B,$1B
.byte $1B,$1B,$1B,$03,$0E,$06,$1B,$1B
.byte $2B,$04,$1B,$0C,$02,$01,$02,$00
.byte $14,$00,$01,$20,$12,$08,$3F,$01
.byte $00,$06,$01,$3E,$08,$40,$3F,$5D
.byte $55,$12,$02,$10,$0A,$00,$30,$7F
.byte $12,$77,$2A,$55,$1E,$71,$0E,$3F
.byte $21,$00,$00,$00,$3F,$0F,$19,$09
.byte $00,$01,$02,$04,$04,$00,$00,$00
.byte $03,$1B,$0C,$03,$1B,$18,$1B,$1B
.byte $03,$1B,$1B,$03,$03,$0C,$00,$03
.byte $00,$1D,$33,$33,$33,$33,$03,$03
.byte $33,$33,$0C,$1B,$1B,$03,$33,$33
.byte $33,$03,$33,$33,$33,$0C,$33,$0E
.byte $3F,$33,$0C,$03,$03,$08,$0C,$00
.byte $00,$00,$33,$33,$03,$33,$03,$06
.byte $1B,$1B,$03,$0C,$0F,$03,$2B,$1B
.byte $1B,$1B,$1B,$03,$18,$06,$1B,$0E
.byte $2B,$0E,$1B,$06,$02,$01,$02,$00
.byte $2A,$00,$01,$20,$2D,$08,$0D,$01
.byte $00,$0C,$01,$1C,$08,$40,$06,$41
.byte $41,$00,$00,$1A,$0A,$0C,$18,$00
.byte $0C,$14,$55,$2A,$0C,$7B,$04,$7E
.byte $6A,$00,$03,$00,$12,$04,$18,$16
.byte $00,$02,$01,$00,$00,$02,$00,$03
.byte $00,$0E,$1F,$1F,$0E,$18,$0E,$0E
.byte $03,$0E,$0E,$00,$03,$00,$00,$00
.byte $06,$01,$33,$1F,$1E,$1F,$3F,$03
.byte $1E,$33,$3F,$0E,$33,$3F,$33,$33
.byte $1E,$03,$1E,$33,$1E,$0C,$1E,$04
.byte $33,$33,$0C,$3F,$0F,$10,$0F,$00
.byte $00,$00,$3F,$1F,$1E,$3E,$1E,$06
.byte $1E,$1B,$03,$0C,$1B,$03,$2B,$1B
.byte $0E,$0F,$1E,$03,$0F,$06,$1E,$04
.byte $1F,$1B,$1E,$1F,$04,$01,$01,$00
.byte $14,$00,$7F,$3F,$3F,$1C,$18,$01
.byte $00,$00,$01,$08,$08,$40,$04,$3E
.byte $3E,$00,$00,$4F,$00,$00,$00,$00
.byte $00,$14,$2A,$55,$00,$7F,$00,$36
.byte $36,$00,$00,$00,$12,$00,$00,$00
.byte $00,$00,$00,$00,$00,$02,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$01,$00,$00,$00
.byte $00,$3E,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$30,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $1F,$00,$00,$00,$00,$00,$00,$00
.byte $18,$00,$00,$0C,$00,$00,$00,$00
.byte $00,$03,$18,$00,$00,$00,$00,$00
.byte $00,$00,$18,$00,$00,$00,$00,$00
.byte $2A,$00,$00,$00,$00,$77,$30,$01
.byte $00,$00,$7F,$00,$00,$7F,$00,$00
.byte $00,$00,$00,$7A,$00,$00,$00,$00
.byte $00,$14,$55,$2A,$00,$7F,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$01,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $0E,$00,$00,$07,$00,$00,$00,$00
.byte $00,$03,$18,$00,$00,$00,$00,$00
.byte $00,$00,$0E,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00
L8DFB: .byte $00,$00,$00,$00,$00
UNKNOWN_CALL:
.byte $4C,$BC,$93
L8E03: .byte $08,$00
L8E05: .byte $00
L8E06: .byte $00
L8E07: .byte $00
L8E08: .byte $00
L8E09: .byte $00
L8E0A: .byte $00
L8E0B: .byte $00
L8E0C: .byte $00
L8E0D: .byte $00
L8E0E: .byte $00
L8E0F: .byte $00
L8E10: .byte $00
L8E11: .byte $00
L8E12: .byte $00
L8E13: .byte $00
L8E14: .byte $00
L8E15: .byte $00
L8E16: .byte $00
L8E17: .byte $00
L8E18: .byte $00
L8E19: .byte $00
L8E1A: .byte $00
L8E1B: .byte $00
L8E1C: .byte $00
L8E1D: .byte $00
L8E1E: .byte $00
L8E1F: .byte $00
L8E20: .byte $00
L8E21: .byte $00
L8E22: .byte $00
L8E23: .byte $00
L8E24: .byte $00
L8E25: .byte $00
L8E26: .byte $00
L8E27: .byte $00
L8E28: .byte $00
L8E29: .byte $00
L8E2A: .byte $00,$00,$00
L8E2D: .byte $00
L8E2E: .byte $00,$00,$00
L8E31: .byte $00
L8E32: .byte $00
L8E33: .byte $00,$00
L8E35: .byte $00,$00,$00,$00
L8E39: .byte $00
L8E3A: .byte $00
L8E3B: .byte $00,$00,$00,$00,$00,$00,$00,$00
L8E43: .byte $00,$00
L8E45: .byte $00
L8E46: .byte $00,$00,$00
L8E49: .byte $00
L8E4A: .byte $00
L8E4B: .byte $00
L8E4C: .byte $00
L8E4D: .byte $55,$8E
L8E4F: .byte $00
L8E50: .byte $00
L8E51: .byte $00
L8E52: .byte $55,$8E
L8E54: .byte $00,$00
L8E56: .byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00
L8E68: .byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
.byte $FF,$00,$00,$00,$00,$00,$00,$00
.byte $00,$FF
L8E7A: .byte $55,$AA,$55,$AA,$55,$AA,$55,$AA
.byte $FF
L8E83: .byte $11,$44,$11,$44,$11,$44,$11,$44
.byte $FF,$EE,$BB,$EE,$BB,$EE,$BB,$EE
.byte $BB
L8E94: .byte $FF
L8E95: .byte $00
L8E96: .byte $00
L8E97: .byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00
L8EAB: .byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00
L8F15: .byte $00
L8F16: .byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00
L9015: .byte $00
L9016: .byte $00
L9017: .byte $00
L9018: .byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00
L9096: .byte $00,$00
L9098: .byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00
L933E: .byte $00
L933F: .byte $00
L9340: .byte $00
L9341: .byte $00
L9342: .byte $00
L9343: .byte $00
L9344: .byte $00
L9345: .byte $00,$00,$00,$00,$00,$20,$80,$00
L934D: .byte $00,$00,$00,$00,$2F,$02,$BF,$00
.byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
.byte $FF,$00,$00,$00,$00,$00,$01,$01
.byte $96,$00,$00,$88
L9369: .byte $00,$6C,$93
L936C: .byte $00
L936D: .byte $00
L936E: .byte $00
L936F: .byte $00,$00,$00,$00,$00
L9374: .byte $00
L9375: .byte $00
L9376: .byte $00
L9377: .byte $00
L9378: .byte $00
L9379: .byte $00
L937A: .byte $00
L937B: .byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00,$00,$00
.byte $00,$FF,$80
L9396: .byte $00
L9397: .byte $01
L9398: .byte $02
L9399: .byte $03
L939A: .byte $04,$05,$06,$07
L939E: .byte $00
L939F: brk
ora L5494,y
sty $C0,x
sty $08,x
sta $A2,x
sta $92,x
stx $D2,y
stx $5B,y
smb1 $7D
smb1 $F7
smb1 $BE
stz LA2A6,x
.byte $FB
stz L958F,x
L93BC: pla
sta L9413
clc
adc #$03
tax
pla
sta L9414
adc #$00
pha
txa
pha
ldx #$00
L93CF: lda $06,x
pha
inx
cpx #$04
bne L93CF
lda L9413
clc
adc #$01
sta $06
lda L9414
adc #$00
sta $07
ldy #$00
lda ($06),y
asl a
tax
lda L939E,x
sta L9404
lda L939F,x
sta L9405
iny
lda ($06),y
tax
iny
lda ($06),y
sta $07
stx $06
.byte $20
L9404: brk
L9405: brk
tay
ldx #$03
L9409: pla
sta $06,x
dex
cpx #$FF
bne L9409
tya
rts
L9413: brk
L9414: brk
L9415: brk
L9416: brk
L9417: brk
L9418: brk
ldy #$00
lda ($06),y
ldx L8E95
beq L9430
dex
L9423: cmp L8E96,x
beq L942D
dex
bpl L9423
bmi L9430
L942D: lda #$01
rts
L9430: jsr L943E
jsr L9F98
lda #$01
tay
sta ($06),y
lda #$00
rts
L943E: ldx L8E95
sta L8E96,x
inc L8E95
asl a
tax
lda $06
sta L8F15,x
lda $07
sta L8F16,x
rts
L9454: ldx L8E95
beq L9466
dex
ldy #$00
lda ($06),y
L945E: cmp L8E96,x
beq L9469
dex
bpl L945E
L9466: lda #$01
rts
L9469: asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
ldy #$01
lda ($06),y
bne L947E
lda #$02
rts
L947E: lda L9015
beq L9498
dey
lda ($06),y
ldx L9016
dex
L948A: cmp L9017,x
beq L9495
dex
bpl L948A
jmp L949D
L9495: lda #$03
rts
L9498: lda #$01
sta L9015
L949D: ldx L9016
ldy #$00
lda ($06),y
sta L9017,x
inc L9016
.byte $B1
L94AB: asl $A2
ora ($20,x)
bit $A3
ldy #$00
lda ($06),y
ldx #$01
jsr LA2E3
jsr L9F9F
lda #$00
rts
ldx L8E95
beq L94D2
dex
ldy #$00
lda ($06),y
L94CA: cmp L8E96,x
beq L94D5
dex
bpl L94CA
L94D2: lda #$01
rts
L94D5: asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
lda L9015
bne L94E9
jmp L9502
L94E9: ldx L9016
dex
ldy #$00
lda ($06),y
L94F1: cmp L9017,x
beq L94FC
dex
bpl L94F1
jmp L9502
L94FC: jsr L9F9F
lda #$00
rts
L9502: jsr L9F98
lda #$00
rts
ldy #$00
ldx L8E95
beq L951A
dex
lda ($06),y
L9512: cmp L8E96,x
beq L951D
dex
bpl L9512
L951A: lda #$01
rts
L951D: asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
ldy #$01
lda ($06),y
bne L9532
lda #$02
rts
L9532: jsr LA18A
jsr A2D
.byte $07
.addr L9396
jsr LA39D
ldy #$00
lda ($06),y
ldx L8E95
jsr LA2E3
dec L8E95
lda #$00
ldx L8E95
sta L8E96,x
ldy #$01
lda #$00
sta ($06),y
lda L9015
beq L958C
ldx L9016
dex
ldy #$00
lda ($06),y
L9566: cmp L9017,x
beq L9571
dex
bpl L9566
jmp L958C
L9571: ldx L9016
jsr LA324
dec L9016
lda L9016
bne L9584
lda #$00
sta L9015
L9584: lda #$00
ldx L9016
sta L9017,x
L958C: lda #$00
rts
L958F: ldy #$00
lda ($06),y
asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
jmp LA39D
jmp L9625
L95A5: brk
L95A6: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
L9625: lda L9454
beq L9639
lda L9017
sta L95A5
jsr L93BC
.byte $0B
lda $95
jmp L9625
L9639: ldx #$7E
lda #$00
L963D: sta L95A6,x
dex
bpl L963D
ldx #$00
stx L95A5
L9648: lda L8E96,x
asl a
tay
lda L8F15,y
sta $08
lda L8F16,y
sta $09
ldy #$02
lda ($08),y
and #$0F
ldy #$00
cmp ($06),y
bne L9670
ldy #$00
lda ($08),y
ldy L95A5
sta L95A6,y
inc L95A5
L9670: inx
cpx L8E95
bne L9648
ldx #$00
txa
pha
L967A: lda L95A6,x
bne L9681
pla
rts
L9681: sta L95A5
jsr L93BC
.byte $02
lda $95
pla
tax
inx
txa
pha
jmp L967A
jmp L9697
L9695: brk
L9696: brk
L9697: lda L8E95
sta L9696
L969D: ldx L9696
cpx #$00
beq L96CF
dec L9696
dex
lda L8E96,x
sta L9695
asl a
tax
lda L8F15,x
sta $08
lda L8F16,x
sta $09
ldy #$02
lda ($08),y
and #$0F
ldy #$00
cmp ($06),y
bne L969D
jsr L93BC
tsb $95
stx $4C,y
.byte $9D
.byte $96
L96CF: lda #$00
rts
jmp L96D7
L96D5: brk
L96D6: brk
L96D7: lda L8E95
sta L96D6
L96DD: ldx L96D6
bne L96E5
lda #$00
rts
L96E5: dec L96D6
dex
lda L8E96,x
sta L96D5
asl a
tax
lda L8F15,x
sta $08
lda L8F16,x
sta $09
ldy #$02
lda ($08),y
and #$0F
ldy #$00
cmp ($06),y
bne L96DD
ldy #$00
lda ($08),y
ldx L8E95
jsr LA2E3
dec L8E95
lda #$00
ldx L8E95
sta L8E96,x
ldy #$01
lda #$00
sta ($08),y
lda L9015
beq L9758
ldx #$00
ldy #$00
L972B: lda ($08),y
cmp L9017,x
beq L973B
inx
cpx L9016
bne L972B
jmp L9758
L973B: lda ($08),y
ldx L9016
jsr LA324
dec L9016
lda L9016
bne L9750
lda #$00
sta L9015
L9750: lda #$00
ldx L9016
sta L9017,x
L9758: .byte $4C
.byte $DD
L975A: stx $A2,y
brk
txa
tay
L975F: sta ($06),y
iny
inx
cpx #$14
bne L975F
ldx #$00
ldy #$00
L976B: lda L9017,x
sta ($06),y
cpx L9016
beq L977A
iny
inx
jmp L976B
L977A: lda #$00
rts
jmp L9789
brk
brk
brk
brk
brk
brk
brk
brk
brk
L9789: ldy #$03
L978B: lda ($06),y
sta L9415,y
dey
bpl L978B
lda $06
sta $08
lda $07
sta $09
ldy #$05
lda ($06),y
sta L97F5
jsr A2D
.byte $0E
.addr L9415
ldx #$00
L97AA: cpx L8E95
bne L97B9
ldy #$04
lda #$00
sta ($08),y
sta L97F6
rts
L97B9: txa
pha
lda L8E96,x
asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
ldy #$02
lda ($06),y
and #$0F
cmp L97F5
bne L97E0
jsr LA18A
jsr A2D
.byte $17
.addr L8E03
bne L97E6
L97E0: pla
tax
inx
jmp L97AA
L97E6: pla
tax
lda L8E96,x
ldy #$04
sta ($08),y
sta L97F6
rts
rts
brk
L97F5: brk
L97F6: brk
ldy #$00
lda ($06),y
sta L982A
tya
sta ($06),y
ldy #$04
L9803: lda ($06),y
sta L9C8D,y
sta L9C91,y
dey
cpy #$00
bne L9803
jsr LA365
lda L982A
jsr L9EB4
sta $06
stx $07
ldy #$02
lda ($06),y
and #$0F
sta L9829
jmp L983D
L9829: brk
L982A: brk
brk
L982C: brk
L982D: brk
L982E: brk
L982F: brk
L9830: brk
L9831: brk
L9832: brk
L9833: brk
L9834: brk
L9835: brk
brk
brk
brk
brk
brk
brk
brk
L983D: lda #$00
sta L9830
sta L9833
L9845: jsr A2D
.byte $2C
.addr L933E
lda L933E
cmp #$04
beq L9857
L9852: lda #$02
jmp L9C65
L9857: lda L933F
sec
sbc L9C8E
sta L982C
lda L9340
sbc L9C8F
sta L982D
lda L9341
sec
sbc L9C90
sta L982E
lda L9342
sbc L9C91
sta L982F
lda L982D
bpl L988C
lda L982C
cmp #$FB
bcc L98AC
jmp L9893
L988C: lda L982C
cmp #$05
bcs L98AC
L9893: lda L982F
bpl L98A2
lda L982E
cmp #$FB
bcc L98AC
jmp L9845
L98A2: lda L982E
cmp #$05
bcs L98AC
jmp L9845
L98AC: lda L9016
cmp #$15
bcc L98B6
jmp L9852
L98B6: lda #$96
sta $08
lda #$90
sta $09
lda L9015
bne L98C8
lda #$03
jmp L9C65
L98C8: lda L9017
jsr L9EB4
sta $06
stx $07
ldy #$02
lda ($06),y
and #$0F
sta L9832
jsr A2D
.byte $03
.addr L9345
ldx #$07
L98E3: lda L934D,x
sta L9835,x
dex
bpl L98E3
ldx L9016
stx L9C74
L98F2: lda L9016,x
jsr L9EB4
sta $06
stx $07
ldy #$00
lda ($06),y
cmp #$01
bne L9909
ldx #$80
stx L9833
L9909: sta L9834
jsr L93BC
ora L9834
beq L9954
jsr LA18A
lda L9C74
cmp L9016
beq L9936
jsr LA365
lda $08
sec
sbc #$22
sta $08
bcs L992D
dec $09
L992D: ldy #$01
lda #$80
sta ($08),y
jsr LA382
L9936: ldx #$21
ldy #$21
L993A: lda L8E03,x
sta ($08),y
dey
dex
bpl L993A
lda #$08
ldy #$00
sta ($08),y
lda $08
clc
adc #$22
sta $08
bcc L9954
inc $09
L9954: dec L9C74
beq L995F
ldx L9C74
jmp L98F2
L995F: ldx #$07
L9961: lda L9098,x
sta L9C76,x
dex
bpl L9961
lda #$96
sta $08
lda #$90
sta $09
L9972: ldy #$02
L9974: lda ($08),y
cmp L9C76
iny
lda ($08),y
sbc L9C77
bcs L9990
lda ($08),y
sta L9C77
dey
lda ($08),y
sta L9C76
iny
jmp L99AA
L9990: dey
lda ($08),y
cmp L9C7A
iny
lda ($08),y
sbc L9C7B
bcc L99AA
lda ($08),y
sta L9C7B
dey
lda ($08),y
sta L9C7A
iny
L99AA: iny
lda ($08),y
cmp L9C78
iny
lda ($08),y
sbc L9C79
bcs L99C7
lda ($08),y
sta L9C79
dey
lda ($08),y
sta L9C78
iny
jmp L99E1
L99C7: dey
lda ($08),y
cmp L9C7C
iny
lda ($08),y
sbc L9C7D
bcc L99E1
lda ($08),y
sta L9C7D
dey
lda ($08),y
sta L9C7C
iny
L99E1: iny
cpy #$22
bne L9974
ldy #$01
lda ($08),y
beq L99FC
lda $08
clc
adc #$22
sta $08
lda $09
adc #$00
sta $09
jmp L9972
L99FC: jsr A2D
.byte $08
.addr L8E7A
jsr A2D
L9A05: .byte $07
.addr L9398
jsr A2D
.byte $16
.addr L9096
L9A0E: jsr A2D
.byte $2C
.addr L933E
lda L933E
cmp #$04
beq L9A1E
jmp L9BA5
L9A1E: ldx #$03
L9A20: lda L933F,x
cmp L9C92,x
bne L9A31
dex
bpl L9A20
jsr L9E14
jmp L9A0E
L9A31: ldx #$03
L9A33: lda L933F,x
sta L9C92,x
dex
bpl L9A33
lda L9830
beq L9A84
lda L9831
sta L9344
jsr L93BC
ora #$3F
.byte $93
lda L9343
cmp L9830
beq L9A84
jsr A2D
.byte $08
.addr L8E7A
jsr A2D
.byte $07
.addr L9398
jsr A2D
.byte $16
.addr L9096
jsr L93BC
.byte $0B
bmi L9A05
jsr A2D
.byte $08
.addr L8E7A
jsr A2D
.byte $07
.addr L9398
jsr A2D
.byte $16
.addr L9096
lda #$00
sta L9830
L9A84: lda L933F
sec
sbc L9C8E
sta L9C96
lda L9340
sbc L9C8F
sta L9C97
lda L9341
sec
sbc L9C90
sta L9C98
lda L9342
sbc L9C91
sta L9C99
jsr L9C9E
ldx #$00
L9AAF: lda L9C7A,x
clc
adc L9C96,x
sta L9C7A,x
lda L9C7B,x
adc L9C97,x
sta L9C7B,x
lda L9C76,x
clc
adc L9C96,x
sta L9C76,x
lda L9C77,x
adc L9C97,x
sta L9C77,x
inx
inx
cpx #$04
bne L9AAF
lda #$00
sta L9C75
lda L9C77
bmi L9AF7
lda L9C7A
cmp #$30
lda L9C7B
sbc #$02
bcs L9AFE
jsr L9DFA
jmp L9B0E
L9AF7: jsr L9CAA
bmi L9B0E
bpl L9B03
L9AFE: jsr L9CD1
bmi L9B0E
L9B03: jsr L9DB8
lda L9C75
ora #$80
sta L9C75
L9B0E: lda L9C79
bmi L9B31
lda L9C78
cmp #$0D
lda L9C79
sbc #$00
bcc L9B31
lda L9C7C
cmp #$C0
lda L9C7D
sbc #$00
bcs L9B38
jsr L9E07
jmp L9B48
L9B31: jsr L9D31
bmi L9B48
bpl L9B3D
L9B38: jsr L9D58
bmi L9B48
L9B3D: jsr L9DD9
lda L9C75
ora #$40
sta L9C75
L9B48: bit L9C75
bpl L9B52
.byte $50
L9B4E: .byte $03
jmp L9A0E
L9B52: jsr A2D
.byte $16
.addr L9096
lda #$96
sta $08
lda #$90
sta $09
L9B60: ldy #$02
L9B62: lda ($08),y
clc
adc L9C96
sta ($08),y
iny
lda ($08),y
adc L9C97
sta ($08),y
iny
lda ($08),y
clc
adc L9C98
sta ($08),y
iny
lda ($08),y
adc L9C99
sta ($08),y
iny
cpy #$22
bne L9B62
ldy #$01
lda ($08),y
beq L9B9C
lda $08
clc
adc #$22
sta $08
bcc L9B99
inc $09
L9B99: jmp L9B60
L9B9C: jsr A2D
.byte $16
.addr L9096
jmp L9A0E
L9BA5: jsr A2D
.byte $16
.addr L9096
lda L9830
beq L9BB9
jsr L93BC
.byte $0B
bmi L9B4E
jmp L9C63
L9BB9: jsr A2D
.byte $40
.addr L933F
lda L9344
cmp L9832
beq L9BE1
bit L9833
bmi L9BDC
lda L9344
bne L9BD4
L9BD1: jmp L9852
L9BD4: ora #$80
sta L9830
jmp L9C63
L9BDC: lda L9832
beq L9BD1
L9BE1: jsr LA365
jsr A2D
.byte $03
.addr L9345
jsr A2D
.byte $04
.addr L9345
ldx L9016
L9BF3: dex
bmi L9C18
txa
pha
lda L9017,x
asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
jsr LA18A
jsr A2D
.byte $07
.addr L9396
jsr LA39D
pla
tax
jmp L9BF3
L9C18: jsr LA382
ldx L9016
dex
txa
pha
lda #$96
sta $08
lda #$90
sta $09
L9C29: lda L9017,x
asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
ldy #$02
lda ($08),y
iny
sta ($06),y
lda ($08),y
iny
sta ($06),y
lda ($08),y
iny
sta ($06),y
lda ($08),y
iny
sta ($06),y
pla
tax
dex
bmi L9C63
txa
pha
lda $08
clc
adc #$22
sta $08
bcc L9C60
inc $09
L9C60: jmp L9C29
L9C63: lda #$00
L9C65: tay
jsr LA382
tya
tax
ldy #$00
lda L9830
sta ($06),y
txa
rts
L9C74: brk
L9C75: brk
L9C76: brk
L9C77: brk
L9C78: brk
L9C79: brk
L9C7A: brk
L9C7B: brk
L9C7C: brk
L9C7D: brk
L9C7E: brk
L9C7F: brk
L9C80: .byte $0D
L9C81: brk
L9C82: .byte $30
L9C83: .byte $02
L9C84: .byte $C0
L9C85: brk
L9C86: brk
L9C87: brk
L9C88: brk
L9C89: brk
L9C8A: brk
L9C8B: brk
L9C8C: brk
L9C8D: brk
L9C8E: brk
L9C8F: brk
L9C90: brk
L9C91: brk
L9C92: brk
brk
brk
brk
L9C96: brk
L9C97: brk
L9C98: brk
L9C99: brk
brk
brk
brk
brk
L9C9E: ldx #$07
L9CA0: lda L9C76,x
sta L9C86,x
dex
bpl L9CA0
rts
L9CAA: lda L9C76
cmp L9C7E
bne L9CBD
lda L9C77
cmp L9C7F
bne L9CBD
lda #$00
rts
L9CBD: lda #$00
sec
sbc L9C86
sta L9C96
lda #$00
sbc L9C87
sta L9C97
jmp L9CF5
L9CD1: lda L9C7A
cmp L9C82
bne L9CE4
lda L9C7B
cmp L9C83
bne L9CE4
lda #$00
rts
L9CE4: lda #$30
sec
sbc L9C8A
sta L9C96
lda #$02
sbc L9C8B
sta L9C97
L9CF5: lda L9C86
clc
adc L9C96
sta L9C76
lda L9C87
adc L9C97
sta L9C77
lda L9C8A
clc
adc L9C96
sta L9C7A
lda L9C8B
adc L9C97
sta L9C7B
lda L9C8E
clc
adc L9C96
sta L9C8E
lda L9C8F
adc L9C97
sta L9C8F
lda #$FF
rts
L9D31: lda L9C78
cmp L9C80
bne L9D44
lda L9C79
cmp L9C81
bne L9D44
lda #$00
rts
L9D44: lda #$0D
sec
sbc L9C88
sta L9C98
lda #$00
sbc L9C89
sta L9C99
jmp L9D7C
L9D58: lda L9C7C
cmp L9C84
bne L9D6B
lda L9C7D
cmp L9C85
bne L9D6B
lda #$00
rts
L9D6B: lda #$BF
sec
sbc L9C8C
sta L9C98
lda #$00
sbc L9C8D
sta L9C99
L9D7C: lda L9C88
clc
adc L9C98
sta L9C78
lda L9C89
adc L9C99
sta L9C79
lda L9C8C
clc
adc L9C98
sta L9C7C
lda L9C8D
adc L9C99
sta L9C7D
lda L9C90
clc
adc L9C98
sta L9C90
lda L9C91
adc L9C99
sta L9C91
lda #$FF
rts
L9DB8: lda L9C86
sta L9C76
lda L9C87
sta L9C77
lda L9C8A
sta L9C7A
lda L9C8B
sta L9C7B
lda #$00
sta L9C96
sta L9C97
rts
L9DD9: lda L9C88
sta L9C78
lda L9C89
sta L9C79
lda L9C8C
sta L9C7C
lda L9C8D
sta L9C7D
lda #$00
sta L9C98
sta L9C99
rts
L9DFA: lda L9340
sta L9C8F
lda L933F
sta L9C8E
rts
L9E07: lda L9342
sta L9C91
lda L9341
sta L9C90
rts
L9E14: bit L9833
bpl L9E1A
rts
L9E1A: jsr LA365
L9E1D: jsr A2D
.byte $40
.addr L933F
lda L9343
bne L9E2B
sta L9344
L9E2B: jsr L93BC
ora #$3F
.byte $93
lda L9343
bne L9E39
jmp L9E97
L9E39: ldx L9016
dex
L9E3D: cmp L9017,x
beq L9E97
dex
bpl L9E3D
sta L9EB3
cmp #$01
beq L9E6A
asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
ldy #$02
lda ($06),y
and #$0F
sta L9831
lda ($06),y
and #$70
bne L9E97
lda L9EB3
L9E6A: sta L9830
jsr A2D
.byte $08
.addr L8E7A
jsr A2D
.byte $07
.addr L9398
jsr A2D
.byte $16
.addr L9096
jsr L93BC
.byte $02
bmi L9E1D
jsr A2D
.byte $08
.addr L8E7A
jsr A2D
.byte $07
.addr L9398
jsr A2D
.byte $16
.addr L9096
L9E97: jsr A2D
.byte $03
.addr L9345
jsr A2D
.byte $04
.addr L9345
jsr A2D
.byte $08
.addr L8E7A
jsr A2D
.byte $07
.addr L9398
jsr LA382
rts
L9EB3: brk
L9EB4: asl a
tay
lda L8F16,y
tax
lda L8F15,y
rts
jmp L9EC3
brk
L9EC2: brk
L9EC3: lda L9015
bne L9ECB
lda #$01
rts
L9ECB: ldx L9016
ldy #$00
lda ($06),y
jsr LA324
ldx L9016
lda #$00
sta L9016,x
dec L9016
lda L9016
bne L9EEA
lda #$00
sta L9015
L9EEA: ldy #$00
lda ($06),y
sta L9EC2
jsr L93BC
.byte $03
.byte $C2
stz a:$A9,x
rts
rts
jmp L9F07
L9EFE: brk
L9EFF: brk
L9F00: brk
L9F01: brk
L9F02: brk
L9F03: brk
L9F04: brk
L9F05: brk
L9F06: brk
L9F07: ldy #$00
lda ($06),y
sta L9EFE
ldy #$08
L9F10: lda ($06),y
sta L9EFE,y
dey
bne L9F10
lda L9EFE
asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
jsr LA18A
lda L8E07
cmp L9F05
lda L8E08
sbc L9F06
bpl L9F8C
lda L8E1B
cmp L9F01
lda L8E1C
sbc L9F02
bmi L9F8C
lda L8E19
cmp L9F03
lda L8E1A
sbc L9F04
bpl L9F8C
lda L8E15
cmp L9EFF
lda L8E16
sbc L9F00
bmi L9F8C
lda L8E23
cmp L9F05
lda L8E24
sbc L9F06
bmi L9F8F
lda L8E21
cmp L9F03
lda L8E22
sbc L9F04
bpl L9F8C
lda L8E0D
cmp L9EFF
lda L8E0E
sbc L9F00
bpl L9F8F
L9F8C: lda #$00
rts
L9F8F: lda #$01
rts
L9F92: brk
L9F93: brk
L9F94: brk
brk
brk
brk
L9F98: lda #$00
sta L9F92
beq L9FA4
L9F9F: lda #$80
sta L9F92
L9FA4: ldy #$02
lda ($06),y
and #$0F
bne L9FB4
lda L9F92
ora #$40
sta L9F92
L9FB4: ldy #$03
L9FB6: lda ($06),y
sta L8E22,y
iny
cpy #$09
bne L9FB6
jsr LA365
lda L8E29
sta $08
lda L8E2A
sta $09
ldy #$0B
L9FCF: lda ($08),y
sta L8E29,y
dey
bpl L9FCF
bit L9F92
bpl L9FDF
jsr LA12C
L9FDF: jsr LA382
ldy #$09
L9FE4: lda ($06),y
sta L8E4B,y
iny
cpy #$1D
bne L9FE4
L9FEE: lda L8E54
sta L8E4F
jsr A2D
.byte $18
.addr L8E4D
lda L8E50
cmp L8E31
bcs LA010
inc L8E54
ldx L8E54
lda #$20
sta L8E54,x
jmp L9FEE
LA010: lsr a
sta L9416
lda L8E31
lsr a
sta L9415
lda L9416
sec
sbc L9415
sta L9415
lda L8E25
sec
sbc L9415
sta L9415
lda L8E26
sbc #$00
sta L9416
lda L8E27
clc
adc L8E33
sta L9417
lda L8E28
adc #$00
sta L9418
lda L9417
clc
adc #$01
sta L9417
lda L9418
adc #$00
sta L9418
.byte $AD
LA05B: rmb1 $94
clc
adc L8802
sta L9417
lda L9418
adc #$00
sta L9418
ldx #$03
LA06E: lda L9415,x
sta L9F94,x
dex
bpl LA06E
bit L9F92
bvc LA097
jsr A2D
.byte $03
.addr L9345
jsr LA63F
LA085: jsr LA6A3
jsr LA097
lda L9F93
bne LA085
jsr A2D
.byte $06
.addr L9345
rts
LA097: jsr A2D
.byte $26
.addr L93BC
jsr A2D
.byte $07
.addr L939A
bit L9F92
bpl LA0C2
bit L9F92
bvc LA0B6
jsr A2D
.byte $07
.addr L9396
jmp LA0C2
LA0B6: jsr A2D
.byte $14
.addr L8E35
jsr A2D
.byte $07
.addr L9398
LA0C2: jsr A2D
.byte $14
.addr L8E25
ldy #$02
lda ($06),y
and #$80
beq LA0F2
jsr LA14D
jsr A2D
.byte $08
.addr L8E83
bit L9F92
bmi LA0E6
jsr A2D
.byte $07
.addr L9399
beq LA0EC
LA0E6: jsr A2D
.byte $07
.addr L9397
LA0EC: jsr A2D
.byte $11
.addr L8E45
LA0F2: ldx #$03
LA0F4: lda L9F94,x
sta L9415,x
dex
bpl LA0F4
jsr A2D
.byte $0E
.addr L9415
bit L9F92
bmi LA10C
lda #$7F
bne LA10E
LA10C: lda #$00
LA10E: sta L8E51
jsr A2D
.byte $0C
.addr L8E51
lda L8E56
and #$DF
sta L8E56
jsr A2D
.byte $19
.addr L8E52
jsr A2D
.byte $25
.addr L0000
rts
LA12C: ldx #$0F
LA12E: lda L8E25,x
sta L8E35,x
dex
bpl LA12E
ldy L8E43
LA13A: lda L8E3B
clc
adc L8E39
sta L8E39
bcc LA149
inc L8E3A
LA149: dey
bpl LA13A
rts
LA14D: ldx #$00
LA14F: lda L8E25,x
clc
adc L8E2D,x
sta L8E45,x
lda L8E26,x
adc L8E2E,x
sta L8E46,x
lda L8E25,x
clc
adc L8E31,x
sta L8E49,x
lda L8E26,x
adc L8E32,x
sta L8E4A,x
inx
inx
cpx #$04
bne LA14F
lda L8E4B
sec
sbc #$01
sta L8E4B
bcs LA189
dec L8E4C
LA189: rts
LA18A: jsr LA365
ldy #$06
ldx #$03
LA191: lda ($06),y
sta L8E05,x
dey
dex
bpl LA191
lda L8E07
sta L8E0B
lda L8E08
sta L8E0C
lda L8E05
sta L8E21
lda L8E06
sta L8E22
ldy #$07
lda ($06),y
sta $08
iny
lda ($06),y
sta $09
ldy #$08
lda ($08),y
clc
adc L8E05
sta L8E09
sta L8E0D
iny
lda ($08),y
adc L8E06
sta L8E0A
sta L8E0E
ldy #$0A
lda ($08),y
clc
adc L8E07
sta L8E0F
iny
lda ($08),y
adc L8E08
sta L8E10
lda L8E0F
clc
adc #$02
sta L8E0F
sta L8E13
sta L8E1F
sta L8E23
lda L8E10
adc #$00
sta L8E10
sta L8E14
sta L8E20
sta L8E24
lda L8802
clc
adc L8E0F
sta L8E17
sta L8E1B
lda L8E10
adc #$00
sta L8E18
sta L8E1C
ldy #$1C
ldx #$13
LA22A: lda ($06),y
sta L8E54,x
dey
dex
bpl LA22A
LA233: lda L8E54
sta L8E4F
jsr A2D
.byte $18
.addr L8E4D
ldy #$08
lda L8E50
cmp ($08),y
bcs LA256
inc L8E54
ldx L8E54
lda #$20
sta L8E54,x
jmp LA233
LA256: lsr a
sta LA2A5
lda ($08),y
lsr a
sta LA2A4
lda LA2A5
sec
sbc LA2A4
sta LA2A4
lda L8E05
sec
sbc LA2A4
sta L8E1D
sta L8E19
lda L8E06
sbc #$00
sta L8E1E
sta L8E1A
inc L8E50
inc L8E50
lda L8E19
clc
adc L8E50
sta L8E11
sta L8E15
lda L8E1A
adc #$00
sta L8E12
sta L8E16
jsr LA382
rts
LA2A4: brk
LA2A5: brk
LA2A6: jmp LA2AE
LA2A9: brk
LA2AA: jsr LA382
rts
LA2AE: jsr LA365
ldx L8E95
dex
LA2B5: bmi LA2AA
txa
pha
lda L8E96,x
asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
ldy #$02
lda ($06),y
and #$0F
bne LA2DD
ldy #$00
lda ($06),y
sta LA2A9
jsr L93BC
.byte $03
lda #$A2
LA2DD: pla
tax
dex
jmp LA2B5
LA2E3: stx LA322
sta LA323
ldx #$00
LA2EB: lda L8E96,x
cmp LA323
beq LA2FA
inx
cpx L8E95
bne LA2EB
rts
LA2FA: lda L8E97,x
sta L8E96,x
inx
cpx L8E95
bne LA2FA
ldx L8E95
LA309: cpx LA322
beq LA318
lda L8E94,x
sta L8E95,x
dex
jmp LA309
LA318: ldx LA322
lda LA323
sta L8E95,x
rts
LA322: brk
LA323: brk
LA324: stx LA363
sta LA364
ldx #$00
LA32C: lda L9017,x
cmp LA364
beq LA33B
inx
cpx L9016
bne LA32C
rts
LA33B: lda L9018,x
sta L9017,x
inx
cpx L9016
bne LA33B
ldx L9016
LA34A: cpx LA363
beq LA359
lda L9015,x
sta L9016,x
dex
jmp LA34A
LA359: ldx LA363
lda LA364
sta L9016,x
rts
LA363: brk
LA364: brk
LA365: pla
sta LA380
pla
sta LA381
ldx #$00
LA36F: lda $06,x
pha
inx
cpx #$04
bne LA36F
lda LA381
pha
lda LA380
pha
rts
LA380: brk
LA381: brk
LA382: pla
sta LA39B
pla
sta LA39C
ldx #$03
LA38C: pla
sta $06,x
dex
bpl LA38C
lda LA39C
pha
lda LA39B
pha
rts
LA39B: brk
LA39C: brk
LA39D: jsr A2D
.byte $03
.addr L9345
jsr A2D
.byte $04
.addr L9345
jmp LA3B9
LA3AC: brk
LA3AD: brk
LA3AE: brk
LA3AF: brk
LA3B0: brk
LA3B1: brk
LA3B2: brk
LA3B3: brk
brk
brk
brk
LA3B7: brk
LA3B8: brk
LA3B9: ldy #$00
lda ($06),y
sta LA3AC
iny
iny
lda ($06),y
and #$0F
sta LA3AD
beq LA3F4
lda #$80
sta LA3B7
jsr A2D
.byte $08
.addr L8E68
jsr A2D
.byte $41
.addr LA3B8
lda LA3B8
sta L9369
jsr A2D
.byte $3C
.addr L9369
jsr LA4CC
jsr LA938
jsr LA41C
jmp LA446
LA3F4: jsr A2D
.byte $03
.addr L9345
jsr LA63F
LA3FD: jsr LA6A3
jsr LA411
lda L9F93
bne LA3FD
jsr A2D
.byte $06
.addr L9345
jmp LA446
LA411: lda #$00
sta LA3B7
jsr A2D
.byte $08
.addr L8E7A
LA41C: lda L8E07
sta LA3B1
lda L8E08
sta LA3B2
lda L8E1D
sta LA3AF
lda L8E1E
sta LA3B0
ldx #$03
LA436: lda L8E15,x
sta LA3B3,x
dex
bpl LA436
jsr A2D
.byte $15
.addr L8E03
rts
LA446: jsr LA365
ldx L8E95
dex
LA44D: cpx #$FF
bne LA466
bit LA3B7
bpl LA462
jsr A2D
.byte $03
.addr L9345
jsr A2D
.byte $04
.addr L936C
LA462: jsr LA382
rts
LA466: txa
pha
lda L8E96,x
cmp LA3AC
beq LA4C5
asl a
tax
lda L8F15,x
sta $08
lda L8F16,x
sta $09
ldy #$02
lda ($08),y
and #$07
cmp LA3AD
bne LA4C5
lda L9015
beq LA49D
ldy #$00
lda ($08),y
ldx #$00
LA492: cmp L9017,x
beq LA4C5
inx
cpx L9016
bne LA492
LA49D: ldy #$00
lda ($08),y
sta LA3AE
bit LA3B7
bpl LA4AC
jsr LA4D3
LA4AC: jsr L93BC
ora LA3AE
beq LA4BA
jsr L93BC
.byte $03
.byte $AE
.byte $A3
LA4BA: bit LA3B7
bpl LA4C5
lda LA3AE
jsr LA4DC
LA4C5: pla
tax
dex
jmp LA44D
LA4CB: brk
LA4CC: lda #$80
sta LA4CB
bmi LA4E2
LA4D3: pha
lda #$40
sta LA4CB
jmp LA4E2
LA4DC: pha
lda #$00
sta LA4CB
LA4E2: ldy #$00
LA4E4: lda L936C,y
sta LA567,y
iny
cpy #$04
bne LA4E4
ldy #$08
LA4F1: lda L936C,y
sta LA563,y
iny
cpy #$0C
bne LA4F1
bit LA4CB
bmi LA506
bvc LA56F
jmp LA5CB
LA506: ldx #$00
LA508: lda L8E05,x
sec
sbc LA567
sta L8E05,x
lda L8E06,x
sbc LA568
sta L8E06,x
lda L8E07,x
sec
sbc LA569
sta L8E07,x
lda L8E08,x
sbc LA56A
sta L8E08,x
inx
inx
inx
inx
cpx #$20
bne LA508
ldx #$00
lda L8E05,x
clc
adc LA56B
sta L8E05,x
lda L8E06,x
adc LA56C
sta L8E06,x
lda L8E07,x
clc
adc LA56D
sta L8E07,x
lda L8E08,x
adc LA56E
sta L8E08,x
inx
inx
inx
inx
.byte $E0
LA563: jsr LD2D0
rts
LA567: brk
LA568: brk
LA569: brk
LA56A: brk
LA56B: brk
LA56C: brk
LA56D: brk
LA56E: brk
LA56F: pla
tay
jsr LA365
tya
asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
ldy #$03
lda ($06),y
clc
adc LA567
sta ($06),y
iny
lda ($06),y
adc LA568
sta ($06),y
iny
lda ($06),y
clc
adc LA569
sta ($06),y
iny
lda ($06),y
adc LA56A
sta ($06),y
ldy #$03
lda ($06),y
sec
sbc LA56B
sta ($06),y
iny
lda ($06),y
sbc LA56C
sta ($06),y
iny
lda ($06),y
sec
sbc LA56D
sta ($06),y
iny
lda ($06),y
sbc LA56E
sta ($06),y
jsr LA382
rts
LA5CB: pla
tay
jsr LA365
tya
asl a
tax
lda L8F15,x
sta $06
lda L8F16,x
sta $07
ldy #$03
lda ($06),y
sec
sbc LA567
sta ($06),y
iny
lda ($06),y
sbc LA568
sta ($06),y
iny
lda ($06),y
sec
sbc LA569
sta ($06),y
iny
lda ($06),y
sbc LA56A
sta ($06),y
ldy #$03
lda ($06),y
clc
adc LA56B
sta ($06),y
iny
lda ($06),y
adc LA56C
sta ($06),y
iny
lda ($06),y
clc
adc LA56D
sta ($06),y
iny
lda ($06),y
adc LA56E
sta ($06),y
jsr LA382
rts
LA627: brk
LA628: brk
LA629: brk
LA62A: brk
LA62B: brk
LA62C: brk
brk
brk
LA62F: brk
LA630: brk
LA631: brk
LA632: brk
brk
jsr L0080
LA637: brk
LA638: brk
LA639: brk
LA63A: brk
LA63B: brk
LA63C: brk
LA63D: brk
LA63E: brk
LA63F: jsr LA18A
lda L8E07
sta LA629
sta LA639
sta LA631
lda L8E08
sta LA62A
sta LA63A
sta LA632
lda L8E19
sta LA627
sta LA637
sta LA62F
lda L8E1A
sta LA628
sta LA638
sta LA630
ldx #$03
LA674: lda L8E15,x
sta LA62B,x
sta LA63B,x
dex
bpl LA674
lda LA62B
cmp #$2F
lda LA62C
sbc #$02
bmi LA69C
lda #$2E
sta LA62B
sta LA63B
lda #$02
sta LA62C
sta LA63C
LA69C: jsr A2D
.byte $06
.addr LA62F
rts
LA6A3: lda #$00
jmp LA6C7
LA6A8: brk
brk
brk
brk
LA6AC: brk
LA6AD: brk
LA6AE: brk
LA6AF: brk
LA6B0: brk
LA6B1: brk
LA6B2: brk
LA6B3: brk
LA6B4: brk
LA6B5: brk
LA6B6: brk
LA6B7: brk
LA6B8: brk
LA6B9: brk
LA6BA: brk
LA6BB: brk
LA6BC: brk
LA6BD: brk
LA6BE: brk
LA6BF: brk
LA6C0: brk
LA6C1: brk
LA6C2: brk
LA6C3: brk
LA6C4: brk
LA6C5: brk
LA6C6: brk
LA6C7: lda L9F93
beq LA6FA
lda LA63B
clc
adc #$01
sta LA637
sta LA62F
lda LA63C
adc #$00
sta LA638
sta LA630
ldx #$05
LA6E5: lda LA629,x
sta LA639,x
dex
bpl LA6E5
lda LA639
sta LA631
lda LA63A
sta LA632
LA6FA: lda LA637
sta LA6B3
sta LA6BF
lda LA638
sta LA6B4
sta LA6C0
lda LA639
sta LA6B5
sta LA6B9
lda LA63A
sta LA6B6
sta LA6BA
lda LA63B
sta LA6B7
sta LA6BB
lda LA63C
sta LA6B8
sta LA6BC
lda LA63D
sta LA6BD
sta LA6C1
lda LA63E
sta LA6BE
sta LA6C2
lda #$00
sta LA6B0
LA747: lda LA6B0
cmp #$04
bne LA775
lda #$00
sta LA6B0
LA753: jsr A2D
.byte $06
.addr LA62F
lda LA63C
cmp LA62C
bne LA76F
lda LA63B
cmp LA62B
bcc LA76F
lda #$00
sta L9F93
rts
LA76F: lda #$01
sta L9F93
rts
LA775: lda LA6B0
asl a
asl a
tax
ldy #$00
LA77D: lda LA6B3,x
sta LA6A8,y
iny
inx
cpy #$04
bne LA77D
inc LA6B0
jsr A2D
.byte $40
.addr LA6A8
lda LA6AC
beq LA747
lda LA6AD
sta L9369
jsr A2D
.byte $3C
.addr L9369
jsr LA365
jsr A2D
.byte $3B
.addr LA6AD
lda LA6AE
sta $06
lda LA6AF
sta $07
ldy #$01
LA7B8: lda ($06),y
and #$01
bne LA7C3
sta LA6B2
beq LA7C8
LA7C3: lda #$80
sta LA6B2
LA7C8: ldy #$04
lda ($06),y
and #$80
sta LA6B1
iny
lda ($06),y
and #$80
lsr a
ora LA6B1
sta LA6B1
lda L936C
sec
sbc #$02
sta L936C
lda L936D
sbc #$00
sta L936D
lda L9374
sec
sbc #$02
sta L9374
lda L9375
sbc #$00
sta L9375
bit LA6B2
bmi LA820
lda L936E
sec
sbc #$0E
sta L936E
bcs LA812
dec L936F
LA812: lda L9376
sec
sbc #$0E
sta L9376
bcs LA820
dec L9377
LA820: bit LA6B1
bpl LA833
lda L937A
clc
adc #$0C
sta L937A
bcc LA833
inc L937B
LA833: bit LA6B1
bvc LA846
lda L9378
clc
adc #$14
sta L9378
bcc LA846
inc L9379
LA846: jsr LA382
lda L9378
sec
sbc L9374
sta LA6C3
lda L9379
sbc L9375
sta LA6C4
lda L937A
sec
sbc L9376
sta LA6C5
lda L937B
sbc L9377
sta LA6C6
lda LA6C3
clc
adc L936C
sta LA6C3
lda L936D
adc LA6C4
sta LA6C4
lda LA6C5
clc
adc L936E
sta LA6C5
lda LA6C6
adc L936F
sta LA6C6
lda LA63B
cmp LA6C3
lda LA63C
sbc LA6C4
bmi LA8B7
lda LA6C3
clc
adc #$01
sta LA63B
lda LA6C4
adc #$00
sta LA63C
jmp LA8D4
LA8B7: lda L936C
cmp LA637
lda L936D
sbc LA638
bmi LA8D4
lda L936C
sta LA63B
lda L936D
sta LA63C
jmp LA6FA
LA8D4: lda L936E
cmp LA639
lda L936F
sbc LA63A
bmi LA8F6
lda L936E
sta LA63D
lda L936F
sta LA63E
lda #$01
sta L9F93
jmp LA6FA
LA8F6: lda LA6C5
cmp LA63D
lda LA6C6
sbc LA63E
bpl LA923
lda LA6C5
clc
adc #$02
sta LA639
sta LA631
lda LA6C6
adc #$00
sta LA63A
sta LA632
lda #$01
sta L9F93
jmp LA6FA
LA923: lda LA63B
sta LA637
sta LA62F
lda LA63C
sta LA638
sta LA630
jmp LA753
LA938: lda L936E
clc
adc #$0F
sta L936E
lda L936F
adc #$00
sta L936F
lda L9376
clc
adc #$0F
sta L9376
lda L9377
adc #$00
sta L9377
jsr A2D
.byte $04
.addr L936C
rts
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
sty $04A9
brk
brk
brk
ora (L0000,x)
inc a
brk
bbr0 L0000,LA9E2
rol a
eor $2A,x
bbr7 $7F,LAA12
bbr7 $03,LA9F6
ora (L0030,x)
.byte $03
rts
ora ($70,x)
.byte $03
rts
ora (L0030,x)
.byte $03
rts
ora ($70,x)
.byte $03
brk
brk
bmi LA9AC
rts
ora ($70,x)
LA9AC: .byte $03
bvs LA9B2
bmi LA9B4
rts
LA9B2: ora ($70,x)
LA9B4: .byte $03
brk
brk
bmi LA9BC
brk
brk
.byte $70
LA9BC: ora a:L0000
bmi LA9C4
brk
brk
.byte $70
LA9C4: .byte $03
brk
brk
bmi LAA48
bbr7 $7F,LAA4B
cld
lda #$06
brk
ora (L0000,x)
brk
brk
rol L0000
.byte $0B
brk
bbr7 $7F,LAA5A
bbr7 $7F,LAA3D
.byte $03
brk
brk
brk
LA9E2: brk
sec
.byte $03
brk
brk
brk
brk
cli
.byte $03
brk
brk
brk
brk
sec
.byte $03
sei
adc ($33),y
bmi LAA4E
LA9F6: .byte $03
clc
.byte $33
ror $3D,x
sec
.byte $03
sei
adc ($37),y
rmb3 $58
.byte $03
clc
.byte $33
rol L0030,x
sec
.byte $03
brk
brk
brk
brk
cli
bbr7 $7F,LAA90
.byte $19
LAA12: .byte $33
sec
rol a
eor $2A,x
ora L5833,y
eor $2A,x
eor $7F,x
bbr7 L003F,LAA4D
tax
.byte $03
brk
brk
brk
brk
brk
trb L0000
.byte $0B
brk
bbr7 $7F,LAA6E
.byte $63
brk
.byte $73
.byte $63
brk
.byte $73
.byte $63
bbr7 $63,LAA3C
brk
rts
.byte $03
LAA3C: brk
LAA3D: rts
.byte $73
bbr7 $67,LAA75
brk
ror $33
brk
ror $33
LAA48: brk
ror $33
LAA4B: brk
.byte $66
LAA4D: .byte $7F
LAA4E: bbr7 $7F,LAAAD
tax
php
brk
ora (L0000,x)
brk
brk
.byte $33
brk
LAA5A: ora #$00
ror L7F7F,x
bbr7 $7F,LAAE1
bbr7 $57,LAA68
brk
brk
brk
LAA68: brk
brk
brk
bit a:$03
LAA6E: brk
brk
brk
brk
brk
.byte $5C
.byte $03
LAA75: brk
brk
brk
brk
brk
brk
bit $0163
brk
brk
brk
brk
brk
.byte $5C
.byte $03
brk
brk
brk
brk
brk
brk
.byte $5C
.byte $03
brk
brk
brk
LAA90: brk
brk
brk
bit a:$03
brk
brk
brk
brk
brk
.byte $5C
ror L7F7F,x
bbr7 $7F,LAB21
bbr7 $57,LAB1A
rol a
eor $2A,x
eor $2A,x
adc $2A,x
clv
LAAAD: tax
ora L0000
rmb0 L0000
ora (L0000,x)
.byte $1B
brk
ora (L0000)
brk
brk
brk
brk
brk
brk
eor $FF,x
eor L0000,x
brk
rol a
.byte $E3
rol a
brk
brk
.byte $FF
.byte $FF
LAACA: bbs7 L0000,$AACD
.byte $03
brk
cpx #$00
brk
.byte $FF
.byte $FF
LAAD4: bbs7 L0000,$AAD7
.byte $03
brk
rts
brk
brk
.byte $43
bpl LAB43
brk
brk
LAAE1: .byte $23
php
.byte $62
brk
brk
.byte $23
php
.byte $62
brk
brk
.byte $23
php
.byte $62
brk
brk
.byte $23
php
.byte $62
brk
brk
.byte $23
php
.byte $62
brk
brk
.byte $23
php
.byte $62
brk
brk
.byte $23
php
.byte $62
brk
brk
.byte $23
php
.byte $62
brk
brk
.byte $43
bpl LAB70
brk
brk
.byte $03
brk
rts
brk
brk
.byte $FF
.byte $FF
LAB15: bbs7 L0000,$AB18
brk
brk
LAB1A: brk
brk
ora ($1E,x)
tsb $46
.byte $69
LAB21: jmp (L0465)
lsr $69,x
adc $77
rmb0 $53
bvs LAB91
.byte $63
adc #$61
jmp (L5307)
stz $61,x
adc ($74)
adc $70,x
php
.byte $53
adc $6C
adc $63
stz $6F,x
adc ($0E)
.byte $4E
LAB43: adc $77
jsr L6F46
jmp (L6564)
adc ($20)
rol L2E2E
tsb $4F
bvs LABB9
ror L4305
jmp (L736F)
adc $09
.byte $43
jmp (L736F)
adc $20
eor ($6C,x)
jmp (L530A)
adc $6C
adc $63
stz $20,x
eor ($6C,x)
.byte $6C
LAB70: bbr0 $43,LABE2
bvs LABEE
jsr L2061
lsr $69
jmp (L2065)
rol L2E2E
ora ($44),y
adc $6C
adc $74
adc $20
adc ($20,x)
lsr $69
jmp (L2065)
.byte $2E
.byte $2E
LAB91: rol L4505
ror a
adc $63
stz $04,x
eor ($75),y
adc #$74
rmb0 $42
adc L4920,y
.byte $63
bbr6 $6E,LABAD
.byte $42
adc L4E20,y
adc ($6D,x)
.byte $65
LABAD: rmb0 $42
adc L4420,y
adc ($74,x)
adc $07
.byte $42
.byte $79
.byte $20
LABB9: .byte $53
adc #$7A
adc $07
.byte $42
adc L5420,y
adc L6570,y
tsb L6843
adc $63
.byte $6B
jsr L7244
adc #$76
adc $73
ora ($46),y
bbr6 $72,LAC44
adc ($74,x)
jsr L2061
.byte $44
adc #$73
.byte $6B
.byte $20
.byte $2E
LABE2: rol $102E
eor $72
adc ($73,x)
adc $20
adc ($20,x)
.byte $44
LABEE: adc #$73
.byte $6B
jsr L2E2E
rol L440D
adc #$73
.byte $6B
jsr L6F43
bvs LAC78
jsr L2E2E
rol L4C08
bbr6 $63,LAC73
jsr L2E2E
rol L550A
ror L6F6C
.byte $63
.byte $6B
jsr L2E2E
rol L470C
adc $74
jsr L6E49
ror $6F
jsr L2E2E
.byte $2E
.byte $0C
LAC25: rmb4 $65
stz $20,x
.byte $53
adc #$7A
adc $20
rol L2E2E
ora ($52)
adc $6E
adc ($6D,x)
adc $20
adc ($6E,x)
jsr L6349
bbr6 $6E,LAC61
rol L2E2E
LAC44: asl L0000
ora (L0000,x)
trb L94AB
sbc L0000
brk
brk
brk
brk
brk
.byte $02
brk
asl L8EAB,x
ldy a:L0000
brk
brk
brk
brk
tsb L0000
.byte $23
LAC61: .byte $AB
.byte $DC
ldy a:L0000
brk
brk
brk
brk
ora L0000
plp
.byte $AB
brk
lda a:L0000
brk
LAC73: brk
brk
brk
php
brk
LAC78: bmi LAC25
dec $E2,x
brk
brk
brk
brk
brk
brk
.byte $03
brk
sec
.byte $AB
sbc ($E4)
brk
brk
brk
brk
brk
brk
tsb a:L0000
brk
brk
brk
ora (L0000,x)
lsr $66
eor ($AB,x)
rti
brk
.byte $13
brk
brk
brk
ora (L0000,x)
bbr4 $6F,LACF5
.byte $AB
ora (L0000,x)
.byte $43
.byte $63
eor $AB,x
ora (L0000,x)
.byte $42
.byte $62
.byte $5B
.byte $AB
ora (L0000,x)
eor ($61,x)
adc $AB
rti
brk
.byte $13
brk
brk
brk
ora (L0000,x)
eor L7079,y
.byte $AB
ora (L0000,x)
.byte $44
stz L0080
.byte $AB
rti
brk
.byte $13
brk
brk
brk
ora (L0000,x)
eor $65
sta ($AB)
ora (L0000,x)
eor ($71),y
tya
.byte $AB
ora L0000
brk
brk
brk
brk
ora (L0000,x)
lsr a
ror a
sta $01AB,x
brk
lsr LA56E
.byte $AB
ora (L0000,x)
.byte $54
stz $AD,x
.byte $AB
.byte $01
LACF5: brk
.byte $4B
.byte $6B
lda $AB,x
ora (L0000,x)
jmp LBD6C
.byte $AB
ora a:L0000
brk
brk
brk
brk
brk
brk
brk
cmp $AB
rti
brk
.byte $13
brk
brk
brk
ora (L0000,x)
.byte $53
.byte $73
cmp ($AB)
ora (L0000,x)
phy
ply
cpx $AB
brk
brk
brk
brk
sbc $AB,x
rti
brk
.byte $13
brk
brk
brk
brk
brk
brk
brk
.byte $03
ldy a:L0000
brk
brk
tsb L40AC
brk
.byte $13
brk
brk
brk
ora (L0000,x)
eor #$69
rmb1 $AC
brk
brk
brk
brk
bit $AC
rti
brk
.byte $13
brk
brk
brk
brk
brk
brk
brk
and ($AC),y
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
tsb L0000
.byte $02
brk
sty L6201
brk
ora L0000
.byte $03
brk
.byte $8B
ora ($61,x)
brk
plp
brk
eor (L0000),y
sty L5C00
brk
cmp (L0000,x)
asl $2500,x
ora ($29,x)
brk
tsb $01
eor (L0000),y
pla
ora ($5C,x)
brk
iny
brk
eor (L0000),y
beq LAE2E
LAE2E: .byte $5C
brk
tsb $01
eor (L0000),y
bit L5C01
brk
rti
ora ($51,x)
brk
pla
ora ($5C,x)
brk
bbr0 $4F,LAE8E
jsr L2020
jsr L2020
jsr L2020
jsr L2020
ora $0109
.byte $5B
brk
and L5B00
brk
cmp L5B00
brk
ora #$01
.byte $5B
brk
eor $01
.byte $5B
brk
trb L7000
brk
trb L8700
brk
brk
bbr7 $27,LAE70
LAE70: ora L6800,y
ora ($50,x)
brk
plp
brk
bit L6800,x
ora ($50,x)
brk
eor (L0000,x)
.byte $2B
brk
eor (L0000,x)
.byte $33
brk
eor (L0000,x)
.byte $23
brk
txa
ora ($2A,x)
brk
LAE8E: eor (L0000,x)
.byte $2B
brk
txa
ora ($32,x)
brk
ora ($43),y
adc ($6E,x)
.byte $63
adc $6C
jsr L2020
jsr L2020
jsr L4520
.byte $73
.byte $63
tsb $20
eor L7365,y
.byte $03
jsr L6F4E
tsb $20
eor ($6C,x)
jmp (L5310)
bbr6 $75,LAF2D
.byte $63
adc $20
ror $69
jmp (L6E65)
adc ($6D,x)
adc $3A
ora $44,x
adc $73
stz $69,x
ror L7461
adc #$6F
ror L6620
adc #$6C
adc $6E
adc ($6D,x)
adc $3A
tsb L0000
.byte $02
brk
sty L6C01
brk
ora L0000
.byte $03
brk
.byte $8B
ora ($6B,x)
brk
bpl LAF30
bvs LAF61
jmp (L2065)
eor #$49
jsr L6544
.byte $73
.byte $6B
.byte $54
bbr6 $70,LAF22
.byte $43
bbr6 $70,LAF7C
adc ($69)
rmb6 $68
stz $20,x
eor ($70,x)
bvs LAF79
adc $20
.byte $43
bbr6 $6D,LAF83
adc $74,x
adc $72
jsr L6E49
.byte $63
rol L202C
and ($39),y
sec
.byte $36
LAF22: .byte $23
.byte $43
bbr6 $70,LAFA0
adc ($69)
rmb6 $68
stz $20,x
LAF2D: lsr $65,x
.byte $72
LAF30: .byte $73
adc #$6F
ror L5320
bbr6 $66,LAFAD
bit $3120
and $3538,y
jsr L202D
and ($39),y
sec
rol $13,x
eor ($6C,x)
jmp (L5220)
adc #$67
pla
stz $73,x
jsr L6552
.byte $73
adc $72
ror $65,x
stz $38
eor ($75,x)
stz $68,x
.byte $6F
.byte $72
LAF61: .byte $73
dec a
jsr L7453
adc $70
pla
adc ($6E,x)
adc $20
.byte $43
adc ($76,x)
adc ($69)
jmp (L202C)
.byte $42
adc $72
.byte $6E
LAF79: adc ($72,x)
.byte $64
LAF7C: jsr L6147
jmp (L656C)
.byte $74
LAF83: bit L4820
adc $6E
adc ($69)
jsr L614C
adc L7269
adc ($75,x)
sei
jsr L6952
.byte $63
pla
adc ($72,x)
stz $20
.byte $44
adc ($6E,x)
.byte $61
LAFA0: adc #$73
jsr L6E61
stz $20
jmp L6375
jsr L6142
LAFAD: adc ($74)
pla
adc $6C
adc $74
and L6957,y
stz $68,x
jsr L6874
adc ($6E,x)
.byte $6B
.byte $73
jsr L6F74
dec a
jsr L2E41
jsr L6547
adc ($61)
adc ($64)
bit L4A20
rol L4720
adc $72
.byte $62
adc $72
bit L5020
rol L5020
adc ($68,x)
jmp (L202C)
lsr a
rol L4220
adc $72
ror L7261
stz $11
lsr L766F
adc $6D
.byte $62
adc $72
jsr L3632
bit $3120
and $3638,y
.byte $0B
lsr $65,x
adc ($73)
adc #$6F
ror $3120
rol $0831
.byte $43
bbr6 $70,LB08A
jsr L2E2E
rol L4E0C
bbr6 $77,LB03A
.byte $43
bbr6 $70,LB097
adc #$6E
rmb6 $20
ora $66
adc ($6F)
adc $043A
stz $6F,x
jsr L193A
lsr $69
jmp (L7365)
jsr L6572
adc L6961
.byte $6E
LB03A: adc #$6E
rmb6 $20
stz $6F,x
jsr L6F63
bvs LB0BE
dec a
jsr L5438
pla
adc ($74,x)
jsr L6966
jmp (L2065)
adc ($6C,x)
adc ($65)
adc ($64,x)
adc L6520,y
sei
adc #$73
stz $73,x
rol L4420
bbr6 $20,LB0DF
bbr6 $75,LB089
rmb7 $61
ror $2074
stz $6F,x
jsr L7277
adc #$74
adc $20
bbr6 $76,LB0DF
adc ($20)
adc #$74
jsr L353F
.byte $54
pla
adc #$73
jsr L6966
.byte $6C
LB089: .byte $65
LB08A: jsr L7369
jsr L6F74
bbr6 $20,LB0FF
adc ($72,x)
rmb6 $65
LB097: jsr L6F74
jsr L6F63
bvs LB118
bit L6320
jmp (L6369)
.byte $6B
jsr L4B4F
jsr L6F74
jsr L6F63
ror L6974
ror L6575
rol a:$6E
.byte $23
brk
tax
brk
.byte $3B
brk
LB0BE: asl a
.byte $44
adc $6C
adc $74
adc $20
rol L2E2E
.byte $13
.byte $43
jmp (L6369)
.byte $6B
jsr L4B4F
jsr L6F74
jsr L6564
jmp (L7465)
adc $3A
bmi LB122
LB0DF: jmp (L6369)
.byte $6B
adc #$6E
rmb6 $20
bbr4 $4B,LB10A
rmb7 $69
jmp (L206C)
adc #$6D
adc L6464+1
adc #$61
stz $65,x
jmp (L2079)
adc $6D
bvs LB173
LB0FF: adc L7420,y
pla
adc $20
stz $72,x
adc ($73,x)
pla
LB10A: jsr L666F
dec a
ora $46
adc #$6C
adc $3A
asl L6946,x
.byte $6C
LB118: adc $73
jsr L6572
adc L6961
.byte $6E
.byte $69
LB122: ror $2067
stz $6F,x
jsr L6562
jsr L6564
jmp (L7465)
adc $64
dec a
rol $54,x
pla
adc #$73
jsr L6966
jmp (L2065)
adc #$73
jsr L6F6C
.byte $63
.byte $6B
adc $64
bit L6420
bbr6 $20,LB1C6
bbr6 $75,LB170
rmb7 $61
ror $2074
stz $6F,x
jsr L6564
jmp (L7465)
adc $20
adc #$74
jsr L6E61
adc L6177,y
adc $3F20,y
sta (L0000),y
.byte $3B
brk
iny
brk
LB170: .byte $3B
brk
.byte $2C
LB173: ora ($3B,x)
brk
asl L654E
rmb7 $20
lsr $6F
jmp (L6564)
adc ($20)
rol L2E2E
.byte $03
adc #$6E
dec a
asl $45,x
ror L6574
adc ($20)
stz $68,x
adc $20
ror $6F
jmp (L6564)
adc ($20)
ror L6D61
adc $3A
ora ($52)
adc $6E
adc ($6D,x)
adc $20
adc ($6E,x)
jsr L6349
bbr6 $6E,LB1D0
rol L2E2E
php
eor ($65)
ror L6D61
adc $3A
jsr L4E09
adc $77
jsr L616E
adc $3A65
LB1C6: tsb L6547
stz $20,x
eor #$6E
ror $6F
.byte $20
LB1D0: rol L2E2E
tsb $4E
adc ($6D,x)
adc $06
jmp L636F
.byte $6B
adc $64
tsb $53
adc #$7A
adc $0D
.byte $43
adc ($65)
adc ($74,x)
adc #$6F
ror L6420
adc ($74,x)
adc $11
jmp L7361
stz $20,x
adc L646F
adc #$66
adc #$63
adc ($74,x)
adc #$6F
ror L5404
adc L6570,y
bbr0 $57,LB27E
adc #$74
adc $20
bvs LB284
bbr6 $74,LB27A
.byte $63
stz $65,x
stz $10
.byte $42
jmp (L636F)
.byte $6B
.byte $73
jsr L7266
adc $65
bbr2 $73,LB291
ply
adc $02
dec a
jsr L00A0
.byte $3B
brk
sta (L0000),y
.byte $3B
brk
iny
brk
.byte $3B
brk
lda $3B00,y
brk
cmp $3B00
brk
.byte $C3
brk
.byte $3B
brk
ora ($46),y
bbr6 $72,LB2B7
adc ($74,x)
jsr L2061
.byte $44
adc #$73
.byte $6B
jsr L2E2E
rol L5335
adc $6C
adc $63
stz $20,x
stz $68,x
adc $20
jmp (L636F)
adc ($74,x)
adc #$6F
ror L7720
pla
adc $72
adc $20
stz $68,x
adc $20
stz $69
.byte $73
.byte $6B
LB27A: jsr L7369
.byte $20
LB27E: stz $6F,x
jsr L6562
.byte $20
LB284: ror $6F
adc ($6D)
adc ($74,x)
stz $65,x
stz $21
eor $6E
.byte $74
LB291: adc $72
jsr L6874
adc $20
ror L6D61
adc $20
bbr6 $66,LB2C0
stz $68,x
adc $20
ror L7765
jsr L6F76
jmp (L6D75)
adc $3A
asl $44,x
bbr6 $20,LB32D
bbr6 $75,LB2D7
LB2B7: rmb7 $61
ror $2074
stz $6F,x
.byte $20
.byte $66
LB2C0: bbr6 $72,LB330
adc ($74,x)
jsr L4617
bbr6 $72,LB338
adc ($74,x)
stz $69,x
ror $2067
stz $68,x
adc $20
.byte $64
LB2D7: adc #$73
.byte $6B
rol L2E2E
rol L463A
bbr6 $72,LB350
adc ($74,x)
stz $69,x
ror $2067
adc $72
adc ($6F)
adc ($2E)
jsr L6843
adc $63
.byte $6B
jsr L7264
adc #$76
adc $2C
jsr L6874
adc $6E
jsr L6C63
adc #$63
.byte $6B
jsr L4B4F
jsr L6F74
jsr L7274
adc L6120,y
rmb6 $61
adc #$6E
rol L4510
adc ($61)
.byte $73
adc $20
adc ($20,x)
.byte $44
adc #$73
.byte $6B
jsr L2E2E
rol L5332
.byte $65
LB32D: jmp (L6365)
LB330: stz $20,x
stz $68,x
adc $20
.byte $6C
.byte $6F
LB338: .byte $63
adc ($74,x)
adc #$6F
ror L7720
pla
adc $72
adc $20
stz $68,x
adc $20
stz $69
.byte $73
.byte $6B
jsr L7369
LB350: jsr L6F74
jsr L6562
jsr L7265
adc ($73,x)
adc $64
ora $44,x
bbr6 $20,LB3DB
bbr6 $75,LB385
rmb7 $61
ror $2074
stz $6F,x
jsr L7265
adc ($73,x)
adc $20
trb $45
adc ($61)
.byte $73
adc #$6E
rmb6 $20
stz $68,x
adc $20
stz $69
.byte $73
.byte $6B
.byte $2E
LB385: rol L2E2E
rmb3 $45
adc ($61)
.byte $73
adc #$6E
rmb6 $20
adc $72
adc ($6F)
adc ($2E)
jsr L6843
adc $63
.byte $6B
jsr L7264
adc #$76
adc $2C
jsr L6874
adc $6E
jsr L6C63
adc #$63
.byte $6B
jsr L4B4F
jsr L6F74
jsr L7274
adc L6120,y
rmb6 $61
adc #$6E
rol L550A
ror L6F6C
.byte $63
.byte $6B
jsr L2E2E
rol L4313
jmp (L6369)
.byte $6B
jsr L4B4F
jsr L6F74
jsr L6E74+1
.byte $6C
LB3DB: bbr6 $63,LB449
jsr L4620
adc #$6C
adc $73
jsr L6572
adc L6961
ror L6E69
rmb6 $20
stz $6F,x
jsr L6562
jsr L6E74+1
jmp (L636F)
.byte $6B
adc $64
dec a
jsr L4C08
bbr6 $63,LB470
jsr L2E2E
rol L4311
jmp (L6369)
.byte $6B
jsr L4B4F
jsr L6F74
jsr L6F6C
.byte $63
.byte $6B
jsr L461E
adc #$6C
adc $73
jsr L6572
adc L6961
ror L6E69
rmb6 $20
stz $6F,x
jsr L6562
jsr L6F6C
.byte $63
.byte $6B
adc $64
dec a
jsr L470C
adc $74
jsr L6953
ply
adc $20
rol L2E2E
.byte $0F
.byte $4E
LB449: adc $6D,x
.byte $62
adc $72
jsr L666F
jsr L6966
jmp (L7365)
.byte $13
.byte $42
jmp (L636F)
.byte $6B
.byte $73
jsr L7375
adc $64
jsr L6E6F
jsr L6964
.byte $73
.byte $6B
ror $2300
brk
.byte $6E
LB470: brk
.byte $2B
brk
tsb L6F44
rmb7 $6E
jmp L616F
stz $20
rol L2E2E
bmi LB4D6
pla
adc $20
eor ($41)
eor L6143
adc ($64)
jsr L7369
jsr L7566
jmp (L2E6C)
jsr L6854
adc $20
.byte $63
bbr6 $70,LB517
jsr L6177
.byte $73
jsr L6F6E
stz $20,x
.byte $63
bbr6 $6D,LB51B
jmp (L7465)
adc $64
rol $2001
ora #$57
adc ($72,x)
ror L6E69
rmb6 $20
and ($1E,x)
bvc LB52C
adc $61
.byte $73
adc $20
adc #$6E
.byte $73
adc $72
stz $20,x
stz $68,x
adc $20
.byte $73
adc L7473,y
adc $6D
LB4D6: jsr L6964
.byte $73
.byte $6B
rol L5433
pla
adc $20
.byte $53
adc $6C
adc $63
stz $6F,x
adc ($20)
jmp (L7369)
stz $20,x
adc #$73
jsr L7566
jmp (L2E6C)
jsr L6F59
adc $20,x
adc L7375
stz $20,x
stz $65
jmp (L7465)
adc $20
adc ($6E,x)
jsr L6E65
stz $72,x
adc L621F,y
adc $66
bbr6 $72,LB57C
LB517: jsr L6F79
.byte $75
LB51B: jsr L6163
ror L6120
stz $64
jsr L656E
rmb7 $20
adc $6E
stz $72,x
LB52C: adc #$65
.byte $73
rol L4138
jsr L6977
ror L6F64
rmb7 $20
adc L7375
stz $20,x
.byte $62
adc $20
.byte $63
jmp (L736F)
adc $64
jsr L6562
ror $6F
adc ($65)
jsr L706F
adc $6E
adc #$6E
rmb6 $20
stz $68,x
adc #$73
jsr L656E
rmb7 $20
.byte $63
adc ($74,x)
adc ($6C,x)
bbr6 $67,LB597
bmi LB5BF
pla
adc $72
adc $20
adc ($72,x)
adc $20
stz $6F,x
bbr6 $20,LB5E6
adc ($6E,x)
.byte $79
LB57C: jsr L6977
ror L6F64
rmb7 $73
jsr L706F
adc $6E
jsr L6E6F
jsr L6874
adc $20
stz $65
.byte $73
.byte $6B
stz $6F,x
LB597: bvs LB5B9
and ($29,x)
.byte $44
bbr6 $20,LB618
bbr6 $75,LB5C2
rmb7 $61
ror $2074
stz $6F,x
jsr L6173
ror $65,x
jsr L6874
adc $20
ror L7765
jsr L6553
LB5B9: jmp (L6365)
stz $6F,x
.byte $72
LB5BF: jsr L696C
LB5C2: .byte $73
stz $14,x
bbr6 $6E,LB5E8
stz $68,x
adc $20
.byte $73
adc L7473,y
adc $6D
jsr L6964
.byte $73
.byte $6B
jsr L003F
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
LB5E6: brk
brk
LB5E8: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
jmp LB9D7
brk
brk
brk
brk
brk
brk
brk
inc a:$1F,x
brk
brk
brk
brk
inc a:$1F,x
brk
brk
brk
brk
LB618: inc a:$1F,x
brk
brk
brk
brk
inc a:$1F,x
bbs7 $FF,LB625
LB625: brk
asl L401F,x
rmb0 $F0
brk
brk
asl L601F,x
.byte $03
rts
brk
brk
inc $F01F,x
.byte $F3
bbr4 L0000,LB63B
LB63B: inc $F81F,x
.byte $F3
bbr4 L0000,LB642
LB642: inc $FC1F,x
bbs7 $4F,LB648
LB648: brk
inc $FC1F,x
bbs7 $67,LB64F
LB64F: brk
inc $FC1F,x
bbs7 $F3,LB656
LB656: brk
inc $FC1F,x
bbs7 $F9,LB65D
LB65D: brk
inc $FC1F,x
bbs7 $FC,LB664
LB664: brk
inc $FC1F,x
bbr3 $FE,LB66B
LB66B: brk
inc $FC1F,x
bbr1 $FF,LB672
LB672: brk
inc $FC1F,x
bbr1 $FF,LB679
LB679: brk
rol $FE00,x
bbs7 $FF,LB680
LB680: brk
inc $FF03,x
bbr1 $FF,LB687
LB687: brk
inc $FF43,x
bbs7 $FF,LB68E
LB68E: brk
asl $FF60
bbs7 L003F,LB695
LB695: brk
inc a:$03,x
brk
brk
brk
brk
inc a:$03,x
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
trb L0000
php
brk
.byte $03
ldx $07,y
brk
brk
brk
brk
brk
bit L0000
rmb1 L0000
eor (L0000,x)
rmb5 L0000
sbc $01
stx L0400
brk
.byte $02
brk
ldy #$01
.byte $35
LB6CA: brk
ora L0000
.byte $03
brk
bbs1 $01,LB706
brk
LB6D3: .byte $41
LB6D4: brk
LB6D5: .byte $57
LB6D6: brk
brk
jsr L0080
brk
brk
brk
brk
LB6DF: .byte $A4
LB6E0: .byte $01
LB6E1: rmb3 L0000
bbr0 $4F,LB731
jsr L2020
jsr L2020
jsr L2020
jsr L2020
ora a:$14
and L0000
sei
brk
bmi LB6FB
LB6FB: ora $2F00,y
brk
bit $2501
brk
bcc LB706
.byte $30
LB706: brk
and ($01),y
bbr2 L0000,LB6CA
brk
bpl LB70F
LB70F: .byte $4B
brk
.byte $1D
brk
LB713: brk
LB714: brk
LB715: brk
bbr0 $54,LB78B
adc L4120,y
rmb6 $61
adc #$6E
jsr L2020
jsr L4120
asl L6143
ror L6563
jmp (L2020)
.byte $20
.byte $20
LB731: jsr L7345
.byte $63
tsb L7953
.byte $73
stz $65,x
adc L4520
adc ($72)
bbr6 $72,LB74C
eor #$2F
bbr4 $20,LB7AD
adc ($72)
.byte $6F
.byte $72
LB74C: .byte $13
lsr $206F
stz $65
ror $69,x
.byte $63
adc $20
.byte $63
bbr6 $6E,LB7C9
adc $63
stz $65,x
stz $1C
.byte $54
pla
adc $20
stz $69
.byte $73
.byte $6B
jsr L7369
jsr L7277
adc #$74
adc $20
bvs LB7E7
bbr6 $74,LB7DD
.byte $63
stz $65,x
stz $2E
rol $54
pla
adc $20
.byte $73
adc L746E,y
adc ($78,x)
jsr L666F
LB78B: jsr L6874
adc $20
bvs LB7F3
stz $68,x
ror L6D61
adc $20
adc #$73
jsr L6E69
ror $61,x
jmp (L6469)
rol L5023
adc ($72,x)
stz $20,x
bbr6 $66,LB7CD
LB7AD: stz $68,x
adc $20
bvs LB814
stz $68,x
ror L6D61
adc $20
stz $6F
adc $73
ror L7427
jsr L7865
adc #$73
stz $2E,x
.byte $1B
LB7C9: .byte $54
pla
adc $20
LB7CD: ror $6F,x
jmp (L6D75)
adc $20
.byte $63
adc ($6E,x)
ror L746F
jsr L6562
LB7DD: jsr L6F66
adc $6E,x
stz $2E
ora L6854,y
LB7E7: adc $20
ror $69
jmp (L2065)
.byte $63
adc ($6E,x)
.byte $6E
.byte $6F
LB7F3: stz $20,x
.byte $62
adc $20
ror $6F
adc $6E,x
stz $2E
and ($54)
pla
adc ($74,x)
jsr L616E
adc L2065
adc ($6C,x)
adc ($65)
adc ($64,x)
adc L6520,y
sei
.byte $69
LB814: .byte $73
stz $73,x
rol L5020
jmp (L6165)
.byte $73
adc $20
adc $73,x
adc $20
adc ($6E,x)
bbr6 $74,LB891
adc $72
jsr L616E
adc $2E65
ora ($54),y
pla
adc $20
stz $69
.byte $73
.byte $6B
jsr L7369
jsr L7566
jmp (L2E6C)
bit $54,x
pla
adc $20
ror $6F,x
jmp (L6D75)
adc $20
stz $69
adc ($65)
.byte $63
stz $6F,x
adc ($79)
jsr L6163
ror L6F6E
stz $20,x
pla
bbr6 $6C,LB8C8
jsr L6F6D
adc ($65)
jsr L6874
adc ($6E,x)
jsr L3135
jsr L6966
jmp (L7365)
rol L5413
pla
adc $20
ror $69
jmp (L2065)
adc #$73
jsr L6F6C
.byte $63
.byte $6B
adc $64
rol L541A
pla
adc #$73
LB891: jsr L7369
jsr L6F6E
stz $20,x
adc ($20,x)
bvc LB90F
bbr6 $44,LB8EF
.byte $53
jsr L6964
.byte $73
.byte $6B
rol L5436
pla
adc $72
adc $20
adc #$73
jsr L6E61
bbr6 $74,LB91E
adc $72
jsr L6F76
jmp (L6D75)
adc $20
rmb7 $69
stz $68,x
jsr L6874
.byte $61
LB8C8: stz $20,x
ror L6D61
adc $20
bbr6 $6E,LB8F2
stz $68,x
adc $20
stz $65
.byte $73
.byte $6B
stz $6F,x
bvs LB90C
rmb2 $54
pla
adc $72
adc $20
adc ($72,x)
adc $20
and ($20)
ror $6F,x
.byte $6C
.byte $75
LB8EF: adc L7365
LB8F2: jsr L6977
stz $68,x
jsr L6874
adc $20
.byte $73
adc ($6D,x)
adc $20
ror L6D61
adc $2E
clc
.byte $54
pla
adc #$73
.byte $20
LB90C: ror $69
.byte $6C
LB90F: adc $20
.byte $63
adc ($6E,x)
ror L746F
jsr L6562
jsr L7572
.byte $6E
LB91E: rol L5416
pla
adc ($74,x)
jsr L616E
adc L2065
adc #$73
jsr L6F74
bbr6 $20,LB99E
bbr6 $6E,LB99C
rol L5019
jmp (L6165)
.byte $73
adc $20
adc #$6E
.byte $73
adc $72
stz $20,x
.byte $73
bbr6 $75,LB9BB
.byte $63
adc $20
stz $69
.byte $73
.byte $6B
LB950: asl L6C50,x
adc $61
.byte $73
LB956: adc $20
adc #$6E
.byte $73
adc $72
stz $20,x
stz $65
.byte $73
stz $69,x
ror L7461
adc #$6F
ror L6420
adc #$73
.byte $6B
asl $42,x
eor ($53,x)
eor #$43
rol L5953
.byte $53
.byte $54
eor $4D
jsr L6F6E
stz $20,x
ror $6F
adc $6E,x
.byte $64
LB986: .byte $14
LB987: brk
rmb2 $28
.byte $2B
rti
.byte $44
eor $46
rmb4 $48
eor #$4E
eor ($57)
sbc $FBFA,y
.byte $FC
.byte $FD
.byte $FE
LB99B: .byte $35
LB99C: smb3 $42
LB99E: smb3 $4C
smb3 $60
smb3 $7D
smb3 $A4
smb3 $C8
smb3 $E4
smb3 $FE
smb3 $31
clv
.byte $43
clv
sei
clv
sty LA7B8
clv
dec $06B8,x
.byte $B9
LB9BB: bbr1 $B9,LB9F4
lda LB950,y
.byte $6F
.byte $B9
LB9C3: brk
LB9C4: brk
brk
bra LB9C8
LB9C8: bra LB9CA
LB9CA: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
bra LB956
brk
LB9D7: pha
txa
pha
ldy #$26
lda #$00
ldx #$00
jsr LBFEC
ldy #$24
lda #$AD
ldx #$D2
jsr LBFEC
ldy #$25
lda #$00
ldx #$00
.byte $20
.byte $EC
LB9F4: bbs3 $8D,LB9FF
cpy #$8D
.byte $82
cpy #$20
cmp L8DFB,x
LB9FF: ora #$C0
lda LCBANK1
lda LCBANK1
ldx #$03
lda #$00
LBA0B: sta $D239,x
sta $D241,x
dex
bpl LBA0B
lda #$26
sta $D245
lda #$02
sta $D246
lda #$B9
sta $D247
lda #$00
sta $D248
ldy #$04
lda #$39
ldx #$D2
jsr LBFEC
lda LB6D3
ldx LB6D4
jsr LBF8B
sty LBFCA
sta LBFCD
lda LB6D3
clc
adc LB6DF
pha
lda LB6D4
adc LB6E0
tax
pla
jsr LBF8B
sty LBFCC
sta LBFCE
lda LB6D5
sta LBFC9
clc
adc LB6E1
sta LBFCB
ldy #$26
lda #$00
ldx #$00
jsr LBFEC
jsr LBE08
ldy #$25
lda #$00
ldx #$00
jsr LBFEC
ldy #$07
lda #$00
ldx #$D2
jsr LBFEC
ldy #$11
lda #$BB
ldx #$B6
jsr LBFEC
ldy #$07
lda #$02
ldx #$D2
jsr LBFEC
ldy #$12
lda #$BB
ldx #$B6
jsr LBFEC
ldy #$06
lda #$D3
ldx #$B6
jsr LBFEC
ldy #$12
lda #$C3
ldx #$B6
jsr LBFEC
ldy #$12
lda #$CB
ldx #$B6
jsr LBFEC
ldy #$07
lda #$00
ldx #$D2
jsr LBFEC
ldy #$26
lda #$00
ldx #$00
jsr LBFEC
ldy #$14
lda #$AB
ldx #$B6
jsr LBFEC
ldy #$25
lda #$00
ldx #$00
jsr LBFEC
pla
tax
pla
ldy LB986
dey
LBAE5: cmp LB987,y
beq LBAEF
dey
bpl LBAE5
ldy #$00
LBAEF: tya
asl a
tay
lda LB99B,y
sta LB714
lda LB99C,y
sta LB715
cpx #$00
beq LBB0B
txa
and #$FE
sta LB713
jmp LBB14
LBB0B: tya
lsr a
tay
lda LB9C3,y
sta LB713
LBB14: ldy #$07
lda #$02
ldx #$D2
jsr LBFEC
bit LB713
bpl LBB5C
ldy #$12
lda #$FF
ldx #$B6
jsr LBFEC
ldy #$0E
lda #$07
ldx #$B7
jsr LBFEC
lda #$26
ldx #$B7
jsr LBFD0
bit LB713
bvs LBB5C
ldy #$12
lda #$F3
ldx #$B6
jsr LBFEC
ldy #$0E
lda #$FB
ldx #$B6
jsr LBFEC
lda #$16
ldx #$B7
jsr LBFD0
jmp LBB75
LBB5C: ldy #$12
lda #$F3
ldx #$B6
jsr LBFEC
ldy #$0E
lda #$FB
ldx #$B6
jsr LBFEC
lda #$E3
ldx #$B6
jsr LBFD0
LBB75: ldy #$0E
lda #$0F
ldx #$B7
jsr LBFEC
lda LB714
ldx LB715
jsr LBFD0
LBB87: ldy #$2A
lda #$08
ldx #$D2
jsr LBFEC
lda $D208
cmp #$01
bne LBB9A
jmp LBC0C
LBB9A: cmp #$03
bne LBB87
lda $D209
and #$7F
bit LB713
bpl LBBEE
cmp #$1B
bne LBBC3
ldy #$07
lda #$02
ldx #$D2
jsr LBFEC
ldy #$11
lda #$FF
ldx #$B6
jsr LBFEC
lda #$01
jmp LBC55
LBBC3: bit LB713
bvs LBBEE
cmp #$61
bne LBBE3
LBBCC: ldy #$07
lda #$02
ldx #$D2
jsr LBFEC
ldy #$11
lda #$F3
ldx #$B6
jsr LBFEC
lda #$00
jmp LBC55
LBBE3: cmp #$41
beq LBBCC
cmp #$0D
beq LBBCC
jmp LBB87
LBBEE: cmp #$0D
bne LBC09
ldy #$07
lda #$02
ldx #$D2
jsr LBFEC
ldy #$11
lda #$F3
ldx #$B6
jsr LBFEC
lda #$02
jmp LBC55
LBC09: jmp LBB87
LBC0C: jsr LBDE1
ldy #$0E
lda #$09
ldx #$D2
jsr LBFEC
bit LB713
bpl LBC42
ldy #$13
lda #$FF
ldx #$B6
jsr LBFEC
cmp #$80
bne LBC2D
jmp LBCE9
LBC2D: bit LB713
bvs LBC42
ldy #$13
lda #$F3
ldx #$B6
jsr LBFEC
cmp #$80
bne LBC52
jmp LBC6D
LBC42: ldy #$13
lda #$F3
ldx #$B6
jsr LBFEC
cmp #$80
bne LBC52
jmp LBD65
LBC52: jmp LBB87
LBC55: pha
ldy #$26
lda #$00
ldx #$00
jsr LBFEC
jsr LBE5D
ldy #$25
lda #$00
ldx #$00
jsr LBFEC
pla
rts
LBC6D: ldy #$07
lda #$02
ldx #$D2
jsr LBFEC
ldy #$11
lda #$F3
ldx #$B6
jsr LBFEC
lda #$00
sta LBCE8
LBC84: ldy #$2A
lda #$08
ldx #$D2
jsr LBFEC
lda $D208
cmp #$02
beq LBCDB
jsr LBDE1
ldy #$0E
lda #$09
ldx #$D2
jsr LBFEC
ldy #$13
lda #$F3
ldx #$B6
jsr LBFEC
cmp #$80
beq LBCB5
lda LBCE8
beq LBCBD
jmp LBC84
LBCB5: lda LBCE8
bne LBCBD
jmp LBC84
LBCBD: ldy #$07
lda #$02
ldx #$D2
jsr LBFEC
ldy #$11
lda #$F3
ldx #$B6
jsr LBFEC
lda LBCE8
clc
adc #$80
sta LBCE8
jmp LBC84
LBCDB: lda LBCE8
beq LBCE3
jmp LBB87
LBCE3: lda #$00
jmp LBC55
LBCE8: brk
LBCE9: ldy #$07
lda #$02
ldx #$D2
jsr LBFEC
ldy #$11
lda #$FF
ldx #$B6
jsr LBFEC
lda #$00
sta LBD64
LBD00: ldy #$2A
lda #$08
ldx #$D2
jsr LBFEC
lda $D208
cmp #$02
beq LBD57
jsr LBDE1
ldy #$0E
lda #$09
ldx #$D2
jsr LBFEC
ldy #$13
lda #$FF
ldx #$B6
jsr LBFEC
cmp #$80
beq LBD31
lda LBD64
beq LBD39
jmp LBD00
LBD31: lda LBD64
bne LBD39
jmp LBD00
LBD39: ldy #$07
lda #$02
ldx #$D2
jsr LBFEC
ldy #$11
lda #$FF
ldx #$B6
jsr LBFEC
lda LBD64
clc
adc #$80
sta LBD64
jmp LBD00
LBD57: lda LBD64
beq LBD5F
jmp LBB87
LBD5F: lda #$01
jmp LBC55
LBD64: brk
LBD65: lda #$00
sta LBDE0
ldy #$07
LBD6C: lda #$02
ldx #$D2
jsr LBFEC
ldy #$11
lda #$F3
ldx #$B6
jsr LBFEC
LBD7C: ldy #$2A
lda #$08
ldx #$D2
jsr LBFEC
lda $D208
cmp #$02
beq LBDD3
jsr LBDE1
ldy #$0E
lda #$09
ldx #$D2
jsr LBFEC
ldy #$13
lda #$F3
ldx #$B6
jsr LBFEC
cmp #$80
beq LBDAD
lda LBDE0
beq LBDB5
jmp LBD7C
LBDAD: lda LBDE0
bne LBDB5
jmp LBD7C
LBDB5: ldy #$07
lda #$02
ldx #$D2
jsr LBFEC
ldy #$11
lda #$F3
ldx #$B6
jsr LBFEC
lda LBDE0
clc
adc #$80
sta LBDE0
jmp LBD7C
LBDD3: lda LBDE0
beq LBDDB
jmp LBB87
LBDDB: lda #$02
jmp LBC55
LBDE0: brk
LBDE1: lda $D209
sec
sbc LB6D3
sta $D209
lda $D20A
sbc LB6D4
sta $D20A
lda $D20B
sec
sbc LB6D5
sta $D20B
lda $D20C
sbc LB6D6
sta $D20C
rts
LBE08: lda #$00
sta LBE37
lda #$08
sta LBE38
lda LBFC9
jsr LBF10
lda LBFCB
sec
sbc LBFC9
tax
inx
LBE21: lda LBFCA
sta LBE5C
LBE27: lda LBE5C
lsr a
tay
sta $C054
bcs LBE34
sta $C055
LBE34: lda ($06),y
.byte $8D
LBE37: .byte $34
LBE38: ora ($EE)
rmb3 $BE
bne LBE41
inc LBE38
LBE41: lda LBE5C
cmp LBFCC
bcs LBE4E
inc LBE5C
bne LBE27
LBE4E: jsr LBF52
dex
bne LBE21
lda LBE37
ldx LBE38
rts
brk
LBE5C: brk
LBE5D: lda #$00
sta LBEBC
lda #$08
sta LBEBD
ldx LBFCD
ldy LBFCE
lda #$FF
cpx #$00
beq LBE78
LBE73: clc
rol a
dex
bne LBE73
LBE78: sta LBF0C
eor #$FF
sta LBF0D
lda #$01
cpy #$00
beq LBE8B
LBE86: sec
rol a
dey
bne LBE86
LBE8B: sta LBF0E
eor #$FF
sta LBF0F
lda LBFC9
jsr LBF10
lda LBFCB
sec
sbc LBFC9
tax
inx
lda LBFCA
sta LBF0B
LBEA8: lda LBFCA
sta LBF0B
LBEAE: lda LBF0B
lsr a
tay
sta $C054
bcs LBEBB
sta $C055
LBEBB: .byte $AD
LBEBC: brk
LBEBD: php
pha
lda LBF0B
cmp LBFCA
beq LBEDD
cmp LBFCC
bne LBEEB
lda ($06),y
and LBF0F
sta ($06),y
pla
and LBF0E
ora ($06),y
pha
jmp LBEEB
LBEDD: lda ($06),y
and LBF0D
sta ($06),y
pla
and LBF0C
ora ($06),y
pha
LBEEB: pla
sta ($06),y
inc LBEBC
bne LBEF6
inc LBEBD
LBEF6: lda LBF0B
cmp LBFCC
bcs LBF03
.byte $EE
.byte $0B
MLI: bbs3 $D0,LBEAE
LBF03: jsr LBF52
dex
bne LBEA8
rts
brk
LBF0B: brk
LBF0C: brk
LBF0D: brk
LBF0E: brk
LBF0F: brk
LBF10: sta LBFCF
and #$07
sta LBFB0
lda LBFCF
and #$38
sta LBFAF
lda LBFCF
and #$C0
sta LBFAE
jsr LBF2C
rts
LBF2C: lda LBFAE
lsr a
lsr a
ora LBFAE
pha
lda LBFAF
lsr a
lsr a
lsr a
lsr a
sta LBF51
pla
ror a
sta $06
lda LBFB0
asl a
asl a
ora LBF51
ora #$20
sta $07
clc
rts
LBF51: brk
LBF52: lda LBFB0
cmp #$07
beq LBF5F
inc LBFB0
jmp LBF2C
LBF5F: lda #$00
sta LBFB0
lda LBFAF
cmp #$38
beq LBF74
clc
adc #$08
sta LBFAF
jmp LBF2C
LBF74: lda #$00
sta LBFAF
lda LBFAE
clc
adc #$40
sta LBFAE
cmp #$C0
beq LBF89
jmp LBF2C
LBF89: sec
rts
LBF8B: ldy #$00
cpx #$02
bne LBF96
ldy #$49
clc
adc #$01
LBF96: cpx #$01
bne LBFA4
ldy #$24
clc
adc #$04
bcc LBFA4
iny
sbc #$07
LBFA4: cmp #$07
bcc LBFAD
sbc #$07
iny
bne LBFA4
LBFAD: rts
LBFAE: brk
LBFAF: brk
LBFB0: brk
bbs7 L0000,LBFB4
LBFB4: brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
brk
LBFC9: brk
LBFCA: brk
LBFCB: brk
LBFCC: brk
LBFCD: brk
LBFCE: brk
LBFCF: brk
LBFD0: sta $06
stx $07
ldy #$00
lda ($06),y
beq LBFEB
sta $08
inc $06
bne LBFE2
inc $07
LBFE2: ldy #$19
lda #$06
ldx #$00
jsr LBFEC
LBFEB: rts
LBFEC: sty LBFF8
sta LBFF9
stx LBFF9+1
jsr A2D
LBFF8: .byte $00
LBFF9: .addr L0000
rts
brk
brk
brk
brk