diff options
| author | Carlos Maiolino <[email protected]> | 2025-07-17 19:20:10 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-07-17 19:20:10 +0200 |
| commit | 03b6a256d44b0be82b9d9d8c6fa3d0dceb01983a (patch) | |
| tree | 3fe94add95bb105346ef6f818a97641727544290 /bootloader.asm | |
| parent | 60ad28e57a02d17981f3854f1f23b8740c309f60 (diff) | |
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 <[email protected]>
Diffstat (limited to 'bootloader.asm')
| -rw-r--r-- | bootloader.asm | 19 |
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 |
