mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 09:06:33 +11:00
enable interrupts at initialisation
This commit is contained in:
parent
c74707b1a6
commit
f312ff7df8
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,11 @@ b .Initialise_mb
|
||||||
ldr r2, =__iwram_rom_length_halfwords
|
ldr r2, =__iwram_rom_length_halfwords
|
||||||
swi 0x000B0000
|
swi 0x000B0000
|
||||||
|
|
||||||
|
@ enable interrupts
|
||||||
|
ldr r0, =0x04000208
|
||||||
|
ldr r1, =1
|
||||||
|
str r1, [r0]
|
||||||
|
|
||||||
@ put zero in both r0 and r1
|
@ put zero in both r0 and r1
|
||||||
@ This corresponds to zero for argc and argv (which would technically be required for a c runtime)
|
@ This corresponds to zero for argc and argv (which would technically be required for a c runtime)
|
||||||
ldr r0, =0
|
ldr r0, =0
|
||||||
|
|
Loading…
Add table
Reference in a new issue