News:

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

Problem with asm_io.inc

Started by paul12, December 03, 2010, 10:30:04 PM

Previous topic - Next topic

paul12

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

madhur_ahuja

it should be include instead of %include

Also, try removing the quotes around filename. I have not seen it in assembly files.

dedndave

also, you should specify the path of the file, unless it is in the current directory

paul12

ok thank you.
This code worked with NASM, I didnt know that the syntax is different from MASM.

BogdanOntanu

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.
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro