Improve register hygiene for interrupt setup

This commit is contained in:
Nero 2019-09-01 13:48:28 +00:00
parent b5cc332a02
commit 809a959608
2 changed files with 31 additions and 22 deletions

View file

@ -37,12 +37,10 @@ str_product:
db "Nero DOS ", 60, 234, 62, 0
optrom_init:
; setup data stack below code stack
mov bp, sp
sub bp, 0x80
; intnum and offset to data stack
mov word [ss:bp], 0x18
mov word [ss:bp+2], start
push cs
pop es
mov di, start
mov ax, 0x18
call intr_register
retf