How to separate 32-bit address into high 16-bit address and low 16-bbit address?

Started by leetow2003, January 13, 2011, 02:29:43 AM

Previous topic - Next topic

leetow2003

Look:
GATE    STRUC                           
        OFFSETL          DW      0       
        SELECTOR        DW      0     
        DCOUNT           DB      0       
        GTYPE             DB      0     
        OFFSETH          DW      0     
GATE    ENDS

and I define a gate varible in LDT:
32GATEA GATE <Low 16-bbit BEGIN address, 10h, 0, 8CH, high 16-bit BEGIN address>

and I define a code segment:
CODESEG SEGMENT PARA USE32
   ASSUME CS:CODESEG
BEGIN:
...
CODESEG ends

I want to know how to separate symbol BEGIN into Low 16-bbit BEGIN address and
high 16-bit BEGIN address in 32GATEA?Thank you.

dedndave


FORTRANS

Hi,

   And the newsgroup:

alt.os.development

An example at Google Groups:

http://groups.google.com/group/alt.os.development/browse_thread/thread/c0d43f5c9b927dc8?hl=en#

Though if you use Google it has a lot of spam.  You should
try a news server like AIOE.ORG that filter posts.

Cheers,

Steve N.