home bbs files messages ]

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,087 of 4,675   
   wolfgang kern to Lars Erdmann   
   Re: Referring to a segment   
   18 Aug 20 04:19:34   
   
   From: nowhere@nospicedham.never.at   
      
   On 17.08.2020 19:11, Lars Erdmann wrote:   
   > Hallo,   
   Hi,   
   [...]   
   > What is the proper way to reference this 32-bit code segment so that the   
   > proper GDT selector (and not the FLAT selector) is loaded into ax ?   
   > Is this an assembler issue, a linker issue or even both ?   
      
   I always avoided detours with improper tools. Could well be that what   
   you miss doesn't exist. 16 bit equivalent to 32 bit Flat code cannot be   
   except if the 16 bit code seg starts at 0:0 which is a pretty bad idea.   
      
   If you need two entries which point to the same memory in the GDT then   
   just create them or copy one existing and modify it as desired.   
   I use two such 16/32 pairs for both code and data [in the HMA range so   
   this memory is accessible by trueRM16 too].   
   __   
   wolfgang   
      
   --- 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