Set up interrupt table at startup directly (less code), not calling setint

This commit is contained in:
Nero 2020-04-21 20:22:42 +02:00
parent 94829aed1e
commit bbfcd42f61

View File

@ -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