summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootloader.asm19
1 files changed, 0 insertions, 19 deletions
diff --git a/bootloader.asm b/bootloader.asm
index 99627d5..40bf2b6 100644
--- a/bootloader.asm
+++ b/bootloader.asm
@@ -25,22 +25,9 @@ step2:
mov sp, 0x7c00 ; Stack segment starts right before ds
; and grows down to 0x0. This works because
; Intel implements a full descending stack
-
- ; Setup and test interrupt vector table and interrupts
- mov word[ss:0x00], handle_zerodiv_intr ; first 2 bytes, mem offset for int
- ; 0 location
- ; Use SS here because it already starts
- ; at 0x0
-
- mov word[ss:0x02], 0x7c0 ; Data segment our interrupt is
-
sti ; Enable interrupts
- ; Test interrupts
-; mov ax, 0x00
-; div ax
-
mov si, load_msg
call print
@@ -91,12 +78,6 @@ print_char:
ret
-; Interrupt handlers
-handle_zerodiv_intr:
- mov si, divzero_msg
- call print
- iret
-
; Static data
load_msg: db 'Starting bootloader...', 0x0A, 0x0D, 0
divzero_msg: db 'Interrupts working properly...', 0x0A, 0x0D, 0