Re: MASM instructions



On 21 Nov 2006 21:09:48 -0800, bob@xxxxxxxxxxxxxx wrote:


ArarghMail611NOSPAM@xxxxxxxxxxxxxxxxx wrote:
On 20 Nov 2006 18:53:26 -0800, bob@xxxxxxxxxxxxxx wrote:

I was just wondering how to see which instructions are supported in
MASM. In particular, I want to know if the LGDT instruction is
supported. I can't get it to compile.

It is. Need to specify ".386P" or somesuch

It still doesn't work even with .386P, .486P, .586P, and .686P.

You need MASM 5.00 or later.

Yes it does:

Microsoft (R) Macro Assembler Version 5.10 11/21/6
.286p
.model small,basic

.data

0000 00000000 gdt dd 0

.code

0000 zxcv Proc

0000 0F 01 16 0000 R lgdt fword ptr gdt
0005 C3 ret

0006 zxcv endp

end

--
ArarghMail611 at [drop the 'http://www.' from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html

To reply by email, remove the garbage from the reply address.
.



Relevant Pages

  • Re: Unsigned 32 bit
    ... I'm reading through a MASM manual dated from 1992. ... My goal is to compile the information you've ... assembly to compile a DLL. ... ByRef lngDest As Long, ByRef lngFirst As Long, _ ...
    (microsoft.public.vb.general.discussion)
  • Re: Create assembly obj to link with Windows objs
    ... >Using MASM 5.1 and 6.x, I am able to compile and create an obj file. ... So, assuming that you really do have 16-bit MASM code, your choices are ...
    (comp.lang.asm.x86)
  • Re: MASM as an addition to the VC Express edition now available
    ... What you have said does not match the enclosed EULA for MASM version ... either your own business or to sell. ... MASM to compile the program and then sells this program, ...
    (alt.lang.asm)
  • Re: MASM instructions
    ... MASM. ... I want to know if the LGDT instruction is ... I can't get it to compile. ... Need to specify ".386P" or somesuch ...
    (alt.lang.asm)
  • Re: Localized Parameter Directive?
    ... Jim Carlock wrote: ... > Using RadASM which in turn is using MASM to compile. ...
    (alt.lang.asm)