25 lines
342 B
NASM
25 lines
342 B
NASM
; Bootloader
|
|
%include "boot.asm"
|
|
|
|
|
|
section KERNEL follows=BOOTSECTOR vstart=1000h
|
|
|
|
main:
|
|
mov bx, 156
|
|
call print_sint
|
|
|
|
;mov ax, -20
|
|
;mov dx, 0x0003
|
|
;mov cx, 10
|
|
;idiv cx
|
|
;mov bx, ax
|
|
;call print_uint
|
|
|
|
jmp $ ; Halt
|
|
|
|
; Libs
|
|
%include "print_util.asm"
|
|
|
|
; Data
|
|
HELLO_WORLD:
|
|
db 'Hello, world! :D', 0 |