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

View File

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