Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,501 of 4,675    |
|    Paul Edwards to All    |
|    seg keyword    |
|    19 Nov 22 11:22:42    |
      From: mutazilah@nospicedham.gmail.com              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.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca