The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Ash on January 30, 2009, 12:24:21 AM

Title: A2001 disappears with segment override?!?
Post by: Ash on January 30, 2009, 12:24:21 AM
Hi,

MASM v9.00.30729.01 gives me an error assembling the following:
.686P

_TEXT32 SEGMENT PARA PUBLIC USE32 'CODE'
Start:
mov dword ptr [11223344h], 55667788h
_TEXT32 ENDS

END Start

QuoteD:\Source>ml /omf /c /Fl /Fm /Sa test.asm
Microsoft (R) Macro Assembler Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Assembling: test.asm
test.asm(5) : error A2001:immediate operand not allowed

If I add a segment override mov dword ptr ds:[11223344h], 55667788h all is working fine... WTH?!?

Has someone an explanation for this?

TIA,
Ash
Title: Re: A2001 disappears with segment override?!?
Post by: jj2007 on January 30, 2009, 07:25:07 AM
See Agner Fog's remarks here (http://www.masm32.com/board/index.php?topic=10165.msg74468#msg74468).
Title: Re: A2001 disappears with segment override?!?
Post by: Ash on January 30, 2009, 07:59:25 AM
Quote from: jj2007 on January 30, 2009, 07:25:07 AM
See Agner Fog's remarks here (http://www.masm32.com/board/index.php?topic=10165.msg74468#msg74468).

Thank you.