1
0

Add %b to print() to print integers in binary

This commit is contained in:
2012-09-21 11:47:45 -04:00
parent 2bd44726e4
commit 583765fd7c
2 changed files with 13 additions and 0 deletions

17
boot/start.S Normal file
View File

@ -0,0 +1,17 @@
interrupt_vector_table:
b . @ Reset
b .
b . @ SWI instruction
b .
b .
b .
b .
b .
.comm stack, 0x10000 @ Reserve 64k stack in the BSS
_start:
.globl _start
ldr sp, =stack+0x10000 @ Set up the stack
bl main @ Jump to the main function
1:
b 1b @ Halt