From bbfcd42f619646c6014a649e93d93ec2f2ccc8e6 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Tue, 21 Apr 2020 20:22:42 +0200 Subject: [PATCH] Set up interrupt table at startup directly (less code), not calling setint --- boot/kernel.asm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/boot/kernel.asm b/boot/kernel.asm index a31d9a3..f971134 100644 --- a/boot/kernel.asm +++ b/boot/kernel.asm @@ -244,14 +244,12 @@ init: cli call select ; Set int 0x20 to 0x2F - mov bx, ivects+0x7C00-$$ + mov di, (0x20*4) + mov si, ivects+0x7C00-$$ mov cx, 0x10 - mov al, 0x20 -.loop: mov dx, [bx] - call setint - inc al - inc bx - inc bx +.loop: movsw + mov ax, cs + stosw loop .loop mov si, banner