Fix broken intr_load, use LDS instruction

This commit is contained in:
Nero 2019-09-01 14:15:26 +00:00
parent de90b9cfd1
commit dcbb719488
1 changed files with 3 additions and 8 deletions

View File

@ -44,17 +44,12 @@ intr_load:
mul ah
mov si, ax
; ES = 0
; DS = 0
xor ax, ax
mov ds, ax
; load offset
lodsw
mov si, ax
; load segment
lodsw
mov ds, ax
; load segment and offset in one go
lds si, [si]
pop ax
ret