From 5800c3625aac3d9ccaeb7ccdd6bd1806a40bbade Mon Sep 17 00:00:00 2001 From: Joursoir Date: Wed, 6 Oct 2021 16:50:27 +0000 Subject: x86/boot/setup: get cursor position --- arch/x86/boot/setup.s | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/boot/setup.s b/arch/x86/boot/setup.s index 74b2cc2..2afc974 100644 --- a/arch/x86/boot/setup.s +++ b/arch/x86/boot/setup.s @@ -34,6 +34,13 @@ _start: BIOS_PRINT $get_data_msg + # Get current cursor position + mov $0x3, %ah + xor %bh, %bh # Page Number = 0 + int $0x10 + add $3, %dh # Add number of next BIOS_PRINTs + mov %dx, (2) # Save it + # Get disk drive parameters xor %ax, %ax mov %ax, %es # ES:DI = 0x0000:0x0000 to guard -- cgit v1.2.3-18-g5258