diff options
Diffstat (limited to 'src/boot')
| -rw-r--r-- | src/boot/boot.stage1.print.asm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/boot/boot.stage1.print.asm b/src/boot/boot.stage1.print.asm new file mode 100644 index 0000000..ee0efe2 --- /dev/null +++ b/src/boot/boot.stage1.print.asm @@ -0,0 +1,21 @@ + ;; boot.stage1.print.asm + %ifndef BOOT_STAGE1_PRINT_ASM + %define BOOT_STAGE1_PRINT_ASM + +_print_string: + pusha + mov ah, 0x0e + mov bh, 0x00 + + .print_loop: + lodsb + test al, al + je .print_return + int 0x10 + jmp .print_loop + + .print_return: + popa + ret + + %endif |
