News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

USE16 USE32

Started by gyiakoumis, February 11, 2005, 03:59:19 PM

Previous topic - Next topic

gyiakoumis

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!

MichaelW

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.

eschew obfuscation