Files
low-level-programming/keyboard.asm
2015-09-18 02:56:07 -07:00

31 lines
363 B
NASM

%include "multiboot_header.asm"
%include "x86_vram.asm"
extern c_entry
section .bss
stack resb 0x1000
section .data
[bits 32]
section .text
global boot:
mov esp, stack + 0x1000
xor ebp, ebp
jmp main
main:
push word BG.BLACK | ' '
call clear
add esp, 2
call c_entry
halt:
hlt
jmp halt
%include "x86_vram_functions.asm"