diff --git a/src/main.s b/src/main.s index 219a93d..0fdd738 100644 --- a/src/main.s +++ b/src/main.s @@ -1,5 +1,5 @@ .text -.global main +.global _start @define constants, these can be used as symbols in your code .equ LED_CTL, 0x41210000 @@ -7,7 +7,7 @@ @the set and equ directives are equivalent and can be used interchangeably -main: +_start: ldr r1,=SW_DATA @load switch address from constant ldr r2,=LED_CTL @load LED address from constant loop: