mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 10:51:30 +11:00
Sets an initial WAITCNT in rsrt0.S (#147)
This commit is contained in:
parent
093edc703f
commit
2956493be9
|
@ -23,6 +23,13 @@ __start:
|
|||
msr CPSR_c, r0
|
||||
ldr sp, =0x03007F00
|
||||
|
||||
@ Sets WAITCNT to the default used by GBA games
|
||||
@
|
||||
@ See https://problemkaputt.de/gbatek.htm#gbasystemcontrol for reference.
|
||||
ldr r0, =0x04000204
|
||||
ldr r1, =0x4317
|
||||
str r1, [r0]
|
||||
|
||||
@ copy .data and .text_iwram section to IWRAM
|
||||
ldr r0, =__iwram_lma @ source address
|
||||
ldr r1, =__iwram_start @ destination address
|
||||
|
|
Loading…
Reference in a new issue