aboutsummaryrefslogtreecommitdiff
path: root/src/entry.asm
blob: 7404ccceac2a76aa9e86b4af0c5130b56d8cff3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
bits 16

org 0x7c00

jmp start

print:
	mov ah, 0x0E
	xor bh, bh
	print_ch:
		lodsb
		test al, al
		jz print_end
		int 0x10
		jmp print_ch
	print_end:
	ret

start:
	mov ax, 0x003
	int 0x10

	mov si, hello
	call print
	jmp $

hello db "Loading Melvix...", 0x0A, 0x0D, 0x00

times 510 - ($ - $$) db 0
dw 0xAA55