]> git.dujemihanovic.xyz Git - nameless-os.git/blob - boot/x86/print.s
Enable A20 gate
[nameless-os.git] / boot / x86 / print.s
1 ; cs:si - pointer to ASCIIZ string
2 print
3 pushf
4 push ax
5 push bx
6 push si
7 xor bh, bh
8 mov ah, 0Eh
9
10 .loop
11 mov al, [cs:si]
12 cmp al, 0
13 je .done
14 int 10h
15 inc si
16 jmp .loop
17
18 .done
19 mov al, 0Dh
20 int 10h
21 mov al, 0Ah
22 int 10h
23 pop si
24 pop bx
25 pop ax
26 popf
27 ret