The MASM Forum Archive 2004 to 2012

Specialised Projects => Assembler/Compiler Technology => Topic started by: paul12 on December 03, 2010, 10:30:04 PM

Title: Problem with asm_io.inc
Post by: paul12 on December 03, 2010, 10:30:04 PM
Hi

I wrote the very simple program for testing MASM

%include "asm_io.inc"

L1 DD 9
L2 DD 10

MOV EAX, L1
ADD EAX, L2

call print_int


I got the following error when assembling:
fatal error A1000: cannot open file : "asm_io.inc"

I puted the file asm_io.inc in the same forder of my .asm file, after that I puted it in C:\masm32\include but I still have the same error.
Please help, I have this error from 1 week, and I saw a lot of forums without response to my problem.

Best regards
Title: Re: Problem with asm_io.inc
Post by: madhur_ahuja on December 03, 2010, 10:36:37 PM
it should be include instead of %include

Also, try removing the quotes around filename. I have not seen it in assembly files.
Title: Re: Problem with asm_io.inc
Post by: dedndave on December 03, 2010, 11:13:21 PM
also, you should specify the path of the file, unless it is in the current directory
Title: Re: Problem with asm_io.inc
Post by: paul12 on December 04, 2010, 07:34:18 AM
ok thank you.
This code worked with NASM, I didnt know that the syntax is different from MASM.
Title: Re: Problem with asm_io.inc
Post by: BogdanOntanu on December 04, 2010, 01:12:36 PM
Quote from: paul12 on December 04, 2010, 07:34:18 AM
ok thank you.
This code worked with NASM, I didnt know that the syntax is different from MASM.

Each assembler has it's own syntax.

Usually there are some similarities but there are also a LOT of differences.