The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: gyiakoumis on February 11, 2005, 03:59:19 PM

Title: USE16 USE32
Post by: gyiakoumis on February 11, 2005, 03:59:19 PM
Hi everybody!I want to load the idt table.But when i try to load the entry point (16 bit) i have problem because the offset address is 32 bits. How can i refer to this offset as a 16 bit?My segment is USE 32. Can i change this for some instructions? (like the instruction [BITS16-32] of NASM?) Thanks!
Title: Re: USE16 USE32
Post by: MichaelW on February 11, 2005, 07:45:16 PM
For an Interrupt Gate Descriptor the offset address of the handler entry point is split into two separate 16-bit fields. AFAIK you would need to decompose the 32-bit address into high and low words and write the words to the appropriate fields.