From 03b6a256d44b0be82b9d9d8c6fa3d0dceb01983a Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Thu, 17 Jul 2025 19:20:10 +0200 Subject: Remove interrupt table Remove interrupt table setup and testing, IRQs will be added later on an interrupt descriptor table. For some reason once the exception is handled, the disk read fails, so just remove it for now Signed-off-by: Carlos Maiolino --- bootloader.asm | 19 ------------------- 1 file changed, 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 -- cgit v1.2.3