37 lines
508 B
NASM
37 lines
508 B
NASM
%include "multiboot_header.asm"
|
|
%include "x86_vram.asm"
|
|
|
|
;;extern rust_entry
|
|
|
|
section .bss
|
|
|
|
stack resb 0x1000
|
|
|
|
section .data
|
|
|
|
section .text
|
|
|
|
%include "x86_vram_functions.asm"
|
|
|
|
global boot:
|
|
mov esp, stack + 0x1000
|
|
xor ebp, ebp
|
|
jmp main
|
|
|
|
main:
|
|
push word BG.CYAN | ' '
|
|
call clear
|
|
add esp, 2
|
|
;;call rust_entry
|
|
|
|
push dword BG.BLACK | FG.YELLOW | FG.BRIGHT | 'A'
|
|
push dword 0
|
|
push dword 0
|
|
call write_to_coord
|
|
add esp, 12
|
|
jmp halt
|
|
|
|
halt:
|
|
hlt
|
|
jmp halt
|