load zeros to correspond to argc and argv

This commit is contained in:
Corwin Kuiper 2021-05-29 12:18:34 +01:00
parent e0e3cdb403
commit 118b6e9a85

View file

@ -30,9 +30,15 @@ __start:
ldr r2, =__ewram_rom_length_halfwords ldr r2, =__ewram_rom_length_halfwords
swi 0x000B0000 swi 0x000B0000
@ put zero in both r0 and r1
@ This corresponds to zero for argc and argv (which would technically be required for a c runtime)
ldr r0, =0
mov r1, r0
@ load main and branch @ load main and branch
ldr r0, =main ldr r2, =main
bx r0 bx r2
.pool .pool
.include "interrupt_simple.s" .include "interrupt_simple.s"