; Disassembly of file: kernel.o
; Fri Oct 28 06:21:35 2011
; Mode: 32 bits
; Syntax: YASM/NASM
; Instruction set: 80386
[bits 16]
[org 0]


	mov ax,cs
	mov ds,ax
	mov es,ax

	push message
	call k_print
	add sp,2

jmp 0x1000:0

k_print:
        push bp
        mov bp,sp
        mov si,[bp+4]
        again:
        mov al,[si]
        mov ah,0eh
        int 10h
        inc si
        mov al,[si]
        cmp al,0
        je endit
        jmp again
        endit:
        mov sp,bp
        pop bp
        ret

k_getch:
        mov ax,0
        mov ah,10h
        int 16h
        mov [buffer],ax
        mov ax,[buffer]
        ret

message: db 'HELLO, WORLD!',13,10,0
buffer times 1024 db 0
