Add a small stack

This commit is contained in:
Philipp Oppermann
2015-08-13 13:04:06 +02:00
parent d474c8fa7f
commit 49f8c3c810

View File

@@ -17,6 +17,8 @@ global start
section .text
bits 32
start:
mov esp, stack_top
; print `OK` to screen
mov dword [0xb8000], 0x2f4b2f4f
hlt
@@ -29,3 +31,8 @@ error:
mov dword [0xb8008], 0x4f204f20
mov byte [0xb800a], al
hlt
section .bss
stack_bottom:
resb 64
stack_top: