aboutsummaryrefslogtreecommitdiff
path: root/CS3871/os/boot.s
blob: 6dc94647672bbb4fae06f81b7ec61303c62547f0 (plain)
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
31
32
33
34
35
36
37
	bits 16
	org 7c00h
	mov si, loading
	call print
	
	mov ax, 7d00h
	mov es, ax
	mov bx, $0
	
	mov dl, 0
	mov dh, 0
	mov ch, 0
	mov cl, 2
	mov al, 1
	mov ah, 2h
	
	int 13h
	mov si, loaded
	call print	

	jmp 7d00h

	
	
loading: db 'Loading OS into RAM...', 10, 13, 0
loaded: db 'Jumping to OS...', 10, 13, 10, 13, 0

print: 
	mov ah, 0eh
.loop:
	lodsb
	cmp al, 0
	je .done
	int 10h
	jmp .loop
.done:
	ret