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