StupidOS/boot/common/bios.inc

29 lines
354 B
PHP
Raw Normal View History

;; File: bios.inc
2024-05-28 04:54:10 +00:00
struc bios_disk_packet
{
.size db 0x10
.zero db 0
.sectors dw ?
.segment dw ?
.offset dw ?
.lba_lower dd ?
.lba_upper dd ?
}
;; Function: bios_print
;;
;; Parameters:
;;
2024-04-04 10:13:02 +00:00
;; SI - null-terminated string to print
;;
bios_print:
lodsb
or al, al
jz @f
mov ah, 0x0E
int 0x10
jmp bios_print
@@:
ret