summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorChloe M. <chloe@aptel.org>2026-08-20 08:22:41 +0000
committerChloe M. <chloe@aptel.org>2026-08-20 08:22:41 +0000
commitea4447ad8760466702035886af4bf2d1ff509ec4 (patch)
treea986b06d9459dcd593425885cd4ecfffa3be1409 /boot
parent2c5b32f34deacf2f832e091e6546a27a87967627 (diff)
boot/amd64: mbr: Write to video console
Signed-off-by: Chloe M. <chloe@aptel.org>
Diffstat (limited to 'boot')
-rw-r--r--boot/arch/amd64/mbr/mbr.S7
1 files changed, 3 insertions, 4 deletions
diff --git a/boot/arch/amd64/mbr/mbr.S b/boot/arch/amd64/mbr/mbr.S
index 18740d6..ee58525 100644
--- a/boot/arch/amd64/mbr/mbr.S
+++ b/boot/arch/amd64/mbr/mbr.S
@@ -88,10 +88,9 @@ putstr:
* %al: Character to write
*/
putchr:
- push %dx
- mov $0x3F8, %dx
- out %al, %dx
- pop %dx
+ mov $0x0E, %ah
+ xor %bh, %bh
+ int $0x10
ret
dap: