date and readme update
[cortex-from-scratch] / start.asm
index 54d2b91..f2c16bc 100644 (file)
--- a/start.asm
+++ b/start.asm
@@ -1,4 +1,15 @@
-       .equ STACK_TOP, 0x20010000 /* 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,14 +36,6 @@ nmi:
 
 hardfault: 
        b hardfault
-.global stub
-stub:
-       ldr R0,=10
-       mov R1,#0
-       ldc2 11, cr0, [r1, #4]
-       udiv.w R2, R0, R1 
-
-       .data
-       .word 'x' 
+       
        .end