For Programmers: Free Programming Magazines  


Home > Archive > A86 Assembler > July 2007 > NASM not accepting a number as a LLDT operand









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author NASM not accepting a number as a LLDT operand
mmiikkee13

2007-07-12, 3:57 am

How would I load entry 3 from the GDT as a LDT? I tried:

lldt 0x18

But NASM rejects this, saying "invalid combination of opcode and
operands". lldt [0x18] does assemble, but then reads whatever is at
address 0x18 as a selector (and chances are it won't be 0x18...)

Bjarni Juliusson

2007-07-12, 3:57 am

mmiikkee13 wrote:
> How would I load entry 3 from the GDT as a LDT? I tried:
>
> lldt 0x18
>
> But NASM rejects this, saying "invalid combination of opcode and
> operands". lldt [0x18] does assemble, but then reads whatever is at
> address 0x18 as a selector (and chances are it won't be 0x18...)


Well, you didn't read the manual, did you?

LLDT r/m16

Loads the source operand into the segment selector field of the
local descriptor table register (LDTR). The source operand (a general-
purpose register or a memory location) contains a segment selector
that points to a local descriptor table (LDT).


Bjarni
--

INFORMATION WANTS TO BE FREE

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com