question

Belloc avatar image
0 Votes"
Belloc asked Belloc commented

Why doesn't this .asm code assemble in MASM?

The code below doesn't assemble in Visual Studio 2019:

 > .286
 > .model small, stdcall
 > .stack 4096
 > .code
 > main PROC
 >  xor eax, eax
 >  ret
 > main ENDP
 > END main

The code emits error A2008: syntax error : . for the .286

If I replace .286 with .386, or .486 the code executes normally. What am I missing?

Please disregard my tag. Otherwise I wouldn't be able to post the question.






c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RLWA32-6355 avatar image
0 Votes"
RLWA32-6355 answered Belloc commented
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

II am using MASM version 6.1 Programmer's Guide. The command was valid at that time. Thanks anyway.

0 Votes 0 ·