SPC700_Engine_BSZ1.asm
Yoshifanatic1_BS-Zelda-no-Densetsu-Disassembly/BSZ1/SPC700/SPC700_Engine_BSZ1.asm

%SPCDataBlockStart(CEFF)
	db $FE
%SPCDataBlockEnd(CEFF)

%SPCDataBlockStart(6E00)
DATA_6E00:
	db $00,$8A,$E0,$B8,$06,$0A,$01,$9F,$2E,$B8,$03,$05,$02,$8F,$F8,$B8
	db $03,$06,$03,$BF,$51,$B8,$02,$04,$04,$CF,$75,$B8,$08,$0F,$05,$FF
	db $F1,$B8,$07,$0B,$06,$FF,$A0,$B8,$02,$04,$07,$FF,$A0,$B8,$03,$06
	db $08,$DF,$F0,$B8,$03,$06,$09,$8B,$E0,$B8,$07,$0C,$0A,$9F,$30,$B8
	db $03,$86,$0B,$FF,$E0,$B8,$06,$0B,$0C,$FE,$E0,$B8,$03,$06,$0D,$FF
	db $E0,$B8,$03,$06,$0E,$DF,$A0,$B8,$02,$04,$0F,$F9,$E0,$B8,$03,$D8
	db $10,$FB,$E0,$B8,$04,$07,$11,$8F,$E0,$B8,$02,$85,$12,$FF,$E1,$B8
	db $02,$82,$13,$CB,$E0,$B8,$07,$8A,$14,$9F,$2D,$B8,$03,$85,$15,$9F
	db $2D,$B8,$02,$03,$16,$FF,$E0,$B8,$03,$D4,$17,$FF,$E0,$B8,$01,$EA
	db $18,$FF,$FB,$B8,$09,$BC,$19,$FF,$FE,$B8,$07,$04,$1A,$9F,$BB,$B8
	db $07,$04,$1B,$AF,$35,$B8,$07,$04,$1C,$8F,$F1,$B8,$07,$A8,$1D,$FF
	db $E0,$B8,$07,$A8,$1E,$FF,$F4,$B8,$03,$86,$1F,$8F,$E0,$B8,$01,$EA
	db $20,$8F,$E0,$B8,$04,$07,$21,$8F,$E0,$B8,$04,$07,$22,$8F,$E0,$B8
	db $04,$07,$23,$8F,$E0,$B8,$04,$07,$24,$8F,$E0,$B8,$04,$07,$25,$8F
	db $E0,$B8,$04,$07,$26,$8F,$E0,$B8,$04,$07,$27,$8F,$E0,$B8,$04,$07
%SPCDataBlockEnd(6E00)

%SPCDataBlockStart(6D80)
DATA_6D80:
	db $33,$66,$7F,$99,$B2,$CC,$E5,$FC

DATA_6D88:
	db $19,$33,$4C,$66,$72,$7F,$8C,$99,$A5,$B2,$BF,$CC,$D8,$E5,$F2,$FC
%SPCDataBlockEnd(6D80)

%SPCDataBlockStart(0400)
CODE_400:
	CLRP
	MOV X, #$CF
	MOV SP, X
	MOV A, #$00
	MOV X, A
CODE_0407:
	MOV (X+), A
	CMP X, #$E0
	BNE CODE_0407
	MOV X, #$00
CODE_040E:
	INC X
	MOV $024F+x, A
	CMP X, #$30
	BNE CODE_040E
	MOV X, #$00
CODE_0418:
	INC X
	MOV $038F+x, A
	CMP X, #$70
	BNE CODE_0418
	MOV X, #$00
CODE_0422:
	INC X
	MOV $011F+x, A
	CMP X, #$A0
	BNE CODE_0422
	MOV X, #$00
	MOV $D2, #$00
	MOV $D3, #$EF
CODE_0432:
	MOV ($D2+x), A
	INC $D2
	BNE CODE_0432
	INC $D3
	CMP $D3, #$FF
	BNE CODE_0432
	MOV $D1, #$0C
	INC A
	CALL CODE_0CEB
	SET5 $48
	MOV A, #$50
	MOV $03D4, A
	MOV Y, #$0C
	CALL CODE_0687
	MOV Y, #$1C
	CALL CODE_0687
	MOV A, #$6C
	MOV Y, #$5D
	CALL CODE_0687
	MOV A, #$F0
	MOV $00F1, A
	MOV A, #$10
	MOV $00FA, A
	MOV $53, A
CODE_046A:
	MOV A, #$01
	MOV $00F1, A
	MOV A, #$02
	CALL CODE_0CEB
	MOV $4E, #$3C
	MOV A, #$00
	CALL CODE_0CD4
	CLR5 $48
	MOV A, #$FF
	MOV $0270, A
	MOV $0271, A
	MOV A, #$04
	MOV $0279, A
	MOV A, #$10
	MOV $03D8, A
	MOV A, #$00
	MOV $03DA, A
	MOV $0273, A
	MOV $0274, A
	MOV $D1, #$0C
	MOV $027F, A
	CALL CODE_11B7
	CALL CODE_1238
	MOV A, #$80
	MOV $04, A
CODE_04AB:
	MOV A, $1B
	BEQ CODE_04B2
	CALL CODE_0876
CODE_04B2:
	MOV Y, #$0A
CODE_04B4:
	CMP Y, #$05
	BEQ CODE_04BF
	BCS CODE_04C2
	CMP $4C, $4D
	BNE CODE_04D0
CODE_04BF:
	BBS7 $4C, CODE_04D0
CODE_04C2:
	MOV A, DATA_10A2+y
	MOV $00F2, A
	MOV A, $10AC+y
	MOV X, A
	MOV A, (X)
	MOV $00F3, A
CODE_04D0:
	DBNZ Y, CODE_04B4
	MOV $45, Y
	MOV $46, Y
	MOV A, $18
	EOR A, $19
	LSR A
	LSR A
	NOTC
	ROR $18
	ROR $19
CODE_04E1:
	MOV Y, $00FD
	BEQ CODE_04E1
	PUSH Y
	MOV A, #$2C
	MUL YA
	CLRC
	ADC A, $43
	MOV $43, A
	BCC CODE_053B
	MOV A, $2C
	BEQ CODE_04F8
	SBC $2E, #$80
CODE_04F8:
	CALL CODE_123D
	MOV A, #$03
	MOV $0276, A
	CALL CODE_12FF
	MOV X, #$03
	CALL CODE_056C
	MOV Y, $2F
	BEQ CODE_050E
	MOV A, $D7
CODE_050E:
	MOV $04+x, A
	MOV A, #$01
	MOV $0276, A
	CALL CODE_12FF
	MOV X, #$01
	CALL CODE_056C
	MOV $04+x, A
	MOV A, #$02
	MOV $0276, A
	CALL CODE_12FF
	MOV X, #$02
	CALL CODE_056C
	MOV Y, $2F
	BEQ CODE_0532
	MOV A, $D8
CODE_0532:
	MOV $04+x, A
	CMP $4C, $4D
	BEQ CODE_053B
	INC $4C
CODE_053B:
	MOV A, $53
	POP Y
	MUL YA
	CLRC
	ADC A, $51
	MOV $51, A
	BCC CODE_0551
	CALL CODE_0876
	MOV X, #$00
	CALL CODE_057C
	JMP CODE_04AB

CODE_0551:
	MOV A, $04
	CMP A, #$80
	BEQ CODE_0569
	MOV X, #$00
	MOV $47, #$01
CODE_055C:
	MOV A, $31+x
	BEQ CODE_0563
	CALL CODE_0FCB
CODE_0563:
	INC X
	INC X
	ASL $47
	BNE CODE_055C
CODE_0569:
	JMP CODE_04AB

CODE_056C:
	MOV A, $04+x
	MOV $00F4+x, A
CODE_0571:
	MOV A, $00F4+x
	CMP A, $00F4+x
	BNE CODE_0571
	MOV $6B+x, A
CODE_057B:
	RET

CODE_057C:
	MOV A, $027B
	MOV $00F4, A
CODE_0582:
	MOV A, $00F4
	CMP A, $00F4
	BNE CODE_0582
	MOV $6B, A
	RET

CODE_058D:
	CMP Y, #$CA
	BCC CODE_0596
	CALL CODE_0B2A
	MOV Y, #$A4
CODE_0596:
	CMP Y, #$C8
	BCS CODE_057B
	MOV A, $1A
	AND A, $47
	BNE CODE_057B
	MOV A, Y
	AND A, #$7F
	CLRC
	ADC A, $50
	CLRC
	ADC A, $02F0+x
	MOV $0361+x, A
	MOV A, $0381+x
	MOV $0360+x, A
	MOV A, $02B1+x
	LSR A
	MOV A, #$00
	ROR A
	MOV $02A0+x, A
	MOV A, #$00
	MOV $B0+x, A
	MOV $0100+x, A
	MOV $02D0+x, A
	MOV $C0+x, A
	OR $5E, $47
	OR $45, $47
	MOV A, $0280+x
	MOV $A0+x, A
	BEQ CODE_05F4
	MOV A, $0281+x
	MOV $A1+x, A
	MOV A, $0290+x
	BNE CODE_05EA
	MOV A, $0361+x
	SETC
	SBC A, $0291+x
	MOV $0361+x, A
CODE_05EA:
	MOV A, $0291+x
	CLRC
	ADC A, $0361+x
	CALL CODE_0D74
CODE_05F4:
	CALL CODE_0D8C
CODE_05F7:
	MOV Y, #$00
	MOV A, $11
	SETC
	SBC A, #$34
	BCS CODE_0609
	MOV A, $11
	SETC
	SBC A, #$13
	BCS CODE_060D
	DEC Y
	ASL A
CODE_0609:
	ADDW YA, $10
	MOVW $10, YA
CODE_060D:
	PUSH X
	MOV A, $11
	ASL A
	MOV Y, #$00
	MOV X, #$18
	DIV YA, X
	MOV X, A
	MOV A, $2C
	BEQ CODE_061C
	DEC X
CODE_061C:
	MOV A, DATA_10B7+$01+y
	MOV $15, A
	MOV A, DATA_10B7+y
	MOV $14, A
	MOV A, DATA_10B7+$03+y
	PUSH A
	MOV A, DATA_10B7+$02+y
	POP Y
	SUBW YA, $14
	MOV Y, $10
	MUL YA
	MOV A, Y
	MOV Y, #$00
	ADDW YA, $14
	MOV $15, Y
	ASL A
	ROL $15
	MOV $14, A
	BRA CODE_0645

CODE_0641:
	LSR $15
	ROR A
	INC X
CODE_0645:
	CMP X, #$06
	BNE CODE_0641
	MOV $14, A
	POP X
	MOV A, $0220+x
	MOV Y, $15
	MUL YA
	MOVW $16, YA
	MOV A, $0220+x
	MOV Y, $14
	MUL YA
	PUSH Y
	MOV A, $0221+x
	MOV Y, $14
	MUL YA
	ADDW YA, $16
	MOVW $16, YA
	MOV A, $0221+x
	MOV Y, $15
	MUL YA
	MOV Y, A
	POP A
	ADDW YA, $16
	MOVW $16, YA
	MOV A, X
	XCN A
	LSR A
	OR A, #$02
	MOV Y, A
	MOV A, $16
	CALL CODE_067F
	INC Y
	MOV A, $17
CODE_067F:
	PUSH A
	MOV A, $47
	AND A, $1A
	POP A
	BNE CODE_068D
CODE_0687:
	MOV $00F2, Y
	MOV $00F3, A
CODE_068D:
	RET

CODE_068E:
	MOV Y, #$00
	MOV A, ($40)+y
	INCW $40
	PUSH A
	MOV A, ($40)+y
	INCW $40
	MOV Y, A
	POP A
	RET

CODE_069C:
	JMP CODE_09A2

CODE_069F:
	MOV A, #$FF
	MOV Y, #$5C
	CALL CODE_0687
	MOV X, #$00
	MOV A, #$02
CODE_06AA:
	MOV $0260+x, A
	INC X
	INC X
	CMP X, #$10
	BNE CODE_06AA
	CALL CODE_10DC
	MOV A, #$FF
	MOV $0270, A
	MOV A, #$00
	MOV $03DA, A
	MOV A, #$10
	MOV $03D8, A
	MOV A, #$80
	MOV $08, A
CODE_06C9:
	MOV A, #$80
CODE_06CB:
	CMP A, $04
	BEQ CODE_069C
	MOV $027B, A
	MOV $DD, #$00
	MOV $D7, #$00
	MOV $D8, #$00
	MOV $D5, A
	MOV $04, A
	CMP A, #$21
	BCS CODE_06F4
	ASL A
	MOV X, A
	MOV A, $23FF+x
	MOV Y, A
	MOV A, $23FE+x
	MOVW $40, YA
	MOV $0C, #$02
	CALL CODE_11DD
CODE_06F4:
	MOV A, $1A
	EOR A, #$FF
	TSET $0046, A
	RET

CODE_06FC:
	MOV X, #$0E
	MOV $47, #$80
CODE_0701:
	MOV A, #$FF
	MOV $0301+x, A
	MOV A, #$0A
	CALL CODE_0B83
	MOV $0211+x, A
	MOV $0381+x, A
	MOV $02F0+x, A
	MOV $0280+x, A
	MOV $B1+x, A
	MOV $C1+x, A
	DEC X
	DEC X
	LSR $47
	BNE CODE_0701
	MOV $5A, A
	MOV $68, A
	MOV $54, A
	MOV $03D7, A
	MOV $42, A
	MOV $5F, A
	MOV $59, #$C0
	CALL CODE_1238
	MOV $53, #$20
CODE_0737:
	RET

CODE_0738:
	JMP CODE_06CB

CODE_073B:
	JMP CODE_06F4

CODE_073E:
	JMP CODE_069F

CODE_0741:
	JMP CODE_06FC

CODE_0744:
	JMP CODE_06C9

CODE_0747:
	MOV A, #$FF
	MOV Y, #$5C
	CALL CODE_0687
	MOV A, #$00
	MOV Y, #$2C
	CALL CODE_0687
	MOV A, #$00
	MOV Y, #$3C
	CALL CODE_0687
	MOV A, #$00
	MOV Y, #$4D
	CALL CODE_0687
	CLRP
	MOV A, #$80
	MOV $00F1, A
	MOV A, #$20
	MOV Y, #$6C
	CALL CODE_0687
	JMP !REGISTER_SPC700_IPLROMLoc

CODE_0773:
	MOV A, #$01
	MOV $2C, A
	CALL CODE_12C0
	JMP CODE_0979

CODE_077D:
	MOV A, #$00
	MOV $2C, A
	CALL CODE_1298
	JMP CODE_0979

CODE_0787:
	MOV $DB, #$01
	CALL CODE_1298
	JMP CODE_0979

CODE_0790:
	MOV $DB, #$00
	CALL CODE_12C0
	JMP CODE_0979

CODE_0799:
	MOV $03DA, A
CODE_079C:
	MOV A, $03D7
	CLRC
	ADC A, $03DA
	MOV $50, A
	RET

CODE_07A6:
	MOV $03D8, A
CODE_07A9:
	MOV A, $03D8
	XCN A
	MOV $22, A
	AND A, #$0F
	MOV Y, $03D6
	MUL YA
	MOV Y, A
	MOV $23, A
	MOV A, $22
	AND A, #$F0
	MOV Y, $03D6
	MUL YA
	MOV A, Y
	CLRC
	ADC A, $23
	MOV Y, A
	MOVW $52, YA
	RET

CODE_07C8:
	MOV $D1, #$0C
	MOV $2F, #$01
	JMP CODE_0979

CODE_07D1:
	MOV $D1, #$06
	MOV $2F, #$01
	JMP CODE_0979

CODE_07DA:
	MOV $2F, #$00
	JMP CODE_0979

CODE_07E0:
	SETC
	SBC A, #$C9
	CLRC
	ROR A
	MOV Y, A
	BCS CODE_07F9
	MOV A, #$01
	CMP Y, #$00
	BEQ CODE_07F1
CODE_07EE:
	ASL A
	DBNZ Y, CODE_07EE
CODE_07F1:
	OR A, $D4
	CALL CODE_084D
	CLR5 $48
	RET

CODE_07F9:
	MOV A, #$FE
	CMP Y, #$00
	BEQ CODE_0803
CODE_07FF:
	SETC
	ROL A
	DBNZ Y, CODE_07FF
CODE_0803:
	AND A, $D4
	CALL CODE_084D
	CLR5 $48
	RET

CODE_080B:
	MOV A, DATA_0841+x
	MOV Y, A
	MOV A, #$00
	MOV $0273, Y
	MOV $0274, Y
	MOVW $60, YA
	MOVW $62, YA
	CLR5 $48
	MOV A, #$02
	CALL CODE_0CEB
	MOV A, DATA_0845+x
	MOV $4E, A
	MOV A, DATA_0849+x
	MOV Y, #$08
	MUL YA
	MOV X, A
	MOV Y, #$0F
CODE_0830:
	MOV A, DATA_1083+x
	CALL CODE_0687
	INC X
	MOV A, Y
	CLRC
	ADC A, #$10
	MOV Y, A
	BPL CODE_0830
	MOV X, $44
	RET

DATA_0841:
	db $00,$3C,$19,$1E

DATA_0845:
	db $00,$32,$6E,$6E

DATA_0849:
	db $00,$00,$00,$01

CODE_084D:
	MOV $D4, A
	MOV A, $1A
	EOR A, #$FF
	AND A, $D4
	MOV $4A, A
	RET

CODE_0858:
	MOV A, $1B
	BNE CODE_085F
	JMP CODE_069F

CODE_085F:
	MOV A, #$00
	MOV $03FA, A
	MOV $03FB, A
	MOV $027B, A
	JMP CODE_09BE

CODE_086D:
	JMP CODE_0747

CODE_0870:
	JMP CODE_0982

CODE_0873:
	JMP CODE_0979

CODE_0876:
	MOV A, $6B
	CMP A, #$81
	BCC CODE_0870
	CMP A, #$FE
	BEQ CODE_086D
	CMP A, #$FF
	BEQ CODE_0858
	MOV Y, $027B
	CMP Y, $6B
	BEQ CODE_0873
	MOV $027B, A
	CMP A, #$F6
	BCC CODE_08A6
	SETC
	SBC A, #$F6
	MOV Y, A
	MOV A, DATA_089E+y
	MOV $0270, A
	BRA CODE_0873

DATA_089E:
	db $FF,$EC,$D7,$C0,$A6,$88,$60,$00

CODE_08A6:
	CMP A, #$F0
	BCC CODE_08C6
	SETC
	SBC A, #$F0
	MOV Y, A
	MOV A, DATA_08C0+y
	MOV $03D4, A
	MOV Y, #$0C
	CALL CODE_0687
	MOV Y, #$1C
	CALL CODE_0687
	BRA CODE_0873

DATA_08C0:
	db $50,$40,$30,$20,$10,$00

CODE_08C6:
	CMP A, #$EE
	BCS CODE_08DA
	CMP A, #$E9
	BCC CODE_08DA
	SETC
	SBC A, #$EB
	MOV Y, A
	MOV A, #$06
	MUL YA
	CALL CODE_0799
	BRA CODE_0873

CODE_08DA:
	CMP A, #$E9
	BCS CODE_0908
	CMP A, #$E4
	BCC CODE_0908
	SETC
	SBC A, #$E4
	MOV Y, A
	MOV A, DATA_08EE+y
	CALL CODE_07A6
	BRA CODE_0873

DATA_08EE:
	db $08,$0C,$10,$14,$1C

CODE_08F3:
	JMP CODE_0787

CODE_08F6:
	JMP CODE_0790

CODE_08F9:
	JMP CODE_0773

CODE_08FC:
	JMP CODE_077D

CODE_08FF:
	JMP CODE_07C8

CODE_0902:
	JMP CODE_07D1

CODE_0905:
	JMP CODE_07DA

CODE_0908:
	CMP A, #$E2
	BEQ CODE_08F3
	CMP A, #$E3
	BEQ CODE_08F6
	CMP A, #$E0
	BEQ CODE_08F9
	CMP A, #$E1
	BEQ CODE_08FC
	CMP A, #$D9
	BEQ CODE_08FF
	CMP A, #$DA
	BEQ CODE_0902
	CMP A, #$DB
	BEQ CODE_0905
	CMP A, #$D9
	BCS CODE_0931
	CMP A, #$C9
	BCC CODE_0931
	CALL CODE_07E0
	BRA CODE_0979

CODE_0931:
	CMP A, #$C9
	BCS CODE_0941
	CMP A, #$B0
	BCC CODE_0941
	SETC
	SBC A, #$BC
	CALL CODE_0C06
	BRA CODE_0979

CODE_0941:
	CMP A, #$B0
	BCS CODE_0956
	CMP A, #$A0
	BCC CODE_0956
	SETC
	SBC A, #$A0
	ASL A
	ASL A
	ASL A
	ASL A
	MOV Y, A
	CALL CODE_0BD1
	BRA CODE_0979

CODE_0956:
	CMP A, #$A0
	BCS CODE_0968
	CMP A, #$85
	BCC CODE_0968
	SETC
	SBC A, #$82
	ASL A
	MOV Y, A
	CALL CODE_0BEB
	BRA CODE_0979

CODE_0968:
	CMP A, #$85
	BCS CODE_0979
	CMP A, #$81
	BCC CODE_0979
	SETC
	SBC A, #$81
	MOV X, A
	CALL CODE_080B
	BRA CODE_0979

CODE_0979:
	MOV X, $0275
	BEQ CODE_09A2
	RET

CODE_097F:
	JMP CODE_06CB

CODE_0982:
	MOV X, $0275
	BEQ CODE_0991
	CMP A, #$80
	BEQ CODE_097F
	MOV A, $04
	MOV $027B, A
	RET

CODE_0991:
	MOV A, $04
	MOV $027B, A
	MOV Y, $08
	MOV A, $6B
	MOV $08, A
	BEQ CODE_09A2
	CMP Y, $6B
	BNE CODE_097F
CODE_09A2:
	MOV A, $04
	BEQ CODE_09B5
	CMP A, #$21
	BCS CODE_09B5
	MOV A, $2C
	BEQ CODE_09BE
	SBC $2D, #$80
	BMI CODE_09B5
	BRA CODE_09BE

CODE_09B5:
	JMP CODE_0737

CODE_09B8:
	JMP CODE_06FC

CODE_09BB:
	JMP CODE_06C9

CODE_09BE:
	INC $DD
	CMP $DD, $D1
	BNE CODE_09E4
	MOV $DD, #$00
	CLRC
	ADC $D7, #$01
	ADC $D8, #$00
	MOV A, $03FB
	MOV Y, A
	MOV A, $03FA
	CMPW YA, $D7
	BCC CODE_09E1
	BEQ CODE_09E1
	MOV $1B, #$01
	BRA CODE_09E4

CODE_09E1:
	MOV $1B, #$00
CODE_09E4:
	MOV A, $0C
	BEQ CODE_0A44
	DBNZ $0C, CODE_09B8
CODE_09EB:
	CALL CODE_068E
	BNE CODE_0A14
	MOV Y, A
	BEQ CODE_09BB
	DEC $42
	BPL CODE_09F9
	MOV $42, A
CODE_09F9:
	CALL CODE_068E
	MOV X, $42
	BEQ CODE_09EB
	MOV $D7, $DA
	MOV $D8, $D9
	PUSH A
	MOV A, #$00
	MOV $03FA, A
	MOV $03FB, A
	POP A
	MOVW $40, YA
	BRA CODE_09EB

CODE_0A14:
	MOVW $16, YA
	MOV Y, #$0F
CODE_0A18:
	MOV A, ($16)+y
	MOV $0030+y, A
	DEC Y
	BPL CODE_0A18
	MOV X, #$00
	MOV $47, #$01
CODE_0A25:
	MOV A, $31+x
	BEQ CODE_0A33
	MOV A, $0211+x
	BNE CODE_0A33
	MOV A, #$00
	CALL CODE_0B2A
CODE_0A33:
	MOV A, #$00
	MOV $80+x, A
	MOV $90+x, A
	MOV $91+x, A
	INC A
	MOV $70+x, A
	INC X
	INC X
	ASL $47
	BNE CODE_0A25
CODE_0A44:
	MOV X, #$00
	MOV $5E, X
	MOV $47, #$01
CODE_0A4B:
	MOV $44, X
	MOV A, $31+x
	BEQ CODE_0ABB
	DEC $70+x
	BNE CODE_0AB1
CODE_0A55:
	CALL CODE_0B20
	BNE CODE_0A71
	MOV A, $80+x
	BEQ CODE_09EB
	CALL CODE_0C7C
	DEC $80+x
	BNE CODE_0A55
	MOV A, $0230+x
	MOV $30+x, A
	MOV A, $0231+x
	MOV $31+x, A
	BRA CODE_0A55

CODE_0A71:
	BMI CODE_0A93
	MOV $0200+x, A
	CALL CODE_0B20
	BMI CODE_0A93
	PUSH A
	XCN A
	AND A, #$07
	MOV Y, A
	MOV A, DATA_6D80+y
	MOV $0201+x, A
	POP A
	AND A, #$0F
	MOV Y, A
	MOV A, DATA_6D88+y
	MOV $0210+x, A
	CALL CODE_0B20
CODE_0A93:
	CMP A, #$E0
	BCC CODE_0A9C
	CALL CODE_0B0E
	BRA CODE_0A55

CODE_0A9C:
	CALL CODE_058D
	MOV A, $0200+x
	MOV $70+x, A
	MOV Y, A
	MOV A, $0201+x
	MUL YA
	MOV A, Y
	BNE CODE_0AAD
	INC A
CODE_0AAD:
	MOV $71+x, A
	BRA CODE_0AB8

CODE_0AB1:
	MOV A, $1B
	BNE CODE_0ABB
	CALL CODE_0ED9
CODE_0AB8:
	CALL CODE_0D50
CODE_0ABB:
	INC X
	INC X
	ASL $47
	BNE CODE_0A4B
	MOV A, $54
	BEQ CODE_0AD0
	MOVW YA, $56
	ADDW YA, $52
	DBNZ $54, CODE_0ACE
	MOVW YA, $54
CODE_0ACE:
	MOVW $52, YA
CODE_0AD0:
	MOV A, $68
	BEQ CODE_0AE9
	MOVW YA, $64
	ADDW YA, $60
	MOVW $60, YA
	MOVW YA, $66
	ADDW YA, $62
	DBNZ $68, CODE_0AE7
	MOVW YA, $68
	MOVW $60, YA
	MOV Y, $6A
CODE_0AE7:
	MOVW $62, YA
CODE_0AE9:
	MOV A, $5A
	BEQ CODE_0AFB
	MOVW YA, $5C
	ADDW YA, $58
	DBNZ $5A, CODE_0AF6
	MOVW YA, $5A
CODE_0AF6:
	MOVW $58, YA
	MOV $5E, #$FF
CODE_0AFB:
	MOV X, #$00
	MOV $47, #$01
CODE_0B00:
	MOV A, $31+x
	BEQ CODE_0B07
	CALL CODE_0E10
CODE_0B07:
	INC X
	INC X
	ASL $47
	BNE CODE_0B00
	RET

CODE_0B0E:
	ASL A
	MOV Y, A
	MOV A, CODE_0CF2+$02+y
	PUSH A
	MOV A, CODE_0CF2+$01+y
	PUSH A
	MOV A, Y
	LSR A
	MOV Y, A
	MOV A, CODE_0D91+y
	BEQ CODE_0B28
CODE_0B20:
	MOV A, ($30+x)
CODE_0B22:
	INC $30+x
	BNE CODE_0B28
	INC $31+x
CODE_0B28:
	MOV Y, A
	RET

CODE_0B2A:
	MOV $0211+x, A
CODE_0B2D:
	MOV Y, A
	BPL CODE_0B36
	SETC
	SBC A, #$CA
	CLRC
	ADC A, $5F
CODE_0B36:
	MOV Y, #$06
	MUL YA
	MOVW $14, YA
	CLRC
	ADC $14, #DATA_6E00
	ADC $15, #DATA_6E00>>8
	MOV A, $1A
	AND A, $47
	BNE CODE_0B82
	PUSH X
	MOV A, X
	XCN A
	LSR A
	OR A, #$04
	MOV X, A
	MOV Y, #$00
	MOV A, ($14)+y
	BPL CODE_0B63
	AND A, #$1F
	AND $48, #$20
	TSET $0048, A
	OR $49, $47
	MOV A, Y
	BRA CODE_0B6A

CODE_0B63:
	MOV A, $47
	TCLR $0049, A
CODE_0B68:
	MOV A, ($14)+y
CODE_0B6A:
	MOV $00F2, X
	MOV $00F3, A
	INC X
	INC Y
	CMP Y, #$04
	BNE CODE_0B68
	POP X
	MOV A, ($14)+y
	MOV $0221+x, A
	INC Y
	MOV A, ($14)+y
	MOV $0220+x, A
CODE_0B82:
	RET

CODE_0B83:
	MOV $0351+x, A
	AND A, #$1F
	MOV $0331+x, A
	MOV A, #$00
	MOV $0330+x, A
	RET

CODE_0B91:
	MOV $91+x, A
	PUSH A
	CALL CODE_0B20
	MOV $0350+x, A
	SETC
	SBC A, $0331+x
	POP X
	CALL CODE_0D97
	MOV $0340+x, A
	MOV A, Y
	MOV $0341+x, A
	RET

CODE_0BAA:
	MOV $02B0+x, A
	CALL CODE_0B20
	MOV $02A1+x, A
	CALL CODE_0B20
	MOV $B1+x, A
	MOV $02C1+x, A
	MOV A, #$00
	MOV $02B1+x, A
	RET

CODE_0BC1:
	MOV $02B1+x, A
	PUSH A
	MOV Y, #$00
	MOV A, $B1+x
	POP X
	DIV YA, X
	MOV X, $44
	MOV $02C0+x, A
	RET

CODE_0BD1:
	MOV A, #$00
	MOVW $20, YA
	CALL CODE_1238
	RET

CODE_0BD9:
	MOV $5A, A
	CALL CODE_0B20
	MOV $5B, A
	SETC
	SBC A, $59
	MOV X, $5A
	CALL CODE_0D97
	MOVW $5C, YA
	RET

CODE_0BEB:
	MOV A, #$00
	MOV $03D6, Y
	CALL CODE_07A9
	RET

CODE_0BF4:
	MOV $54, A
	CALL CODE_0B20
	MOV $55, A
	SETC
	SBC A, $53
	MOV X, $54
	CALL CODE_0D97
	MOVW $56, YA
	RET

CODE_0C06:
	MOV $03D7, A
	CALL CODE_079C
	RET

CODE_0C0D:
	MOV $02F0+x, A
	RET

CODE_0C11:
	MOV $02E0+x, A
	CALL CODE_0B20
	MOV $02D1+x, A
	CALL CODE_0B20
	MOV $C1+x, A
	RET

CODE_0C20:
	MOV A, #$01
	BRA CODE_0C26

CODE_0C24:
	MOV A, #$00
CODE_0C26:
	MOV $0290+x, A
	MOV A, Y
	MOV $0281+x, A
	CALL CODE_0B20
	MOV $0280+x, A
	CALL CODE_0B20
	MOV $0291+x, A
	RET

CODE_0C3A:
	MOV $0280+x, A
	RET

CODE_0C3E:
	MOV $0301+x, A
	MOV A, #$00
	MOV $0300+x, A
	RET

CODE_0C47:
	MOV $90+x, A
	PUSH A
	CALL CODE_0B20
	MOV $0320+x, A
	SETC
	SBC A, $0301+x
	POP X
	CALL CODE_0D97
	MOV $0310+x, A
	MOV A, Y
	MOV $0311+x, A
	RET

CODE_0C60:
	MOV $0381+x, A
	RET

CODE_0C64:
	MOV $0240+x, A
	CALL CODE_0B20
	MOV $0241+x, A
	CALL CODE_0B20
	MOV $80+x, A
	MOV A, $30+x
	MOV $0230+x, A
	MOV A, $31+x
	MOV $0231+x, A
CODE_0C7C:
	MOV A, $0240+x
	MOV $30+x, A
	MOV A, $0241+x
	MOV $31+x, A
	RET

CODE_0C87:
	CALL CODE_084D
	CALL CODE_0B20
	MOV A, #$00
	MOVW $60, YA
	MOV $0273, Y
	CALL CODE_0B20
	MOV A, #$00
	MOVW $62, YA
	MOV $0274, Y
	CLR5 $48
	RET

CODE_0CA1:
	MOV $68, A
	CALL CODE_0B20
	MOV $69, A
	SETC
	SBC A, $61
	MOV X, $68
	CALL CODE_0D97
	MOVW $64, YA
	CALL CODE_0B20
	MOV $6A, A
	SETC
	SBC A, $63
	MOV X, $68
	CALL CODE_0D97
	MOVW $66, YA
	RET

CODE_0CC2:
	MOVW $60, YA
	MOVW $62, YA
	SET5 $48
	RET

CODE_0CC9:
	CALL CODE_0CEB
	CALL CODE_0B20
	MOV $4E, A
	CALL CODE_0B20
CODE_0CD4:
	MOV Y, #$08
	MUL YA
	MOV X, A
	MOV Y, #$0F
CODE_0CDA:
	MOV A, DATA_1083+x
	CALL CODE_0687
	INC X
	MOV A, Y
	CLRC
	ADC A, #$10
	MOV Y, A
	BPL CODE_0CDA
	MOV X, $44
	RET

CODE_0CEB:
	MOV $4D, A
CODE_0CED:
	MOV Y, #$7D
	MOV $00F2, Y
CODE_0CF2:
	MOV A, $00F3
	CMP A, $4D
	BEQ CODE_0D24
	AND A, #$0F
	EOR A, #$FF
	BBC7 $4C, CODE_0D03
	CLRC
	ADC A, $4C
CODE_0D03:
	MOV $4C, A
	MOV Y, #$04
CODE_0D07:
	MOV A, DATA_10A2+y
	MOV $00F2, A
	MOV A, #$00
CODE_0D0F:
	MOV $00F3, A
	DBNZ Y, CODE_0D07
	MOV A, $48
	OR A, #$20
	MOV Y, #$6C
	CALL CODE_0687
	MOV A, $4D
	MOV Y, #$7D
	CALL CODE_0687
CODE_0D24:
	ASL A
	ASL A
	ASL A
	EOR A, #$FF
	SETC
	ADC A, #$FF
	MOV Y, #$6D
	JMP CODE_0687

CODE_0D31:
	MOV $5F, A
	RET

CODE_0D34:
	MOV $DA, $D7
	MOV $D9, $D8
	RET

CODE_0D3B:
	MOV A, $70+x
	LSR A
	MOV $A0+x, A
	MOV $A1+x, A
	CALL CODE_0B22
	CALL CODE_0B20
	CLRC
	ADC A, $50
	ADC A, $02F0+x
	BRA CODE_0D74

CODE_0D50:
	MOV A, $A0+x
	BNE CODE_0D8B
	MOV A, ($30+x)
	CMP A, #$FD
	BEQ CODE_0D3B
	CMP A, #$F9
	BNE CODE_0D8B
	CALL CODE_0B22
	CALL CODE_0B20
	MOV $A1+x, A
	CALL CODE_0B20
	MOV $A0+x, A
	CALL CODE_0B20
	CLRC
	ADC A, $50
	ADC A, $02F0+x
CODE_0D74:
	AND A, #$7F
	MOV $0380+x, A
	SETC
	SBC A, $0361+x
	MOV Y, $A0+x
	PUSH Y
	POP X
	CALL CODE_0D97
	MOV $0370+x, A
	MOV A, Y
	MOV $0371+x, A
CODE_0D8B:
	RET

CODE_0D8C:
	MOV A, $0361+x
	MOV $11, A
CODE_0D91:
	MOV A, $0360+x
	MOV $10, A
	RET

CODE_0D97:
	NOTC
	ROR $12
	BPL CODE_0D9F
	EOR A, #$FF
	INC A
CODE_0D9F:
	MOV Y, #$00
	DIV YA, X
	PUSH A
	MOV A, #$00
	DIV YA, X
	POP Y
	MOV X, $44
CODE_0DA9:
	BBC7 $12, CODE_0DB2
	MOVW $14, YA
	MOVW YA, $0E
	SUBW YA, $14
CODE_0DB2:
	RET

DATA_0DB3:
	db $2A,$0B,$83,$0B,$91,$0B,$AA,$0B,$B6,$0B,$D1,$0B,$D9,$0B,$EB,$0B
	db $F4,$0B,$06,$0C,$0D,$0C,$11,$0C,$1D,$0C,$3E,$0C,$47,$0C,$64,$0C
	db $C1,$0B,$20,$0C,$24,$0C,$3A,$0C,$60,$0C,$87,$0C,$C2,$0C,$C9,$0C
	db $A1,$0C,$64,$0D,$31,$0D,$98,$11,$34,$0D,$3B,$0D,$00,$00,$01,$01
	db $02,$03,$00,$01,$02,$01,$02,$01,$01,$03,$00,$01,$02,$03,$01,$03
	db $03,$00,$01,$03,$00,$03,$03,$03,$01,$02,$00,$01,$00

CODE_0E10:
	MOV A, $90+x
	BEQ CODE_0E38
	OR $5E, $47
	DEC $90+x
	BNE CODE_0E25
	MOV A, #$00
	MOV $0300+x, A
	MOV A, $0320+x
	BRA CODE_0E35

CODE_0E25:
	CLRC
	MOV A, $0300+x
	ADC A, $0310+x
	MOV $0300+x, A
	MOV A, $0301+x
	ADC A, $0311+x
CODE_0E35:
	MOV $0301+x, A
CODE_0E38:
	MOV Y, $C1+x
	BEQ CODE_0E5F
	MOV A, $02E0+x
	CBNE $C0+x, CODE_0E5D
	OR $5E, $47
	MOV A, $02D0+x
	BPL CODE_0E51
	INC Y
	BNE CODE_0E51
	MOV A, #$80
	BRA CODE_0E55

CODE_0E51:
	CLRC
	ADC A, $02D1+x
CODE_0E55:
	MOV $02D0+x, A
	CALL CODE_1051
	BRA CODE_0E64

CODE_0E5D:
	INC $C0+x
CODE_0E5F:
	MOV A, #$FF
	CALL CODE_105C
CODE_0E64:
	MOV A, $91+x
	BEQ CODE_0E8C
	OR $5E, $47
	DEC $91+x
	BNE CODE_0E79
	MOV A, #$00
	MOV $0330+x, A
	MOV A, $0350+x
	BRA CODE_0E89

CODE_0E79:
	CLRC
	MOV A, $0330+x
	ADC A, $0340+x
	MOV $0330+x, A
	MOV A, $0331+x
	ADC A, $0341+x
CODE_0E89:
	MOV $0331+x, A
CODE_0E8C:
	MOV A, $47
	AND A, $5E
	BEQ CODE_0ED8
	MOV A, $0331+x
	MOV Y, A
	MOV A, $0330+x
	MOVW $10, YA
CODE_0E9B:
	MOV A, X
	XCN A
	LSR A
	MOV $12, A
CODE_0EA0:
	MOV Y, $11
	MOV A, DATA_106E+$01+y
	SETC
	SBC A, DATA_106E+y
	MOV Y, $10
	MUL YA
	MOV A, Y
	MOV Y, $11
	CLRC
	ADC A, DATA_106E+y
	MOV Y, A
	MOV A, $0321+x
	MUL YA
	MOV A, $0351+x
	ASL A
	BBC0 $12, CODE_0EC0
	ASL A
CODE_0EC0:
	MOV A, Y
	BCC CODE_0EC6
	EOR A, #$FF
	INC A
CODE_0EC6:
	MOV Y, $12
	CALL CODE_067F
	MOV Y, #$14
	MOV A, #$00
	SUBW YA, $10
	MOVW $10, YA
	INC $12
	BBC1 $12, CODE_0EA0
CODE_0ED8:
	RET

CODE_0ED9:
	MOV A, $71+x
	BEQ CODE_0F42
	DEC $71+x
	BEQ CODE_0EE6
	MOV A, #$02
	CBNE $70+x, CODE_0F42
CODE_0EE6:
	MOV A, $80+x
	MOV $17, A
	MOV A, $30+x
	MOV Y, $31+x
CODE_0EEE:
	MOVW $14, YA
	MOV Y, #$00
CODE_0EF2:
	MOV A, ($14)+y
	BEQ CODE_0F14
	BMI CODE_0EFF
CODE_0EF8:
	INC Y
	BMI CODE_0F3B
	MOV A, ($14)+y
	BPL CODE_0EF8
CODE_0EFF:
	CMP A, #$C8
	BEQ CODE_0F42
	CMP A, #$EF
	BEQ CODE_0F30
	CMP A, #$E0
	BCC CODE_0F3B
	PUSH Y
	MOV Y, A
	POP A
	ADC A, CODE_0D0F+$02+y
	MOV Y, A
	BRA CODE_0EF2

CODE_0F14:
	MOV A, $17
	BEQ CODE_0F3B
	DEC $17
	BNE CODE_0F26
	MOV A, $0231+x
	PUSH A
	MOV A, $0230+x
	POP Y
	BRA CODE_0EEE

CODE_0F26:
	MOV A, $0241+x
	PUSH A
	MOV A, $0240+x
	POP Y
	BRA CODE_0EEE

CODE_0F30:
	INC Y
	MOV A, ($14)+y
	PUSH A
	INC Y
	MOV A, ($14)+y
	MOV Y, A
	POP A
	BRA CODE_0EEE

CODE_0F3B:
	MOV A, $47
	MOV Y, #$5C
	CALL CODE_067F
CODE_0F42:
	CLR7 $13
	MOV A, $A0+x
	BEQ CODE_0F74
	MOV A, $A1+x
	BEQ CODE_0F50
	DEC $A1+x
	BRA CODE_0F74

CODE_0F50:
	SET7 $13
	DEC $A0+x
	BNE CODE_0F61
	MOV A, $0381+x
	MOV $0360+x, A
	MOV A, $0380+x
	BRA CODE_0F71

CODE_0F61:
	CLRC
	MOV A, $0360+x
	ADC A, $0370+x
	MOV $0360+x, A
	MOV A, $0361+x
	ADC A, $0371+x
CODE_0F71:
	MOV $0361+x, A
CODE_0F74:
	CALL CODE_0D8C
	MOV A, $B1+x
	BEQ CODE_0FC7
	MOV A, $02B0+x
	CBNE $B0+x, CODE_0FC5
	MOV A, $0100+x
	CMP A, $02B1+x
	BNE CODE_0F8E
	MOV A, $02C1+x
	BRA CODE_0F9B

CODE_0F8E:
	SETP
	INC $00+x
	CLRP
	MOV Y, A
	BEQ CODE_0F97
	MOV A, $B1+x
CODE_0F97:
	CLRC
	ADC A, $02C0+x
CODE_0F9B:
	MOV $B1+x, A
	MOV A, $02A0+x
	CLRC
	ADC A, $02A1+x
	MOV $02A0+x, A
CODE_0FA7:
	MOV $12, A
	ASL A
	ASL A
	BCC CODE_0FAF
	EOR A, #$FF
CODE_0FAF:
	MOV Y, A
	MOV A, $B1+x
	CMP A, #$F1
	BCC CODE_0FBB
	AND A, #$0F
	MUL YA
	BRA CODE_0FBF

CODE_0FBB:
	MUL YA
	MOV A, Y
	MOV Y, #$00
CODE_0FBF:
	CALL CODE_103C
CODE_0FC2:
	JMP CODE_05F7

CODE_0FC5:
	INC $B0+x
CODE_0FC7:
	BBS7 $13, CODE_0FC2
	RET

CODE_0FCB:
	CLR7 $13
	MOV A, $C1+x
	BEQ CODE_0FDA
	MOV A, $02E0+x
	CBNE $C0+x, CODE_0FDA
	CALL CODE_1044
CODE_0FDA:
	MOV A, $0331+x
	MOV Y, A
	MOV A, $0330+x
	MOVW $10, YA
	MOV A, $91+x
	BEQ CODE_0FF1
	MOV A, $0341+x
	MOV Y, A
	MOV A, $0340+x
	CALL CODE_1026
CODE_0FF1:
	BBC7 $13, CODE_0FF7
	CALL CODE_0E9B
CODE_0FF7:
	CLR7 $13
	CALL CODE_0D8C
	MOV A, $A0+x
	BEQ CODE_100E
	MOV A, $A1+x
	BNE CODE_100E
	MOV A, $0371+x
	MOV Y, A
	MOV A, $0370+x
	CALL CODE_1026
CODE_100E:
	MOV A, $B1+x
	BEQ CODE_0FC7
	MOV A, $02B0+x
	CBNE $B0+x, CODE_0FC7
	MOV Y, $51
	MOV A, $02A1+x
	MUL YA
	MOV A, Y
	CLRC
	ADC A, $02A0+x
	JMP CODE_0FA7

CODE_1026:
	SET7 $13
	MOV $12, Y
	CALL CODE_0DA9
	PUSH Y
	MOV Y, $51
	MUL YA
	MOV $14, Y
	MOV $15, #$00
	MOV Y, $51
	POP A
	MUL YA
	ADDW YA, $14
CODE_103C:
	CALL CODE_0DA9
	ADDW YA, $10
	MOVW $10, YA
	RET

CODE_1044:
	SET7 $13
	MOV Y, $51
	MOV A, $02D1+x
	MUL YA
	MOV A, Y
	CLRC
	ADC A, $02D0+x
CODE_1051:
	ASL A
	BCC CODE_1056
	EOR A, #$FF
CODE_1056:
	MOV Y, $C1+x
	MUL YA
	MOV A, Y
	EOR A, #$FF
CODE_105C:
	MOV Y, $59
	MUL YA
	MOV A, $0210+x
	MUL YA
	MOV A, $0301+x
	MUL YA
	MOV A, Y
	MUL YA
	MOV A, Y
	MOV $0321+x, A
	RET

DATA_106E:
	db $00,$01,$03,$07,$0D,$15,$1E,$29,$34,$42,$51,$5E,$67,$6E,$73,$77
	db $7A,$7C,$7D,$7E,$7F

DATA_1083:
	db $7F,$00,$00,$00,$00,$00,$00,$00,$58,$BF,$DB,$F0,$FE,$07,$0C,$0C
	db $0C,$21,$2B,$2B,$13,$FE,$F3,$F9,$34,$33,$00,$D9,$E5,$01,$FC

DATA_10A2:
	db $EB,$2C,$3C,$0D,$4D,$6C,$4C,$5C,$3D,$2D,$5C,$D0,$D0,$4E,$4A,$48
	db $45,$0E,$49,$4B,$46

DATA_10B7:
	dw $085F,$08DE,$0965,$09F4,$0A8C,$0B2C,$0BD6,$0C8B
	dw $0D4A,$0E14,$0EEA,$0FCD,$10BE

UNK_10D1:
	db $2A,$56,$65,$72,$20,$53,$31,$2E,$32,$30,$2A

CODE_10DC:
	MOV A, #$AA
	MOV $00F4, A
	MOV A, #$BB
	MOV $00F5, A
CODE_10E6:
	MOV A, $00F4
	CMP A, #$CC
	BNE CODE_10E6
	BRA CODE_110F

CODE_10EF:
	MOV Y, $00F4
	BNE CODE_10EF
CODE_10F4:
	CMP Y, $00F4
	BNE CODE_1108
CODE_10F9:
	MOV A, $00F5
CODE_10FC:
	MOV $00F4, Y
	MOV ($14)+y, A
	INC Y
	BNE CODE_10F4
	INC $15
	BRA CODE_10F4

CODE_1108:
	BPL CODE_10F4
	CMP Y, $00F4
	BPL CODE_10F4
CODE_110F:
	MOV A, $00F6
	MOV Y, $00F7
	MOVW $14, YA
	MOV Y, $00F4
	MOV A, $00F5
	MOV $00F4, Y
	BNE CODE_10EF
	MOV X, #$31
	MOV $00F1, X
	RET

DATA_1128:
	dw $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000
	dw $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000
	dw $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000
	dw $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000
	dw $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000
	dw $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000
	dw $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000

CODE_1198:
	PUSH A
	MOV Y, #$06
	MUL YA
	MOVW $14, YA
	CLRC
	ADC $14, #DATA_6E00
	ADC $15, #DATA_6E00>>8
	CALL CODE_0B20
	MOV Y, #$01
	MOV ($14)+y, A
	CALL CODE_0B20
	MOV Y, #$02
	MOV ($14)+y, A
	POP A
	JMP CODE_0B2A

CODE_11B7:
	MOV A, #DATA_6E00
	MOV Y, #DATA_6E00>>8
	MOVW $14, YA
	MOV X, #$00
	MOV $22, #$38
CODE_11C2:
	MOV Y, #$01
	MOV A, ($14)+y
	MOV DATA_1128+x, A
	MOV Y, #$02
	INC X
	MOV A, ($14)+y
	MOV DATA_1128+x, A
	CLRC
	ADC $14, #$06
	ADC $15, #$00
	INC X
	DBNZ $22, CODE_11C2
	RET

CODE_11DD:
	MOV A, $1A
	EOR A, #$FF
	MOV Y, #$5C
	CALL CODE_0687
	MOV A, #DATA_6E00
	MOV Y, #DATA_6E00>>8
	MOVW $14, YA
	MOV X, #$00
	MOV $22, #$38
CODE_11F1:
	MOV Y, #$01
	MOV A, DATA_1128+x
	MOV ($14)+y, A
	MOV Y, #$02
	INC X
	MOV A, DATA_1128+x
	MOV ($14)+y, A
	CLRC
	ADC $14, #$06
	ADC $15, #$00
	INC X
	DBNZ $22, CODE_11F1
	RET

DATA_120C:
	dw $1C00,$5000,$50A0,$5140

DATA_1214:
	db $40,$70,$60,$50,$40,$30,$20,$10,$40

DATA_121D:
	db $40,$10,$20,$30,$40,$50,$60
	db $70,$40

DATA_1226:
	dw $0100,$0210,$0420,$0830,$1040,$2050,$4060,$8070
	dw $8070

CODE_1238:
	MOV A, #$00
	MOV $0278, A
CODE_123D:
	MOV A, $03D4
	BEQ CODE_1250
	DEC A
	MOV Y, A
	MOV A, #$00
	PUSH X
	MOV X, #$50
	DIV YA, X
	POP X
	MOV Y, A
	MOV A, $61
	MUL YA
	MOV A, Y
CODE_1250:
	MOV $D0, A
	MOV A, $0271
	CMP A, $0270
	BEQ CODE_1281
	MOV Y, #$00
	MOV $0278, Y
	BCS CODE_1271
	CLRC
	ADC A, $0279
	BCS CODE_126C
	CMP A, $0270
	BCC CODE_128B
CODE_126C:
	MOV A, $0270
	BRA CODE_1281

CODE_1271:
	SETC
	SBC A, $0279
	BCC CODE_127C
	CMP A, $0270
	BCS CODE_128B
CODE_127C:
	MOV A, $0270
	BRA CODE_1281

CODE_1281:
	MOV Y, $0278
	BNE CODE_1297
	MOV Y, #$01
	MOV $0278, Y
CODE_128B:
	MOV $0271, A
	MOV Y, $21
	MUL YA
	MOVW $58, YA
	MOV A, $1A
	EOR A, #$FF
CODE_1297:
	RET

CODE_1298:
	MOV A, $0275
	BEQ CODE_129E
	RET

CODE_129E:
	MOV A, #$01
	MOV $0275, A
	MOV A, $04
	MOV $D5, A
	MOV A, #$00
	MOV $04, A
	MOV $61, A
	MOV $63, A
	OR $46, #$FF
	MOV X, #$00
	MOV A, #$02
CODE_12B6:
	MOV $0260+x, A
	INC X
	INC X
	CMP X, #$10
	BNE CODE_12B6
	RET

CODE_12C0:
	MOV A, $0275
	BNE CODE_12C6
	RET

CODE_12C6:
	MOV A, #$00
	MOV $0275, A
	MOV A, $D5
	MOV $04, A
	MOV A, $0273
	MOV $61, A
	MOV $63, A
	RET

CODE_12D7:
	CALL CODE_12EA
	MOV A, #$02
	MOV $0260+x, A
	CALL CODE_12F5
	MOV A, #$02
	MOV $0260+x, A
	JMP CODE_1379

CODE_12EA:
	MOV A, #$04
	SETC
	SBC A, $0276
	ASL A
	INC A
	ASL A
	MOV X, A
	RET

CODE_12F5:
	MOV A, #$04
	SETC
	SBC A, $0276
	ASL A
	ASL A
	MOV X, A
	RET

CODE_12FF:
	MOV A, $2C
	BEQ CODE_1307
	MOV A, $2E
	BMI CODE_1326
CODE_1307:
	MOV A, $0275
	BEQ CODE_132A
	MOV Y, $0276
	MOV A, $006B+y
	CMP A, #$80
	BEQ CODE_12D7
	MOV Y, A
	BEQ CODE_132A
	MOV Y, $0276
	CMP Y, #$01
	BNE CODE_1327
	CMP A, #$60
	BCS CODE_132A
	BRA CODE_1327

CODE_1326:
	RET

CODE_1327:
	JMP CODE_1379

CODE_132A:
	MOV Y, $0276
	MOV A, $0008+y
	MOV $22, A
	MOV A, $006B+y
	MOV $0008+y, A
	CMP A, $22
	BEQ CODE_1327
	CMP A, #$00
	BEQ CODE_1327
	CMP A, #$80
	BEQ CODE_12D7
	MOV $22, A
	CMP Y, #$03
	BNE CODE_1357
	CMP A, #$06
	BNE CODE_1357
	MOV A, $49
	AND A, #$FB
	BEQ CODE_1357
	JMP CODE_12D7

CODE_1357:
	MOV A, $22
	MOV X, #$0E
	CALL CODE_13CA
	MOV A, ($D2)+y
	MOV $03D0, A
	LSR $03D0
	BCC CODE_136E
	CALL CODE_12EA
	CALL CODE_1407
CODE_136E:
	LSR $03D0
	BCC CODE_1379
	CALL CODE_12F5
	CALL CODE_1407
CODE_1379:
	CALL CODE_12EA
	MOV A, $0261+x
	BEQ CODE_1384
	CALL CODE_1390
CODE_1384:
	CALL CODE_12F5
	MOV A, $0261+x
	BEQ CODE_138F
	CALL CODE_1390
CODE_138F:
	RET

CODE_1390:
	CALL CODE_1898
	AND $47, $25
	MOV A, $0260+x
	BEQ CODE_13A0
	CALL CODE_143C
	BRA CODE_13AF

CODE_13A0:
	MOV A, $0250+x
	BEQ CODE_13B0
	DEC A
	MOV $0250+x, A
	OR $46, $24
	AND $49, $25
CODE_13AF:
	RET

CODE_13B0:
	CALL CODE_1470
	CMP A, #$FF
	BNE CODE_13C1
	MOV A, #$02
	MOV $0260+x, A
	CALL CODE_143C
	BRA CODE_13AF

CODE_13C1:
	MOV A, $0251+x
	DEC A
	MOV $0251+x, A
	BRA CODE_13AF

CODE_13CA:
	MOV Y, $0276
	CMP Y, #$01
	BNE CODE_13DC
	CMP A, #$60
	BCC CODE_13DC
	MOV Y, #$00
	SETC
	SBC A, #$5F
	BRA CODE_13E2

CODE_13DC:
	CMP A, #$21
	BCC CODE_13E2
	MOV A, #$01
CODE_13E2:
	MOV $22, A
	MOV A, Y
	ASL A
	MOV Y, A
	MOV A, DATA_120C+y
	MOV $D2, A
	MOV A, DATA_120C+$01+y
	MOV $D3, A
	MOV A, X
	AND A, #$02
	EOR A, #$02
	MOV $23, A
	MOV A, $22
	DEC A
	MOV Y, #$05
	MUL YA
	CLRC
	ADDW YA, $D2
	MOVW $D2, YA
	MOV A, $23
	MOV Y, A
	RET

CODE_1407:
	MOV Y, $0276
	MOV A, $0008+y
	MOV $0261+x, A
	MOV A, #$00
	MOV $0260+x, A
	CALL CODE_1880
	MOV A, #$01
	MOV $0250+x, A
	CALL CODE_1898
	OR $1A, $24
	AND $4B, $25
	AND $4A, $25
	MOV A, $0261+x
	CALL CODE_13CA
	INC Y
	MOV A, ($D2)+y
	MOV $0120+x, A
	INC Y
	MOV A, ($D2)+y
	MOV $0121+x, A
	RET

CODE_143C:
	MOV A, $0260+x
	DEC A
	MOV $0260+x, A
	CMP A, #$01
	BNE CODE_144F
	OR $46, $24
	AND $4B, $25
	BRA CODE_145A

CODE_144F:
	MOV A, #$00
	MOV $0261+x, A
	CALL CODE_1898
	CALL CODE_18A2
CODE_145A:
	RET

CODE_145B:
	SETP
	CLRC
	MOV A, #$01
	ADC A, $20+x
	MOV $20+x, A
	MOV A, $21+x
	ADC A, #$00
	MOV $21+x, A
	MOV A, ($20+x)
	CLRP
	RET

CODE_146D:
	JMP CODE_16CF

CODE_1470:
	MOV A, $0251+x
	BNE CODE_146D
CODE_1475:
	SETP
	MOV A, ($20+x)
	CLRP
	CMP A, #$FF
	BNE CODE_147E
	RET

CODE_147E:
	CMP A, #$FE
	BNE CODE_1497
	CALL CODE_145B
	MOV $D2, A
	CALL CODE_145B
	MOV $D3, A
	MOVW YA, $D2
	MOV $0120+x, A
	MOV A, Y
	MOV $0121+x, A
	BRA CODE_1475

CODE_1497:
	CMP A, #$FC
	BNE CODE_149C
	RET

CODE_149C:
	CMP A, #$FD
	BNE CODE_14A2
	BRA CODE_1475

CODE_14A2:
	MOV $0251+x, A
	CALL CODE_145B
CODE_14A8:
	CMP A, #$E0
	BNE CODE_14B5
	CALL CODE_145B
	CALL CODE_0B2D
	CALL CODE_145B
CODE_14B5:
	CMP A, #$E1
	BNE CODE_14EA
	MOV A, #$00
	MOV $03B1+x, A
	CALL CODE_145B
	MOV Y, A
	MOV $22, Y
	MOV A, DATA_1214+y
	MOV $0150+x, A
	MOV A, DATA_1226+x
	MOV Y, A
	MOV A, $0150+x
	CALL CODE_0687
	MOV Y, $22
	MOV A, DATA_121D+y
	MOV $0151+x, A
	MOV A, DATA_1226+x
	MOV Y, A
	INC Y
	MOV A, $0151+x
	CALL CODE_0687
	CALL CODE_145B
CODE_14EA:
	CMP A, #$E2
	BNE CODE_1508
	MOV A, #$01
	MOV $03B1+x, A
	CALL CODE_145B
	MOV $0160+x, A
	CALL CODE_145B
	MOV $0161+x, A
	CALL CODE_145B
	MOV $03A1+x, A
	CALL CODE_145B
CODE_1508:
	CMP A, #$F5
	BNE CODE_153B
	MOV A, #$00
	MOV $03B1+x, A
	MOV Y, $0272
	MOV A, DATA_1214+y
	MOV $0150+x, A
	MOV A, DATA_1226+x
	MOV Y, A
	MOV A, $0150+x
	CALL CODE_0687
	MOV Y, $0272
	MOV A, DATA_121D+y
	MOV $0151+x, A
	MOV A, DATA_1226+x
	MOV Y, A
	INC Y
	MOV A, $0151+x
	CALL CODE_0687
	CALL CODE_145B
CODE_153B:
	CMP A, #$F2
	BNE CODE_1565
	MOV A, #$01
	MOV $0170+x, A
	CALL CODE_145B
	BPL CODE_1553
	MOV Y, A
	MOV A, #$02
	MOV $0170+x, A
	MOV A, Y
	EOR A, #$FF
	INC A
CODE_1553:
	XCN A
	MOV $22, A
	AND A, #$07
	MOV $0181+x, A
	MOV A, $22
	AND A, #$F0
	MOV $0180+x, A
	CALL CODE_145B
CODE_1565:
	CMP A, #$F3
	BNE CODE_1571
	MOV A, #$00
	MOV $0170+x, A
	CALL CODE_145B
CODE_1571:
	CMP A, #$ED
	BNE CODE_1590
	CALL CODE_145B
	MOV $22, A
	MOV A, DATA_1226+x
	MOV Y, A
	MOV $23, X
	MOV A, $22
	MOV X, A
	INC Y
	INC Y
	INC Y
	INC Y
	INC Y
	CALL CODE_1867
	MOV X, $23
	CALL CODE_145B
CODE_1590:
	CMP A, #$E3
	BNE CODE_15A9
	CALL CODE_145B
	MOV $03C0+x, A
	CALL CODE_145B
	MOV $01B0+x, A
	CALL CODE_145B
	MOV $0130+x, A
	CALL CODE_145B
CODE_15A9:
	CMP A, #$E4
	BNE CODE_15B5
	MOV A, #$00
	MOV $03C0+x, A
	CALL CODE_145B
CODE_15B5:
	CMP A, #$F8
	BNE CODE_15C3
	MOV A, DATA_1226+$01+x
	OR A, $45
	MOV $45, A
	CALL CODE_145B
CODE_15C3:
	CMP A, #$F9
	BNE CODE_15D0
	MOV A, DATA_1226+$01+x
	OR A, $46
	MOV $46, A
	MOV A, #$00
CODE_15D0:
	CMP A, #$F6
	BNE CODE_15EB
	MOV A, DATA_1226+$03+x
	OR A, $4B
	MOV $4B, A
	MOV A, DATA_1226+x
	MOV Y, A
	MOV A, #$00
	CALL CODE_0687
	INC Y
	CALL CODE_0687
	CALL CODE_145B
CODE_15EB:
	CMP A, #$F7
	BNE CODE_15F9
	MOV A, DATA_1226+$03+x
	EOR A, $4B
	MOV $4B, A
	CALL CODE_145B
CODE_15F9:
	CMP A, #$FA
	BNE CODE_1607
	MOV A, DATA_1226+$01+x
	OR A, $4A
	MOV $4A, A
	CALL CODE_145B
CODE_1607:
	CMP A, #$FB
	BNE CODE_1617
	MOV A, DATA_1226+$01+x
	EOR A, #$FF
	AND A, $4A
	MOV $4A, A
	CALL CODE_145B
CODE_1617:
	CMP A, #$EE
	BNE CODE_163C
	CALL CODE_145B
	MOV $22, A
	CALL CODE_145B
	MOV $23, A
	MOV A, DATA_1226+x
	MOV Y, A
	MOV A, $22
	INC Y
	INC Y
	INC Y
	INC Y
	INC Y
	CALL CODE_0687
	INC Y
	MOV A, $23
	CALL CODE_0687
	CALL CODE_145B
CODE_163C:
	CMP A, #$EF
	BNE CODE_1660
	CALL CODE_145B
	MOV $0150+x, A
	CALL CODE_145B
	MOV $0151+x, A
	MOV A, DATA_1226+x
	MOV Y, A
	MOV A, $0150+x
	CALL CODE_0687
	INC Y
	MOV A, $0151+x
	CALL CODE_0687
	CALL CODE_145B
CODE_1660:
	CMP A, #$E5
	BNE CODE_16A1
	MOV A, #$00
	CALL CODE_0B2D
	MOV A, $49
	MOV Y, #$5C
	CALL CODE_0687
	MOV $22, A
	MOV A, DATA_1226+$01+x
	TSET $0049, A
	CALL CODE_145B
	AND A, #$1F
	AND $48, #$E0
	OR A, $48
	MOV $48, A
	PUSH X
	MOV X, #$04
	MOV $47, #$04
CODE_168A:
	MOV A, $22
	AND A, $47
	BEQ CODE_1695
	MOV A, #$02
	MOV $0260+x, A
CODE_1695:
	ASL $47
	INC X
	INC X
	CMP X, #$10
	BCC CODE_168A
	POP X
	CALL CODE_145B
CODE_16A1:
	CMP A, #$80
	BCC CODE_16CC
	CMP A, #$E0
	BCC CODE_16AC
	JMP CODE_14A8

CODE_16AC:
	BRA CODE_16C2

CODE_16AE:
	MOV $01A0+x, A
	CALL CODE_182D
	MOV A, DATA_1226+x
	MOV Y, A
	MOV A, #$01
	INC Y
	INC Y
	INC Y
	CALL CODE_185D
	BRA CODE_16CC

CODE_16C2:
	MOV $01A0+x, A
	MOV Y, A
	CALL CODE_182D
	CALL CODE_1857
CODE_16CC:
	CALL CODE_145B
CODE_16CF:
	MOV A, #$00
	MOV $DE, A
	MOV $DC, A
	MOV A, $03C0+x
	BEQ CODE_16DD
	CALL CODE_1741
CODE_16DD:
	MOV A, $03B1+x
	BEQ CODE_16FE
	MOV A, $03A1+x
	MOV Y, A
	SETP
CODE_16E7:
	CALL CODE_1838
	DBNZ Y, CODE_16E7
	CLRP
	MOV A, DATA_1226+x
	MOV Y, A
	MOV A, $0150+x
	CALL CODE_0687
	INC Y
	MOV A, $0151+x
	CALL CODE_0687
CODE_16FE:
	MOV A, $0170+x
	BEQ CODE_1722
	SETP
	CALL CODE_17E5
	CLRP
	BRA CODE_1722

CODE_170A:
	MOV A, DATA_1226+x
	MOV Y, A
	MOV A, #$01
	INC Y
	INC Y
	INC Y
	CALL CODE_185D
	BRA CODE_1722

CODE_1718:
	MOV A, $0171+x
	MOV Y, A
	MOV A, $0190+x
	CALL CODE_1857
CODE_1722:
	MOV A, $0190+x
	CLRC
	MOV $22, A
	ADC $22, $DE
	MOV A, $01A0+x
	ADC A, $0171+x
	ADC A, $DC
	MOV Y, A
	MOV A, $22
	CALL CODE_1857
	MOV A, #$00
	RET

CODE_173C:
	ASL A
	BCC CODE_1740
	INC Y
CODE_1740:
	RET

CODE_1741:
	MOV A, #$00
	MOV $DE, A
	MOV $DC, A
	MOV A, $0131+x
	CLRC
	ADC A, $0130+x
	MOV $0131+x, A
	MOV0 $0022, C
	MOV A, $03C0+x
	BEQ CODE_1741
	CMP A, #$01
	BEQ CODE_176B
	CMP A, #$02
	BEQ CODE_1778
	CMP A, #$03
	BEQ CODE_177D
	CMP A, #$04
	BEQ CODE_1785
	BRA CODE_1796

CODE_176B:
	MOV A, $0131+x
	BMI CODE_1774
	MOV A, #$7F
	BRA CODE_17A7

CODE_1774:
	MOV A, #$81
	BRA CODE_17A7

CODE_1778:
	MOV A, $0131+x
	BRA CODE_17A7

CODE_177D:
	MOV A, $0131+x
	EOR A, #$FF
	INC A
	BRA CODE_17A7

CODE_1785:
	MOV A, $0131+x
	ASL A
	BMI CODE_1792
	BCC CODE_1794
CODE_178D:
	EOR A, #$FF
	INC A
	BRA CODE_17A7

CODE_1792:
	BCC CODE_178D
CODE_1794:
	BRA CODE_17A7

CODE_1796:
	MOV0 C, $0022
	BCC CODE_17A2
	MOV A, $18
	MOV $01A1+x, A
	BRA CODE_17A7

CODE_17A2:
	MOV A, $01A1+x
	BRA CODE_17A7

CODE_17A7:
	ASL A
	BCS CODE_17C0
	MOV Y, A
	MOV A, $01B0+x
	MUL YA
	CALL CODE_173C
	MOV A, Y
	XCN A
	MOV Y, A
	AND A, #$0F
	MOV $DC, A
	MOV A, Y
	AND A, #$F0
	MOV $DE, A
	BRA CODE_17E4

CODE_17C0:
	EOR A, #$FF
	INC A
	MOV Y, A
	MOV A, $01B0+x
	MUL YA
	CALL CODE_173C
	MOV A, Y
	XCN A
	MOV Y, A
	AND A, #$0F
	MOV $22, A
	MOV A, Y
	AND A, #$F0
	MOV $23, A
	MOV $DE, #$00
	SETC
	SBC $DE, $23
	MOV $DC, #$00
	SBC $DC, $22
CODE_17E4:
	RET

CODE_17E5:
	MOV A, $70+x
	CMP A, #$02
	BEQ CODE_180E
	MOV A, $80+x
	CLRC
	ADC A, $90+x
	MOV $90+x, A
	BCC CODE_17FE
	MOV A, $71+x
	INC $71+x
	BRA CODE_17FE

CODE_17FA:
	MOV A, #$00
	MOV $90+x, A
CODE_17FE:
	MOV A, $81+x
	BEQ CODE_180D
CODE_1802:
	MOV Y, $71+x
	CMP Y, #$C6
	BCS CODE_180A
	INC $71+x
CODE_180A:
	DEC A
	BNE CODE_1802
CODE_180D:
	RET

CODE_180E:
	MOV A, $90+x
	SETC
	SBC A, $80+x
	MOV $90+x, A
	BCS CODE_1821
	MOV A, $71+x
	DEC $71+x
	BRA CODE_1821

CODE_181D:
	MOV A, #$00
	MOV $90+x, A
CODE_1821:
	MOV A, $81+x
	BEQ CODE_182C
CODE_1825:
	MOV Y, $71+x
	DEC $71+x
	DEC A
	BNE CODE_1825
CODE_182C:
	RET

CODE_182D:
	MOV A, #$00
	MOV $0171+x, A
	MOV $0190+x, A
	MOV $DC, A
	RET

CODE_1838:
	MOV A, $50+x
	CMP A, $0160+x
	BEQ CODE_1847
	BCS CODE_1845
	INC $50+x
	BRA CODE_1847

CODE_1845:
	DEC $50+x
CODE_1847:
	MOV A, $51+x
	CMP A, $0161+x
	BEQ CODE_1856
	BCS CODE_1854
	INC $51+x
	BRA CODE_1856

CODE_1854:
	DEC $51+x
CODE_1856:
	RET

CODE_1857:
	MOVW $10, YA
	CALL CODE_060D
	RET

CODE_185D:
	CALL CODE_0687
	DEC Y
	MOV A, #$00
	CALL CODE_0687
	RET

CODE_1867:
	MOV A, #$00
	CALL CODE_0687
	INC Y
	CALL CODE_0687
	INC Y
	MOV A, X
	CALL CODE_0687
	RET

CODE_1876:
	MOV A, #$00
	CALL CODE_0687
	INC Y
	CALL CODE_0687
	RET

CODE_1880:
	MOV $0251+x, A
	MOV $03B1+x, A
	MOV $0170+x, A
	MOV $03C0+x, A
	MOV $0131+x, A
	MOV $01B0+x, A
	MOV $01B1+x, A
	MOV $DE, A
	RET

CODE_1898:
	MOV A, DATA_1226+$01+x
	MOV $24, A
	EOR A, #$FF
	MOV $25, A
	RET

CODE_18A2:
	AND $1A, $25
	OR $47, $24
	OR $5E, $24
	MOV A, $0211+x
	CALL CODE_0B2D
	MOV A, #$00
	CALL CODE_1880
	MOV A, $D4
	AND A, $24
	BEQ CODE_18C1
	OR $4A, $24
	BRA CODE_18C4

CODE_18C1:
	AND $4A, $25
CODE_18C4:
	RET
%SPCDataBlockEnd(0400)

%SPCDataBlockStart(1C00)
DATA_1C00:
	incbin "DATA_C215E2.bin"
%SPCDataBlockEnd(1C00)

%SPCDataBlockStart(6C00)
DATA_6C00:
	dw DATA_6F00	:	dw DATA_6F00+$001B
	dw DATA_6F36	:	dw DATA_6F36+$03CC
	dw DATA_731D	:	dw DATA_731D+$0120
	dw DATA_7458	:	dw DATA_7458+$006C
	dw DATA_74D6	:	dw DATA_74D6+$001B
	dw DATA_7515	:	dw DATA_7515+$001B
	dw DATA_756F	:	dw DATA_756F+$01E6
	dw DATA_775E	:	dw DATA_775E+$010E
	dw DATA_7887	:	dw DATA_7887+$00E1
	dw DATA_7983	:	dw DATA_7983+$003F
	dw DATA_7A01	:	dw DATA_7A01+$0012
	dw DATA_7A52	:	dw DATA_7A52+$01E6
	dw DATA_7C53	:	dw DATA_7C53+$01C2
	dw DATA_7E30	:	dw DATA_7E30+$01DD
	dw DATA_8028	:	dw DATA_8028+$0252
	dw DATA_829E	:	dw DATA_829E+$001B
	dw DATA_8F07	:	dw DATA_8F07+$001B
	dw DATA_8F46	:	dw DATA_8F46+$0291
	dw DATA_9204	:	dw DATA_9204+$0012
	dw DATA_9621	:	dw DATA_9621+$001B
	dw DATA_974A	:	dw DATA_974A+$0291
	dw DATA_9A1A	:	dw DATA_9A1A+$0168
	dw DATA_9BA6	:	dw DATA_9BA6+$03D5
	dw DATA_9F7B	:	dw DATA_9F7B+$09FC
	dw DATA_A977	:	dw DATA_A977+$029A
	dw DATA_AD70	:	dw DATA_AD70+$0438
	dw DATA_AD70	:	dw DATA_AD70+$0438
	dw DATA_AD70	:	dw DATA_AD70+$0438
	dw DATA_B856	:	dw DATA_B856+$046E
	dw DATA_BCC4	:	dw DATA_BCC4+$0465
	dw DATA_C129	:	dw DATA_C129+$034E
	dw DATA_C4F5	:	dw DATA_C4F5+$0951
	dw DATA_CE46	:	dw DATA_CE46+$001B
	dw DATA_CE73	:	dw DATA_CE73+$001B
	dw DATA_CEA0	:	dw DATA_CEA0+$001B
	dw DATA_CECD	:	dw DATA_CECD+$001B
	dw DATA_CEFA	:	dw DATA_CEFA+$001B
	dw DATA_CF27	:	dw DATA_CF27+$001B
	dw DATA_CF54	:	dw DATA_CF54+$001B
	dw DATA_CF81	:	dw DATA_CF81+$001B
%SPCDataBlockEnd(6C00)

%SPCDataBlockStart(6F00)
DATA_6F00:
	incbin "Samples/00.brr"

DATA_6F36:
	incbin "Samples/01.brr"

DATA_731D:
	incbin "Samples/02.brr"

DATA_7458:
	incbin "Samples/03.brr"

DATA_74D6:
	incbin "Samples/04.brr"

DATA_7515:
	incbin "Samples/05.brr"

DATA_756F:
	incbin "Samples/06.brr"

DATA_775E:
	incbin "Samples/07.brr"

DATA_7887:
	incbin "Samples/08.brr"

DATA_7983:
	incbin "Samples/09.brr"

DATA_7A01:
	incbin "Samples/0A.brr"

DATA_7A52:
	incbin "Samples/0B.brr"

DATA_7C53:
	incbin "Samples/0C.brr"

DATA_7E30:
	incbin "Samples/0D.brr"

DATA_8028:
	incbin "Samples/0E.brr"

DATA_829E:
	incbin "Samples/0F.brr"

DATA_8F07:
	incbin "Samples/10.brr"

DATA_8F46:
	incbin "Samples/11.brr"

DATA_9204:
	incbin "Samples/12.brr"

DATA_9621:
	incbin "Samples/13.brr"

DATA_974A:
	incbin "Samples/14.brr"

DATA_9A1A:
	incbin "Samples/15.brr"

DATA_9BA6:
	incbin "Samples/16.brr"

DATA_9F7B:
	incbin "Samples/17.brr"

DATA_A977:
	incbin "Samples/18.brr"

DATA_AD70:
	incbin "Samples/19.brr"

DATA_B856:
	incbin "Samples/1A.brr"

DATA_BCC4:
	incbin "Samples/1B.brr"

DATA_C129:
	incbin "Samples/1C.brr"

DATA_C4F5:
	incbin "Samples/1D.brr"

DATA_CE46:
	incbin "Samples/1E.brr"

DATA_CE73:
	incbin "Samples/1F.brr"

DATA_CEA0:
	incbin "Samples/20.brr"

DATA_CECD:
	incbin "Samples/21.brr"

DATA_CEFA:
	incbin "Samples/22.brr"

DATA_CF27:
	incbin "Samples/23.brr"

DATA_CF54:
	incbin "Samples/24.brr"

DATA_CF81:
	incbin "Samples/25.brr"
%SPCDataBlockEnd(6F00)

%EndSPCUploadAndJumpToEngine($0400)
