corrected gba bss clear

This commit is contained in:
Dave Murphy 2005-07-06 18:28:37 +00:00
parent f2458d113f
commit f9ed8756f9

View File

@ -100,10 +100,13 @@ DoEWRAMClear: @ Clear External WRAM to 0x00
@---------------------------------------------------------------------------------
SkipEWRAMClear: @ Clear Internal WRAM to 0x00
@---------------------------------------------------------------------------------
mov r0, #3
lsl r0, #24 @ r0 = 0x3000000
ldr r1, =__iwram_end
sub r1,r0
@---------------------------------------------------------------------------------
@ Clear BSS section to 0x00
@---------------------------------------------------------------------------------
ldr r0, =__bss_start
ldr r1, =__bss_end
sub r1, r0
bl ClearMem
@---------------------------------------------------------------------------------