ADDR_86F8AC_PLOK_E.asm
Yoshifanatic1_Plok-Disassembly/PLOK/GarbageData/ADDR_86F8AC_PLOK_E.asm
UNK_86F8AC:
	incbin "GarbageData/UNK_86F8AC_PLOK_E.bin"

ADDR_86FF97:
	LDA.b $86
	SEC
	SBC.w $0BA4
	STA.b $00
	LDA.b $88
	SEC
	SBC.w $0BA4
	STA.b $02
	LDA.w $0BFC
	SEC
	SBC.w $0BA4
	BPL.b ADDR_86FFB3
	LDA.w #$0000
ADDR_86FFB3:
	CMP.b $00
	BCS.b ADDR_86FFC2
	LDA.w $02A8
	ORA.w #$4000
	STA.w $02A8
	BRA.b ADDR_86FFCB

ADDR_86FFC2:
	LDA.w $02A8
	AND.w #$BFFF
	STA.w $02A8
ADDR_86FFCB:
	LDA.w $0BFC
	SEC
	SBC.w $0BA4
	BPL.b ADDR_86FFD7
	LDA.w #$0000
ADDR_86FFD7:
	CMP.b $02
	BCS.b ADDR_86FFE6
	LDA.w $02AA
	ORA.w #$4000
	STA.w $02AA
	BRA.b ADDR_86FFEF

ADDR_86FFE6:
	LDA.w $02AA
	AND.w #$BFFF
	STA.w $02AA
ADDR_86FFEF:
	RTL
