Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 30, 2004 lidt assembly instruction argument? | ||||
---|---|---|---|---|
| ||||
Hi Everyone, I'm having some trouble getting an IDT loaded into the processor. I though that the lidt instruction took a pointer (e.g. 32-bits), but dmd only compiles my code if I pass it a 64-bit argument. What is this argument supposed to be? Thanks a lot. Braden |
June 02, 2004 Re: lidt assembly instruction argument? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Braden MacDonald | See the example at: http://osdev.neopages.net/tutorials/interrupts.3.php (Scroll down to the bottom). Here, NASM takes a pointer to a 6-byte structure for its lidt instruction. I don't see why D asks for an 8 byte parameter. Braden MacDonald wrote: > Hi Everyone, > I'm having some trouble getting an IDT loaded into the processor. > I thought that the lidt instruction took a pointer (e.g. 32-bits), but > dmd only compiles my code if I pass it a 64-bit argument. What is this > argument supposed to be? > > Thanks a lot. > Braden -- Braden MacDonald |
June 03, 2004 Re: lidt assembly instruction argument? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Braden MacDonald | I'll check it out. In the meantime, you can just use db's to put in the right bits for the instruction you want. |
June 25, 2004 Re: lidt assembly instruction argument? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | In article <c9mp8b$1vlp$2@digitaldaemon.com>, Walter says... > Braden says... > > Hi Everyone, > > I'm having some trouble getting an IDT loaded into the processor. > > I thought that the "lidt" instruction took a pointer (e.g. 32-bits), > > but dmd only compiles my code if I pass it a 64-bit argument. > > What is this argument supposed to be? > > > > Thanks a lot. > > Braden > >I'll check it out. In the meantime, you can just use db's to put in the right bits for the instruction you want. Any updates on this? If not, how do db's using D inline assembler? |
Copyright © 1999-2021 by the D Language Foundation