Fix [68 FF] window-clearing control code

This commit is contained in:
jeffman 2018-11-29 21:31:16 -05:00
parent 72c6ba33a9
commit 85d982a9f6
1 changed files with 17 additions and 0 deletions

View File

@ -500,6 +500,23 @@ b 0x80D3A14
.org 0x80E0888 :: bl e06ec_redraw_psi
.org 0x80E0A16 :: bl e06ec_redraw_bash_psi
//---------------------------------------------------------
// [68 FF] - clear window
//---------------------------------------------------------
.org m2_clearwindowtiles
push {r4,lr}
mov r4,r0
// Clear out the pixel data
bl clear_window
// Reset the X/Y printing coordinates
mov r0,0
strh r0,[r4,0x2A]
strh r0,[r4,0x2C]
pop {r4,pc}
//---------------------------------------------------------
// BD918 hacks (battle setup)
//---------------------------------------------------------