mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-25 07:16:48 +03:00
23 lines
386 B
PHP
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
|