mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-20 01:17:20 -05:00
corrected gba bss clear
This commit is contained in:
parent
f2458d113f
commit
f9ed8756f9
|
|
@ -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
|
||||
|
||||
@---------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user