X-Git-Url: https://robinkrens.nl/gitweb/?a=blobdiff_plain;f=start.asm;h=f2c16bc6a4fb5f88630cac2c8482f5251dff1e5e;hb=2047bc5ccc9d077af532eed0b148e4e0394adc15;hp=e4ca2374980bc8d6ada18aa3f0ace8d02490e22d;hpb=36f2cc60f527235aaf1b3af0888f3255c0214030;p=cortex-from-scratch diff --git a/start.asm b/start.asm index e4ca237..f2c16bc 100644 --- a/start.asm +++ b/start.asm @@ -1,4 +1,15 @@ - .equ STACK_TOP, 0x20008000 /* placed at 32kB, TODO: could place at top of SRAM? */ +/* (CC-BY-NC-SA) ROBIN KRENS - ROBIN @ ROBINKRENS.NL + * + * $LOG$ + * 2019/7/20 - ROBIN KRENS + * Initial version + * + * $DESCRIPTION$ + */ + +/* _start sets up the stack and jumps to the reset vector */ + + .equ STACK_TOP, 0x20010000 /* placed at 64kB, top of SRAM */ .text .global _start .global reset, nmi, hardfault @@ -25,16 +36,6 @@ nmi: hardfault: b hardfault -.global stub -stub: - mov r1, #'z' - ldr r0, [r1] - bx lr - /* ldr R0,=10 - mov R1,#0 - udiv.w R2, R0, R1 */ - - .data - .word 'x' + .end