Paul Edwards
2022-11-19 19:22:42 UTC
I have code like this:
extrn int0:proc
public handler0
mov bx, 0
push bx
pop es
cli
mov bx, offset handler0
mov es:[0h], bx
mov bx, seg handler0
mov es:[02h], bx
handler0 proc
push bp
push ax
as86 uses 16-bit a.out format, and I'm not sure it can
handle a reference to just "seg". ie half of an address
being fixed up (I think that's what it does).
Is there a better way of writing this code, more in line
with the simple a.out format?
Is it:
addr0 dd handler0
And then do an les of that?
Thanks. Paul.
extrn int0:proc
public handler0
mov bx, 0
push bx
pop es
cli
mov bx, offset handler0
mov es:[0h], bx
mov bx, seg handler0
mov es:[02h], bx
handler0 proc
push bp
push ax
as86 uses 16-bit a.out format, and I'm not sure it can
handle a reference to just "seg". ie half of an address
being fixed up (I think that's what it does).
Is there a better way of writing this code, more in line
with the simple a.out format?
Is it:
addr0 dd handler0
And then do an les of that?
Thanks. Paul.