Fix [68 FF] window-clearing control code
This commit is contained in:
parent
72c6ba33a9
commit
85d982a9f6
17
m2-hack.asm
17
m2-hack.asm
|
@ -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)
|
||||
//---------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue