limine/bootsect/simple_print.inc
2020-09-14 19:32:11 +02:00

23 lines
386 B
PHP

; **************************************
; Prints a string using the BIOS
; **************************************
; IN:
; SI = points to a 0x00 terminated string
simple_print:
push ax
push si
; int 0x10, function 0x0e (print character)
mov ah, 0x0e
.loop:
lodsb
test al, al
jz .done
int 0x10
jmp .loop
.done:
pop si
pop ax
ret