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
it should be include instead of %include
Also, try removing the quotes around filename. I have not seen it in assembly files.
also, you should specify the path of the file, unless it is in the current directory
ok thank you.
This code worked with NASM, I didnt know that the syntax is different from MASM.
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.