summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-10-06 16:50:27 +0000
committerJoursoir <chat@joursoir.net>2021-10-06 16:50:27 +0000
commit5800c3625aac3d9ccaeb7ccdd6bd1806a40bbade (patch)
tree6a9115daf076756dac0d15ea31ce0ff6d48dad78 /arch/x86
parentbe6fad71b959bd77019ffa97c136a6a9523fd879 (diff)
downloadmfsos-5800c3625aac3d9ccaeb7ccdd6bd1806a40bbade.tar.gz
mfsos-5800c3625aac3d9ccaeb7ccdd6bd1806a40bbade.tar.bz2
mfsos-5800c3625aac3d9ccaeb7ccdd6bd1806a40bbade.zip
x86/boot/setup: get cursor position
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/boot/setup.s7
1 files changed, 7 insertions, 0 deletions
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