News:

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

A2001 disappears with segment override?!?

Started by Ash, January 30, 2009, 12:24:21 AM

Previous topic - Next topic

Ash

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

jj2007