Fix broken intr_load, use LDS instruction
This commit is contained in:
parent
de90b9cfd1
commit
dcbb719488
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user