From e77248f8e958765e5436fa8b6d17b344ba60ea31 Mon Sep 17 00:00:00 2001 From: lukas Date: Thu, 24 Feb 2022 22:16:57 +0100 Subject: [PATCH] writing two chars with bios interupts --- boot.s | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/boot.s b/boot.s index e23fead..b584d95 100644 --- a/boot.s +++ b/boot.s @@ -2,7 +2,15 @@ .global init # makes our label "init" available to the outside init: # this is the beginning of our binary later. - jmp init # jump to "init" + #jmp init # jump to "init" + #ljmpw $0xFFFF, $0 # jumps to the "reset vector", doing a reboot + jmp printhelloworld + +printhelloworld: + mov $0xe37, %ax + int $0x10 # video bios interrupt + mov $0xe38, %ax + int $0x10 # video bios interrupt .fill 510-(.-init), 1, 0 # add zeroes to make it 510 bytes long # . is current position - start position