DKC1_CODE_BEA514.asm
Yoshifanatic1_Donkey-Kong-Country-3-Disassembly/DKC3/GarbageData/DKC1_CODE_BEA514.asm
ADDR_BEA514:
	LDA.w $1271,x
	BMI.b ADDR_BEA526
	JSL.l $BFAC3C
	BCC.b ADDR_BEA526
	LDA.w #$000A
	JSL.l $BE80A4
ADDR_BEA526:
	RTL

ADDR_BEA527:
	LDA.w $191D
	BNE.b ADDR_BEA58C
	LDA.w $0579
	AND.w #$2000
	BNE.b ADDR_BEA57B
	LDY.b $84
	LDA.w $1699,y
	AND.w #$0008
	BNE.b ADDR_BEA591
	JSR.w $BE9E95
	BCS.b ADDR_BEA58B
	LDA.w #$0003
	CMP.w $1921
	BEQ.b ADDR_BEA587
	LDA.w #$0002
	CMP.w $1921
	BEQ.b ADDR_BEA587
	LDA.w #$0049
	CMP.w $1921
	BEQ.b ADDR_BEA584
	LDA.w #$0026
	CMP.w $1921
	BEQ.b ADDR_BEA57C
	LDA.w #$0027
	CMP.w $1921
	BEQ.b ADDR_BEA57C
	LDA.w #$0028
	CMP.w $1921
	BEQ.b ADDR_BEA57C
	LDA.w #$0018
	CMP.w $1921
	BEQ.b ADDR_BEA57C
ADDR_BEA57B:
	RTL

ADDR_BEA57C:
	LDA.w #$0002
	JSL.l $BE80A4
	RTL

ADDR_BEA584:
	LDA.w #$0003
ADDR_BEA587:
	JSL.l $BE80A4
ADDR_BEA58B:
	RTL

ADDR_BEA58C:
	LDA.w #$0003
	BRA.b ADDR_BEA587

ADDR_BEA591:
	RTL

ADDR_BEA592:
	LDA.w $1271,x
	BMI.b ADDR_BEA527
	LDA.w $0F25,x
	BEQ.b ADDR_BEA5C1
	BPL.b ADDR_BEA5A2
	EOR.w #$FFFF
	INC
ADDR_BEA5A2:
	CMP.w #$0060
	BMI.b ADDR_BEA5C1
	LDA.w $0C69,x
	ASL
	EOR.w $0F25,x
	BMI.b ADDR_BEA5C2
	LDY.b $84
	LDA.w $1699,y
	AND.w #$0004
	BNE.b ADDR_BEA5CA
ADDR_BEA5BA:
	LDA.w #$0003
	JSL.l $BE80A4
ADDR_BEA5C1:
	RTL

ADDR_BEA5C2:
	LDA.w #$0006
	JSL.l $BE80A4
	RTL

ADDR_BEA5CA:
	LDA.w $0E89,x
	BPL.b ADDR_BEA5D3
	EOR.w #$FFFF
	INC
ADDR_BEA5D3:
	CMP.w #$0200
	BCC.b ADDR_BEA5BA
	LDA.w #$0002
	JSL.l $BE80A4
	RTL

UNK_BEA5E0:
	db $02,$38,$01,$02,$3C,$01,$02,$40,$01,$02,$44,$01,$02,$48,$01,$02
	db $4C,$01,$02,$50,$01,$02,$54,$01,$03,$58,$01,$05,$5C,$01,$04,$60
	db $01,$03,$64,$01,$03,$68,$01,$83,$B9,$84,$02,$6C,$01,$01,$70,$01
	db $01,$74,$01,$01,$78,$01,$01,$7C,$01,$81,$C7,$A8,$BE,$80,$00

UNK_BEA61F:
	db $02,$58,$01,$83,$1B,$85,$84,$55,$A7,$BE,$02,$5C,$01,$02,$60,$01
	db $02,$64,$01,$02,$68,$01,$03,$6C,$01,$04,$70,$01,$83,$DA,$84,$84
	db $00,$00,$00,$83,$1B,$81,$80,$00

UNK_BEA647:
	db $02,$78,$01,$02

UNK_BEA64A:
	db $74,$01,$02,$70,$01,$02,$6C,$01,$02,$68,$01,$02,$64,$01,$83,$06
	db $85,$82,$EA,$A6,$80,$00

UNK_BEA661:
	db $0C,$E0,$00,$02,$30,$01,$81,$8E,$A6,$BE,$02,$34,$01,$02,$38,$01
	db $02,$3C,$01,$02,$40,$01,$02,$44,$01,$02,$48,$01,$02,$4C,$01,$02
	db $50,$01,$02,$54,$01,$02,$58,$01,$83,$1B,$81,$80,$00

ADDR_BEA68E:
	LDA.w #$0700
	STA.w $0EF1,x
	LDA.w #$0400
	STA.w $0F25,x
	LDA.w $1271,x
	BMI.b ADDR_BEA6A8
	LDA.w $0579
	ORA.w #$1000
	STA.w $0579
ADDR_BEA6A8:
	RTL

UNK_BEA6A9:
	db $81,$36,$B2,$BE,$02,$30,$01,$81,$D6,$A7,$BE,$02,$34,$01,$02,$38
	db $01,$02,$3C,$01,$02,$40,$01,$02,$44,$01,$02,$48,$01,$02,$4C,$01
	db $02,$50,$01,$02,$54,$01,$02,$58,$01,$81,$3F,$B2,$BE,$83,$1B,$85
	db $81,$65,$A7,$BE,$84,$55,$A7,$BE,$02,$5C,$01,$02,$60,$01,$02,$64
	db $01,$02,$68,$01,$03,$6C,$01,$04,$70,$01,$83,$DA,$84,$81,$37,$A7
	db $BE,$84,$00,$00,$00,$81,$15,$A7,$BE,$81,$24,$A7,$BE,$04,$74,$01
	db $03,$78,$01,$03,$7C,$01,$81,$78,$A7,$BE,$80,$00

ADDR_BEA715:
	LDA.w #$0100
	STA.w $1139,x
	LDA.w $1271,x
	BMI.b ADDR_BEA736
	STZ.w $1029,x
	RTL

ADDR_BEA724:
	LDA.w $1271,x
	BMI.b ADDR_BEA736
	LDY.b $84
	LDA.w $1699,y
	AND.w #$0004
	BEQ.b ADDR_BEA736
	JMP.w $BE9CB8

ADDR_BEA736:
	RTL

ADDR_BEA737:
	LDA.w $12A5,x
	AND.w #$1011
	CMP.w #$0001
	BNE.b ADDR_BEA736
	CPX.w #$0002
	BNE.b ADDR_BEA74E
	LDA.w #$0064
	JML.l $BFFB48

ADDR_BEA74E:
	LDA.w #$0033
	JML.l $BFFB48

ADDR_BEA755:
	LDA.w $1631,x
	BEQ.b ADDR_BEA75B
	RTL

ADDR_BEA75B:
	LDA.w #$0400
	STA.w $1139,x
	STZ.w $1105,x
	RTL

ADDR_BEA765:
	LDA.w $1209,x
	AND.w #$0007
	CMP.b $F3
	BPL.b ADDR_BEA770
	RTL

ADDR_BEA770:
	LDA.w #$0015
	JSL.l $BE80A4
	RTL

ADDR_BEA778:
	LDA.w $1271,x
	BMI.b ADDR_BEA780
	JMP.w $BE9C96

ADDR_BEA780:
	LDA.w #$0001
	JSL.l $BE80A4
	RTL

ADDR_BEA788:
	JSR.w ADDR_BEA795
	LDA.w #$0A00
	STA.w $0EF1,x
	STA.w $0EF1,y
	RTL

ADDR_BEA795:
	JSL.l $B881FE
	LDX.w #$0002
	LDY.w #$0004
	LDA.w $056F
	CMP.w #$0001
	BEQ.b ADDR_BEA7B4
	LDA.w #$0004
	STA.w $1029,x
	LDA.w #$0003
	STA.w $1029,y
	RTS

ADDR_BEA7B4:
	LDA.w #$0003
	STA.w $1029,x
	LDA.w #$0004
	STA.w $1029,y
	RTS

ADDR_BEA7C1:
	LDA.w #$085A
	STA.w $0EF1,x
	LDA.w $1271,x
	BMI.b ADDR_BEA7D5
	LDA.w $0579
	ORA.w #$1000
	STA.w $0579
ADDR_BEA7D5:
	RTL

ADDR_BEA7D6:
	LDA.w #$0700
	STA.w $0EF1,x
	LDA.w $1271,x
	BMI.b ADDR_BEA7EA
	LDA.w $0579
	ORA.w #$1000
	STA.w $0579
ADDR_BEA7EA:
	RTL

ADDR_BEA7EB:
	LDA.w #$0700
	STA.w $0EF1,x
	LDA.w #$005F
	JSL.l $BFFB66
	RTL

ADDR_BEA7F9:
	LDA.w #$0700
	STA.w $0EF1,x
	LDA.w #$005F
	JSL.l $BFFB66
	RTL

ADDR_BEA807:
	LDA.w #$0800
	STA.w $0EF1,x
	LDA.w #$005F
	JSL.l $BFFB66
	RTL

UNK_BEA815:
	db $03,$48,$07,$03,$4C,$07,$03,$50,$07,$03,$54,$07,$0C,$58,$07,$02
	db $5C,$07,$90,$65,$02,$60,$07,$02,$64,$07,$02,$68,$07,$02,$6C,$07
	db $90,$3F,$82,$62,$A8,$80,$00

UNK_BEA83C:
	db $03,$70,$07,$03,$74,$07,$03,$78,$07,$13,$7C,$07,$04,$80,$07,$0A
	db $7C,$07,$82,$62,$A8,$80,$00,$04,$70,$07,$04,$74,$07,$04,$78,$07
	db $09,$7C,$07,$05,$80,$07,$04,$30,$01,$81,$88,$A7,$BE,$01,$34,$01
	db $02,$38,$01,$01,$3C,$01,$02,$40,$01,$01,$44,$01,$02,$48,$01,$01
	db $4C,$01,$02,$50,$01,$01,$54,$01,$02,$58,$01,$01,$5C,$01,$02,$60
	db $01,$01,$64,$01,$02,$68,$01,$01,$6C,$01,$02,$70,$01,$83,$41,$85
	db $02,$74,$01,$02,$78,$01,$02,$7C,$01,$83,$1B,$81,$80,$00

UNK_BEA8AA:
	db $02,$80,$01,$02,$84,$01,$81,$CF,$A8,$BE,$02,$84,$01,$02,$80,$01
	db $81,$C7,$A8,$BE,$80,$00

ADDR_BEA8C0:
	LDA.w #$0003
	STA.w $1E1D
	RTL

ADDR_BEA8C7:
	LDA.w #$0001
	JSL.l $BE80A4
	RTL

ADDR_BEA8CF:
	LDA.w $0C69,x
	EOR.w #$4000
	STA.w $0C69,x
	RTL

ADDR_BEA8D9:
	LDA.w $0C69,x
	EOR.w #$8000
	STA.w $0C69,x
	RTL

UNK_BEA8E3:
	db $01,$8C,$00,$01,$90,$00,$01,$94,$00,$01,$98,$00,$01,$9C,$00,$01
	db $A0,$00,$01,$A4,$00,$01,$A8,$00,$01,$AC,$00,$01,$B0,$00,$01,$B4
	db $00,$01,$B8,$00,$01,$BC,$00,$01,$08,$00,$01,$C4,$00,$01,$C8,$00
	db $01,$CC,$00,$01,$D0,$00,$01,$D4,$00,$01,$D8,$00,$01,$DC,$00,$80
	db $00

UNK_BEA924:
	db $01,$5C,$0F,$81,$17,$89,$BE,$05,$5C,$0F,$05,$60,$0F,$05,$64,$0F
	db $05,$68,$0F,$0A,$9C,$0B,$09,$A0,$0B,$08,$A4,$0B,$07,$A8,$0B,$90
	db $59,$03,$AC,$0B,$81,$DD,$A9,$BE,$06,$B0,$0B,$0C,$B4,$0B,$05,$B8
	db $0B,$10,$BC,$0B,$05,$B8,$0B,$0C,$B4,$0B,$06,$B0,$0B,$03,$AC,$0B
	db $06,$A8,$0B,$90,$59,$06,$A4,$0B,$06,$A8,$0B,$03,$AC,$0B,$81,$DD
	db $A9,$BE,$06,$B0,$0B,$0C,$B4,$0B,$05,$B8,$0B,$10,$BC,$0B,$05,$B8
	db $0B,$0C,$B4,$0B,$06,$B0,$0B,$03,$AC,$0B,$06,$A8,$0B,$90,$59,$06
	db $A4,$0B,$06,$A8,$0B,$03,$AC,$0B,$81,$DD,$A9,$BE,$06,$B0,$0B,$0C
	db $B4,$0B,$05,$B8,$0B,$10,$BC,$0B,$05,$B8,$0B,$0C,$B4,$0B,$06,$B0
	db $0B,$03,$AC,$0B,$06,$A8,$0B,$06,$A4,$0B,$08,$A0,$0B,$0A,$9C,$0B
	db $0A,$98,$0B,$81,$31,$8B,$BE,$0A,$94,$0B,$04,$94,$0B,$83,$9E,$84
	db $81,$0A,$8B,$BE,$63,$94,$0B,$80,$00

ADDR_BEA9DD:
	LDY.w #$85D1
	JSL.l $B5802F
	RTL

UNK_BEA9E5:
	db $02,$08,$0E,$01,$0C,$0E,$02,$10,$0E,$01,$14,$0E,$02,$18,$0E,$01
	db $1C,$0E,$02,$20,$0E,$01,$24,$0E,$02,$28,$0E,$01,$2C,$0E,$02,$30
	db $0E,$01,$34,$0E,$80,$00

UNK_BEAA0B:
	db $81,$36,$B2,$BE,$8B,$03,$90,$0C,$0C,$00,$0B,$00,$81,$D6,$A7,$BE

UNK_BEAA1B:
	db $8B,$03,$90,$0C,$0C,$00,$0B,$00,$83,$DA,$84,$8B,$03,$90,$0C,$0C
	db $00,$0B,$00,$81,$BD,$90,$BE,$80,$00

UNK_BEAA34:
	db $8B,$04,$88,$0C,$0B,$00,$09,$00,$81,$CF,$A8,$BE,$8B,$04,$88,$0C
	db $0B,$00,$09,$00,$81,$BD,$90,$BE,$80,$00

UNK_BEAA4E:
	db $81,$8A,$8E,$BE,$8B,$03,$74,$0C,$0C,$00,$F8,$FF,$8B,$02,$78,$0C
	db $10,$00,$F9,$FF,$8B,$02,$7C,$0C,$10,$00,$FF,$FF,$8B,$02,$80,$0C
	db $0E,$00,$03,$00,$8B,$02,$84,$0C,$0C,$00,$08,$00,$81,$BD,$90,$BE
	db $80,$00

UNK_BEAA80:
	db $81,$8A,$8E,$BE,$8B,$03,$84,$0C,$0C,$00,$08,$00,$8B,$02,$80,$0C
	db $0E,$00,$03,$00,$8B,$02,$7C,$0C,$10,$00,$FF,$FF,$8B,$02,$78,$0C
	db $10,$00,$F9,$FF,$8B,$02,$74,$0C,$0C,$00,$03,$00,$81,$E8,$8E,$BE
	db $81,$96,$9C,$BE,$80,$00

UNK_BEAAB6:
	db $84,$30,$91,$BE,$8B,$02,$88,$0C,$0B,$00,$09,$00,$80,$00

UNK_BEAAC4:
	db $84,$B3,$91,$BE,$8B,$03,$8C,$0C,$0C,$00,$0B,$00,$8B,$03,$90,$0C
	db $0C,$00,$09,$00,$81,$DA,$91,$BE,$8B,$03,$94,$0C,$0C,$00,$09,$00
	db $8B,$03,$98,$0C,$0C,$00,$0B,$00,$8B,$03,$9C,$0C,$0C,$00,$0B,$00
	db $8B,$03,$A0,$0C,$0C,$00,$09,$00,$8B,$03,$A4,$0C,$0C,$00,$09,$00
	db $81,$DA,$91,$BE,$8B,$03,$A8,$0C,$0C,$00,$0B,$00,$80,$00

UNK_BEAB12:
	db $81,$8A,$8E,$BE,$81,$98,$8E,$BE,$8B,$02,$AC,$0C,$08,$00,$0B,$00
	db $8B,$02,$B0,$0C,$04,$00,$0D,$00,$8B,$03,$B4,$0C,$F9,$FF,$0B,$00
	db $8B,$05,$B8,$0C,$F0,$FF,$09,$00,$8F,$59,$8B,$03,$BC,$0C,$F1,$FF
	db $09,$00,$8B,$02,$C0,$0C,$F4,$FF,$09,$00,$8B,$02,$C8,$0C,$00,$00
	db $09,$00,$81,$A7,$8E,$BE,$02,$D0,$0C,$03,$D8,$0C,$05,$E0,$0C,$03
	db $E4,$0C,$03,$E8,$0C,$03,$F0,$0C,$03,$F8,$0C,$81,$96,$9C,$BE,$80
	db $00

UNK_BEAB73:
	db $02,$38,$0D,$02,$3C,$0D,$02,$40,$0D,$02,$44,$0D,$02,$48,$0D,$84
	db $CE,$AB,$BE,$0F,$4C,$0D,$05,$50,$0D,$05,$54,$0D,$11,$58,$0D,$03
	db $5C,$0D,$03,$60,$0D,$03,$64,$0D,$11,$68,$0D,$03,$64,$0D,$03,$60
	db $0D,$03,$5C,$0D,$11,$58,$0D,$03,$54,$0D,$03,$50,$0D,$7F,$4C,$0D
	db $82,$82,$AB

UNK_BEABB6:
	db $02,$4C,$0D,$02,$48,$0D,$02,$44,$0D,$02,$40,$0D,$02,$3C,$0D,$02
	db $38,$0D,$81,$96,$9C,$BE,$80,$00

ADDR_BEABCE:
	LDY.b $84
	LDA.w $16ED,y
	AND.w #$0400
	BEQ.b ADDR_BEABD9
	RTL

ADDR_BEABD9:
	LDA.w #$0055
	JML.l $BE80A4

UNK_BEABE0:
	db $84,$39,$AC,$BE,$02,$38,$0D,$02,$3C,$0D,$02,$40,$0D,$02,$44,$0D
	db $03,$9C,$0D,$03,$A0,$0D,$03,$A4,$0D,$03,$A8,$0D

UNK_BEABFC:
	db $84,$39,$AC,$BE,$03,$90,$0D,$81,$78,$AC,$BE,$03,$94,$0D,$03,$98
	db $0D,$03,$6C,$0D,$03,$70,$0D,$03,$74,$0D,$03,$78,$0D,$03,$7C,$0D
	db $03,$80,$0D,$03,$84,$0D,$81,$78,$AC,$BE,$03,$88,$0D,$81,$78,$AC
	db $BE,$03,$8C,$0D,$81,$78,$AC,$BE,$82,$FC,$AB,$80,$00

ADDR_BEAC39:
	LDA.w $1271,x
	BMI.b ADDR_BEAC59
	LDA.w $0F25,x
	BEQ.b ADDR_BEAC4C
	LDA.w $0C69,x
	ASL
	EOR.w $0F25,x
	BMI.b ADDR_BEAC50
ADDR_BEAC4C:
	RTL

ADDR_BEAC4D:
	JMP.w $BE9C96

ADDR_BEAC50:
	LDA.w #$0058
	JSL.l $BE80A4
	RTL

ADDR_BEAC58:
	RTL

ADDR_BEAC59:
	LDA.w $1921
	CMP.w #$0057
	BEQ.b ADDR_BEAC77
	CMP.w #$005A
	BEQ.b ADDR_BEAC77
	CMP.w #$0056
	BEQ.b ADDR_BEAC77
	CMP.w #$0058
	BEQ.b ADDR_BEAC77
	LDA.w #$0001
	JSL.l $BE80A4
ADDR_BEAC77:
	RTL

ADDR_BEAC78:
	LDA.w $1271,x
	BMI.b ADDR_BEACA9
	LDA.w $0F25,x
	BEQ.b ADDR_BEAC8B
	LDA.w $0C69,x
	ASL
	EOR.w $0F25,x
	BMI.b ADDR_BEACA1
ADDR_BEAC8B:
	LDA.w $0E89,x
	BPL.b ADDR_BEAC94
	EOR.w #$FFFF
	INC
ADDR_BEAC94:
	CMP.w #$0030
	BCS.b ADDR_BEACA0
	LDA.w #$0057
	JSL.l $BE80A4
ADDR_BEACA0:
	RTL

ADDR_BEACA1:
	LDA.w #$0058
	JSL.l $BE80A4
	RTL

ADDR_BEACA9:
	RTL

UNK_BEACAA:
	db $84,$B3,$AC,$BE,$40,$8C,$0D,$80,$00

ADDR_BEACB3:
	LDA.w $1271,x
	BMI.b ADDR_BEACE4
	LDA.w $0F25,x
	BEQ.b ADDR_BEACD8
	BPL.b ADDR_BEACC3
	EOR.w #$FFFF
	INC
ADDR_BEACC3:
	CMP.w #$0060
	BMI.b ADDR_BEACD8
	LDA.w $0C69,x
	ASL
	EOR.w $0F25,x
	BMI.b ADDR_BEACDC
	LDA.w #$005A
	JSL.l $BE80A4
ADDR_BEACD8:
	RTL

ADDR_BEACD9:
	JMP.w $BE9C96

ADDR_BEACDC:
	LDA.w #$0058
	JSL.l $BE80A4
	RTL

ADDR_BEACE4:
	RTL

ADDR_BEACE5:
	LDA.w #$0057
	JSL.l $BE80A4
	RTL

UNK_BEACED:
	db $03,$8C,$0D,$81,$CF,$A8,$BE,$03,$8C,$0D,$81,$E5,$AC,$BE,$80,$00

UNK_BEACFD:
	db $81,$A5,$AE,$BE,$01,$D8,$0B,$81,$73,$8B,$BE,$03,$D8,$0B,$13,$E0
	db $0B,$03,$E8,$0B,$03,$F0,$0B,$03,$F8,$0B,$81,$EB,$AE,$BE,$03,$FC
	db $0B,$03,$00,$0C,$81,$13,$85,$BE,$90,$59,$03,$04,$0C,$03,$0C,$0C
	db $03,$14,$0C,$81,$9D,$AE,$BE,$03,$1C,$0C,$83,$DA,$84,$04,$20,$0C
	db $04,$24,$0C,$16,$28,$0C,$81,$D2,$AE,$BE,$03,$2C,$0C,$03,$30,$0C
	db $03,$34,$0C,$83,$13,$85,$03,$30,$0C,$03,$2C,$0C,$90,$4D,$83,$DA
	db $84,$81,$F2,$AE,$BE,$0A,$28,$0C,$81,$E4,$AE,$BE,$03,$2C,$0C,$03
	db $30,$0C,$03,$34,$0C,$83,$13,$85,$03,$30,$0C,$03,$2C,$0C,$90,$4D
	db $83,$DA,$84,$81,$F2,$AE,$BE,$09,$28,$0C,$81,$E4,$AE,$BE,$03,$2C
	db $0C,$03,$30,$0C,$03,$34,$0C,$83,$13,$85,$03,$30,$0C,$03,$2C,$0C
	db $90,$4D,$83,$DA,$84,$81,$F2,$AE,$BE,$08,$28,$0C,$81,$E4,$AE,$BE
	db $03,$2C,$0C,$03,$30,$0C,$03,$34,$0C,$83,$13,$85,$03,$30,$0C,$03
	db $2C,$0C,$90,$4D,$83,$DA,$84,$81,$F2,$AE,$BE,$07,$28,$0C,$81,$E4
	db $AE,$BE,$03,$2C,$0C,$03,$30,$0C,$03,$34,$0C,$83,$13,$85,$03,$30
	db $0C,$03,$2C,$0C,$90,$4D,$83,$DA,$84,$81,$F2,$AE,$BE,$06,$28,$0C
	db $81,$E4,$AE,$BE,$03,$2C,$0C,$03,$30,$0C,$03,$34,$0C,$83,$13,$85
	db $03,$30,$0C,$03,$2C,$0C,$90,$4D,$83,$DA,$84,$81,$F2,$AE,$BE,$05
	db $28,$0C,$81,$E4,$AE,$BE,$03,$2C,$0C,$03,$30,$0C,$03,$34,$0C,$83
	db $13,$85,$03,$30,$0C,$03,$2C,$0C,$90,$4D,$83,$DA,$84,$81,$F2,$AE
	db $BE,$04,$28,$0C,$81,$E4,$AE,$BE,$03,$2C,$0C,$03,$30,$0C,$03,$34
	db $0C,$83,$13,$85,$03,$30,$0C,$03,$2C,$0C,$90,$4D,$83,$DA,$84,$81
	db $F2,$AE,$BE,$03,$28,$0C,$81,$E4,$AE,$BE,$03,$2C,$0C,$03,$30,$0C
	db $03,$34,$0C,$83,$13,$85,$03,$30,$0C,$03,$2C,$0C,$90,$4D,$83,$DA
	db $84,$81,$F2,$AE,$BE,$81,$31,$8B,$BE,$02,$28,$0C,$81,$E4,$AE,$BE
	db $03,$2C,$0C,$03,$30,$0C,$03,$34,$0C,$83,$13,$85,$03,$30,$0C,$03
	db $2C,$0C,$90,$4D,$83,$DA,$84,$81,$F2,$AE,$BE,$48,$28,$0C,$80,$00

ADDR_BEAE9D:
	LDY.w #$85ED
	JSL.l $B5804C
	RTL

ADDR_BEAEA5:
	LDA.w $1271,x
	BMI.b ADDR_BEAED1
	STZ.w $0EF1,x								; Note: This instruction is not in DKC1 (USA V1.0/V1.1 anyway)
	STZ.w $0E89,x
	STZ.w $0F25,x
	LDA.w #$0021
	STA.w $1029,x
	LDA.w $0B19,x
	SEC
	SBC.w $088B
	AND.w #$0080
	LSR
	XBA
	EOR.w $0C69,x
	AND.w #$4000
	EOR.w $0C69,x
	STA.w $0C69,x
ADDR_BEAED1:
	RTL

ADDR_BEAED2:
	LDA.w #$0300
	BIT.w $0C69,x
	BVC.b ADDR_BEAEDE
	EOR.w #$FFFF
	INC
ADDR_BEAEDE:
	STA.w $0E89,x
	STA.w $0F25,x
	LDA.w #$0200
	STA.w $0EF1,x
	RTL

ADDR_BEAEEB:
	LDA.w #$0400
	STA.w $0EF1,x
	RTL

ADDR_BEAEF2:
	LDY.w #$868B
	JSL.l $B5801C
	LDY.w #$869F
	JSL.l $B5801C
	RTL

UNK_BEAF01:
	db $84,$92,$A5,$BE,$04,$54,$09,$81,$14,$A5,$BE,$04,$58,$09,$04,$5C
	db $09,$04,$60,$09,$04,$64,$09,$04,$68,$09,$04,$6C,$09,$04,$70,$09
	db $04,$74,$09,$04,$78,$09,$04,$7C,$09,$04,$80,$09,$04,$84,$09,$04
	db $88,$09,$04,$8C,$09,$04,$90,$09,$04,$94,$09,$04,$98,$09,$04,$9C
	db $09,$04,$A0,$09,$04,$A4,$09,$04,$A8,$09,$05,$5C,$0F,$05,$60,$0F
	db $05,$64,$0F,$90,$59,$05,$68,$0F,$05,$6C,$0F,$05,$70,$0F,$05,$74
	db $0F,$05,$78,$0F,$05,$7C,$0F,$05,$80,$0F,$05,$84,$0F,$05,$88,$0F
	db $05,$8C,$0F,$90,$16,$02,$90,$0F,$02,$94,$0F,$02,$98,$0F,$02,$9C
	db $0F,$02,$98,$0F,$02,$94,$0F,$90,$16,$02,$90,$0F,$02,$94,$0F,$02
	db $98,$0F,$03,$9C,$0F,$03,$98,$0F,$03,$94,$0F,$90,$16,$03,$90,$0F
	db $03,$94,$0F,$04,$98,$0F,$05,$9C,$0F,$06,$98,$0F,$16,$94,$0F,$04
	db $8C,$0F,$04,$88,$0F,$04,$84,$0F,$04,$80,$0F,$04,$7C,$0F,$04,$78
	db $0F,$04,$74,$0F,$04,$70,$0F,$04,$6C,$0F,$04,$68,$0F,$04,$64,$0F
	db $04,$60,$0F,$04,$5C,$0F,$80,$00

UNK_BEAFD9:
	db $84,$A9,$8D,$BE,$09,$C0,$0D,$09,$C4,$0D,$09,$C8,$0D,$09,$CC,$0D
	db $09,$C8,$0D,$09,$C4,$0D,$80,$00

UNK_BEAFF1:
	db $04,$A0,$0F,$04,$A4,$0F,$04,$A8,$0F,$04,$BC,$0F,$04,$C0,$0F,$04
	db $C4,$0F,$84,$82,$8C,$BE,$24,$C8,$0F,$04,$CC,$0F,$34,$D0,$0F,$04
	db $CC,$0F,$04,$C8,$0F,$06,$CC,$0F,$44,$D0,$0F,$04,$CC,$0F,$82,$07
	db $B0,$80,$00

UNK_BEB024:
	db $04,$C4,$0F,$04,$C0,$0F,$04,$BC,$0F,$04,$A8,$0F,$04,$A4,$0F,$04
	db $A0,$0F,$81,$AA,$8C,$BE,$80,$00

UNK_BEB03C:
	db $03,$38,$0C,$84,$FB,$8C,$BE,$03,$3C,$0C,$03,$40,$0C,$03,$44,$0C
	db $03,$48,$0C,$03,$4C,$0C,$03,$50,$0C,$03,$54,$0C,$03,$58,$0C,$03
	db $5C,$0C,$03,$60,$0C,$03,$64,$0C,$03,$68,$0C,$03,$6C,$0C,$03,$70
	db $0C,$80,$00

UNK_BEB06F:
	db $84,$72,$8D,$BE,$02,$D8,$0D,$02,$DC,$0D,$02,$E0,$0D,$02,$E4,$0D
	db $02,$E8,$0D,$02,$EC,$0D,$02,$F0,$0D,$02,$F4,$0D,$02,$F8,$0D,$02
	db $FC,$0D,$02,$00,$0E,$02,$04,$0E,$81,$40,$8D,$BE,$80,$00

UNK_BEB09D:
	db $84,$72,$8D,$BE,$02,$04,$0E,$02,$00,$0E,$02,$FC,$0D,$02,$F8,$0D
	db $02,$F4,$0D,$02,$F0,$0D,$02,$EC,$0D,$02,$E8,$0D,$02,$E4,$0D,$02
	db $E0,$0D,$02,$DC,$0D,$02,$D8,$0D,$81,$40,$8D,$BE,$80,$00

UNK_BEB0CB:
	db $02,$D0,$0D,$02,$D4,$0D,$81,$CF,$A8,$BE,$02,$D4,$0D,$02,$D0,$0D
	db $81,$EF,$8D,$BE,$80,$00

UNK_BEB0E1:
	db $02,$AC,$09,$81,$2E,$A0,$BE,$02,$B0,$09,$81,$E1,$9F,$BE,$02,$B4
	db $09,$81,$2E,$A0,$BE,$02,$B8,$09,$81,$E1,$9F,$BE,$02,$BC,$09,$81
	db $2E,$A0,$BE,$02,$C0,$09,$81,$E1,$9F,$BE,$02,$C4,$09,$81,$2E,$A0
	db $BE,$02,$C8,$09,$81,$E1,$9F,$BE,$02,$CC,$09,$81,$2E,$A0,$BE,$02
	db $D0,$09,$81,$E1,$9F,$BE,$02,$D4,$09,$81,$2E,$A0,$BE,$02,$D8,$09
	db $81,$E1,$9F,$BE,$02,$DC,$09,$81,$2E,$A0,$BE,$02,$E0,$09,$81,$E1
	db $9F,$BE,$02,$E4,$09,$81,$2E,$A0,$BE,$02,$E8,$09,$81,$E1,$9F,$BE
	db $80,$00

UNK_BEB153:
	db $02,$50,$0A,$83,$1B,$85,$84,$55,$A7,$BE,$02,$54,$0A,$02,$58,$0A
	db $02,$5C,$0A,$02,$60,$0A,$02,$64,$0A,$83,$DA,$84,$84,$00,$00,$00
	db $83,$1B,$81,$80,$00

UNK_BEB178:
	db $02,$6C,$0A,$02,$68,$0A,$02,$64,$0A,$83,$06,$85,$82,$FF,$B1,$80
	db $00

UNK_BEB189:
	db $02,$20,$0A,$0A,$24,$0A,$02,$28,$0A,$02,$2C,$0A,$81,$8E,$A6,$BE
	db $02,$30,$0A,$02,$34,$0A,$02,$38,$0A,$02,$3C,$0A,$02,$40,$0A,$02
	db $44,$0A,$02,$48,$0A,$02,$4C,$0A,$02,$50,$0A,$02,$54,$0A,$83,$1B
	db $81,$80,$00

UNK_BEB1BC:
	db $81,$36,$B2,$BE,$01,$24,$0A,$01,$2C,$0A,$81,$C1,$A7,$BE,$02,$30
	db $0A,$02,$34,$0A,$02,$38,$0A,$02,$3C,$0A,$02,$40,$0A,$02,$44,$0A
	db $02,$48,$0A,$02,$4C,$0A,$02,$50,$0A,$81,$3F,$B2,$BE,$83,$1B,$85
	db $02,$54,$0A,$84,$55,$A7,$BE,$02,$58,$0A,$02,$5C,$0A,$02,$60,$0A
	db $02,$64,$0A,$83,$DA,$84,$81,$37,$A7,$BE,$84,$00,$00,$00,$81,$27
	db $B2,$BE,$81,$24,$A7,$BE,$02,$68,$0A,$02,$6C,$0A,$03,$20,$0A,$08
	db $24,$0A,$03,$20,$0A,$81,$78,$A7,$BE,$80,$00

ADDR_BEB227:
	LDA.w #$0100
	STA.w $1139,x
	LDA.w $1271,x
	BMI.b ADDR_BEB235
	STZ.w $1029,x
ADDR_BEB235:
	RTL

ADDR_BEB236:
	LDX.b $84
	LDA.w #$0004
	STA.w $16E5,x
	RTL

ADDR_BEB23F:
	LDX.b $84
	STZ.w $16E5,x
	RTL

UNK_BEB245:
	db $02,$30,$0A,$02,$34,$0A,$02,$38,$0A,$02,$3C,$0A,$02,$40,$0A,$02
	db $44,$0A,$02,$48,$0A,$02,$4C,$0A,$02,$50,$0A,$02,$54,$0A,$03,$58
	db $0A,$03,$5C,$0A,$04,$60,$0A,$83,$B9,$84,$02,$64,$0A,$02,$68,$0A
	db $02,$6C,$0A,$81,$C7,$A8,$BE,$80,$00

UNK_BEB27E:
	db $03,$04,$0F,$03,$08,$0F,$03,$0C,$0F,$03,$10,$0F,$03,$14,$0F,$03
	db $18,$0F,$05,$1C,$0F,$02,$20,$0F,$90,$65,$02,$24,$0F,$02,$28,$0F
	db $02,$2C,$0F,$02,$30,$0F,$02,$34,$0F,$90,$3E,$82,$F2,$B2,$80,$00

UNK_BEB2AE:
	db $03,$38,$0F,$03,$3C,$0F,$03,$40,$0F,$03,$44,$0F,$03,$48,$0F,$0D
	db $4C,$0F,$03,$50,$0F,$03,$54,$0F,$82,$F2,$B2,$80,$00,$02,$04,$0F
	db $02,$08,$0F,$02,$0C,$0F,$02,$10,$0F,$02,$14,$0F,$02,$18,$0F,$02
	db $1C,$0F,$02,$20,$0F,$02,$24,$0F,$02,$28,$0F,$02,$2C,$0F,$02,$30
	db $0F,$02,$34,$0F,$01,$20,$0A,$01,$24,$0A,$01,$28,$0A,$01,$2C,$0A
	db $02,$30,$0A,$01,$34,$0A,$02,$38,$0A,$01,$3C,$0A,$02,$40,$0A,$01
	db $44,$0A,$02,$48,$0A,$01,$4C,$0A,$02,$50,$0A,$01,$54,$0A,$02,$58
	db $0A,$01,$5C,$0A,$02,$60,$0A,$01,$64,$0A,$83,$41,$85,$02,$68,$0A
	db $02,$6C,$0A,$03,$20,$0A,$08,$24,$0A,$03,$20,$0A,$83,$1B,$81,$80
	db $00

UNK_BEB33F:
	db $02,$64,$09,$02,$6C,$09,$81,$CF,$A8,$BE,$02,$6C,$09,$02,$64,$09
	db $81,$C7,$A8,$BE,$80,$00

UNK_BEB355:
	db $90,$43,$81,$EA,$9C,$BE,$81,$08,$9D,$BE,$02,$00,$0B,$83,$E3,$84
	db $02,$00,$0B,$83,$13,$85,$02,$00,$0B,$83,$EE,$84,$02,$00,$0B,$81
	db $B5,$9D,$BE,$80,$00

UNK_BEB37A:
	db $01,$EC,$09,$01,$F0,$09,$01,$F4,$09,$01,$F8,$09,$01,$FC,$09,$01
	db $00,$0A,$01,$04,$0A,$01,$08,$0A,$01,$0C,$0A,$01,$10,$0A,$01,$14
	db $0A,$01,$18,$0A,$01,$1C,$0A,$80,$00

UNK_BEB3A3:
	db $90,$43,$81,$AE,$9D,$BE,$20,$00,$0B,$83,$E3,$84,$10,$00,$0B,$81
	db $CE,$9D,$BE,$80,$00

UNK_BEB3B8:
	db $02,$38,$0C,$02,$3C,$0C,$02,$40,$0C,$02,$44,$0C,$02,$48,$0C,$02
	db $4C,$0C,$02,$50,$0C,$02,$54,$0C,$02,$58,$0C,$02,$5C,$0C,$02,$60
	db $0C,$02,$64,$0C,$02,$68,$0C,$02,$6C,$0C,$02,$70,$0C,$80,$00

UNK_BEB3E7:
	db $90,$43,$0B,$00,$0B,$81,$36,$98,$BE,$81,$EA,$9C,$BE,$02,$00,$0B
	db $81,$56,$99,$BE,$81,$37,$99,$BE,$81,$62,$A8,$B6,$05,$C0,$0A,$05
	db $C4,$0A,$05,$C8,$0A,$05,$CC,$0A,$05,$D0,$0A,$83,$DA,$84,$90,$4E
	db $81,$45,$99,$BE,$05,$D4,$0A,$05,$D8,$0A,$05,$DC,$0A,$83,$DA,$84
	db $90,$4E,$81,$3E,$99,$BE,$06,$E0,$0A,$83,$DA,$84,$90,$4E,$81,$4C
	db $99,$BE,$0C,$E4,$0A,$06,$E8,$0A,$06,$EC,$0A,$81,$74,$A8,$B6,$81
	db $83,$B4,$BE,$06,$F0,$0A,$06,$F4,$0A,$06,$F8,$0A,$06,$FC,$0A,$05
	db $FC,$0A,$05,$F8,$0A,$05,$F4,$0A,$05,$F4,$0A,$05,$F8,$0A,$05,$FC
	db $0A,$04,$FC,$0A,$04,$F8,$0A,$04,$F4,$0A,$04,$F4,$0A,$04,$F8,$0A
	db $04,$FC,$0A,$81,$32,$99,$BE,$83,$1B,$81,$80,$00

ADDR_BEB483:
	LDA.w #$0003
	JSL.l $BFFB48
	LDY.w #$8611
	JSL.l $B5804C
	RTL

UNK_BEB492:
	db $84,$A7,$94,$BE,$03,$B8,$0A,$03,$BC,$0A,$81,$02,$92,$BE,$80,$00

UNK_BEB4A2:
	db $84,$A7,$94,$BE,$03,$B8,$0A,$81,$4D,$92,$BE,$02,$B8,$0A,$03,$BC
	db $0A,$84,$00,$00,$00,$03,$BC,$0A,$81,$41,$92,$BE,$02,$80,$0A,$02
	db $7C,$0A,$02,$78,$0A,$81,$67,$92,$BE,$81,$51,$92,$BE,$80,$00

UNK_BEB4D1:
	db $84,$6D,$9A,$BE,$06,$04,$0B,$06,$08,$0B,$06,$0C,$0B,$90,$41,$06
	db $10,$0B,$06,$14,$0B,$06,$18,$0B,$81,$EF,$B4,$BE,$80,$00

ADDR_BEB4EF:
	LDA.w #$000B
	JSL.l $BE80A4
	RTL

UNK_BEB4F7:
	db $84,$6D,$9A,$BE,$04,$1C,$0B,$04,$20,$0B,$03,$24,$0B,$03,$28,$0B
	db $02,$2C,$0B,$02,$30,$0B,$02,$34,$0B,$02,$38,$0B,$02,$3C,$0B,$02
	db $40,$0B,$02,$44,$0B,$01,$48,$0B,$01,$1C,$0B,$02,$20,$0B,$02,$24
	db $0B,$02,$28,$0B,$02,$2C,$0B,$02,$30,$0B,$02,$34,$0B,$02,$38,$0B
	db $02,$3C,$0B,$02,$40,$0B,$02,$44,$0B,$02,$48,$0B,$02,$1C,$0B,$02
	db $20,$0B,$02,$24,$0B,$03,$28,$0B,$03,$2C,$0B,$03,$30,$0B,$03,$34
	db $0B,$03,$38,$0B,$04,$3C,$0B,$04,$40,$0B,$04,$44,$0B,$04,$48,$0B
	db $04,$18,$0B,$90,$43,$04,$14,$0B,$04,$10,$0B,$03,$14,$0B,$03,$18
	db $0B,$02,$48,$0B,$02,$44,$0B,$02,$40,$0B,$02,$3C,$0B,$02,$38,$0B
	db $02,$34,$0B,$02,$30,$0B,$02,$2C,$0B,$02,$28,$0B,$02,$24,$0B,$02
	db $20,$0B,$02,$1C,$0B,$02,$48,$0B,$02,$44,$0B,$02,$40,$0B,$02,$3C
	db $0B,$02,$38,$0B,$02,$34,$0B,$02,$30,$0B,$02,$2C,$0B,$02,$28,$0B
	db $02,$24,$0B,$02,$20,$0B,$02,$1C,$0B,$02,$48,$0B,$02,$44,$0B,$02
	db $40,$0B,$03,$3C,$0B,$03,$38,$0B,$03,$34,$0B,$03,$30,$0B,$03,$2C
	db $0B,$04,$28,$0B,$04,$24,$0B,$04,$20,$0B,$04,$1C,$0B,$04,$18,$0B
	db $90,$43,$04,$14,$0B,$04,$10,$0B,$03,$14,$0B,$03,$18,$0B,$80,$00

UNK_BEB5F7:
	db $02,$50,$0A,$83,$2C,$85,$01,$54,$0A,$01,$58,$0A,$01,$5C,$0A,$01
	db $60,$0A,$01,$64,$0A,$83,$DA,$84,$01,$68,$0A,$02,$6C,$0A,$81,$A0
	db $9C,$BE,$80,$00

UNK_BEB61B:
	db $84,$A7,$94,$BE,$01,$70,$0A,$01,$78,$0A,$01,$7C,$0A,$01,$80,$0A
	db $01,$84,$0A,$02,$88,$0A,$02,$8C,$0A,$02,$90,$0A,$81,$AD,$92,$BE
	db $02,$94,$0A,$02,$98,$0A,$02,$A4,$0A,$02,$A8,$0A,$02,$AC,$0A,$02
	db $B0,$0A,$02,$B4,$0A,$81,$B4,$92,$BE,$82,$2E,$B6,$80,$00

UNK_BEB659:
	db $28,$00,$0D,$08,$04,$0D,$08,$08,$0D,$28,$0C,$0D,$08,$08,$0D,$06
	db $04,$0D,$06,$08,$0D,$06,$0C,$0D,$14,$10,$0D,$08,$0C,$0D,$08,$08
	db $0D,$08,$04,$0D,$80,$00

UNK_BEB67F:
	db $06,$28,$0D,$06,$2C,$0D,$06,$30,$0D,$06,$34,$0D,$06,$30,$0D,$06
	db $2C,$0D,$80,$00

UNK_BEB693:
	db $08,$FC,$0C,$08,$FC,$0C,$08,$FC,$0C,$08,$FC,$0C,$80,$00

UNK_BEB6A1:
	db $02,$54,$0B,$84,$2C,$96,$BE,$02,$58,$0B,$02,$5C,$0B,$02,$60,$0B
	db $02,$64,$0B,$02,$68,$0B,$02,$6C,$0B,$02,$70,$0B,$02,$74,$0B,$02
	db $78,$0B,$02,$7C,$0B,$02,$80,$0B,$02,$84,$0B,$02,$88,$0B,$02,$8C
	db $0B,$02,$90,$0B,$80,$00

UNK_BEB6D7:
	db $03,$4C,$0B,$03,$50,$0B,$02,$54,$0B,$83,$DA,$84,$81,$36,$97,$BE
	db $81,$FB,$B6,$BE,$05,$54,$0B,$81,$1C,$B7,$BE,$08,$54,$0B,$81,$96
	db $9C,$BE,$80,$00

ADDR_BEB6FB:
	LDA.w #$0007
	STA.w $1029,x
	STZ.w $0F25,x
	LDY.b $84
	LDA.w $1699,y
	AND.w #$FFEF
	STA.w $1699,y
	LDA.w #$0400
	JSR.w $BE96FE
	LDA.w #$0600
	STA.w $0EF1,x
	RTL

ADDR_BEB71C:
	LDA.w #$FA00
	STA.w $0EF1,x
	RTL

UNK_BEB723:
	db $02,$EC,$09,$02,$F0,$09,$02,$F4,$09,$81,$EA,$9E,$BE,$02,$F8,$09
	db $02,$FC,$09,$81,$EA,$9E,$BE,$02,$00,$0A,$02,$04,$0A,$81,$EA,$9E
	db $BE,$02,$08,$0A,$02,$0C,$0A,$81,$EA,$9E,$BE,$02,$10,$0A,$02,$14
	db $0A,$81,$5F,$9E,$BE,$81,$EA,$9E,$BE,$02,$18,$0A,$02,$1C,$0A,$81
	db $6B,$9E,$BE,$81,$EA,$9E,$BE,$80,$00

UNK_BEB76C:
	db $01,$EC,$09,$01,$F0,$09,$01,$F4,$09,$01,$F8,$09,$01,$FC,$09,$01
	db $00,$0A,$01,$04,$0A,$01,$08,$0A,$01,$0C,$0A,$01,$10,$0A,$01,$14
	db $0A,$01,$18,$0A,$01,$1C,$0A,$80,$00

UNK_BEB795:
	db $04,$F0,$28,$04,$F4,$28,$04,$F8,$28,$04,$FC,$28,$04,$00,$29,$04
	db $04,$29,$04,$08,$29,$04,$0C,$29,$80,$00

UNK_BEB7AF:																	; Note: This animation script is cut off by DKC3's code.
	db $06,$CC,$25,$06,$C8,$25,$06,$C4,$25,$06,$C0,$25,$1A,$BC,$25,$06
	db $C0,$25,$06,$C4,$25,$06,$C8,$25,$06,$CC,$25,$15,$78,$25,$06,$7C
	db $25,$06,$80,$25,$06,$84,$25,$06,$88,$25,$06,$8C,$25,$06,$90,$25
	db $06,$94,$25,$06,$98,$25,$06,$9C,$25,$06,$A0,$25,$06,$A4,$25,$06
	db $A8,$25,$81,$14,$B9,$BE,$04,$AC,$25,$04,$B0,$25,$04,$B4,$25,$04
	db $B0
