Hello all u guys..........

I got a very strange problem...Let me describe this.

I have a main file called Char2Int.asm in which I have used A function call CharToInt.
One thing I have done... that I have kept the body of CharToInt function in separate file called C2I.asm.

When I am compiling Char2Int.asm I am getting a typical error of following types.
1)use of register assumed to ERROR
2)cannot have implicit far jump or call to near label

somebody help me out please.

Posted on 2002-11-14 23:54:13 by processingspeed

And when I add .CODE in the C2I.asm file all the error vanishes...

can anyone body describe the reason of error

Posted on 2002-11-15 00:03:45 by processingspeed
Let me check if understand this correctly, you have extracted all
the 'Body/Header' code into a seperate file wich you include
somewhere in your code?correct?

Just as an example, let's say you created your code like this:
Include .\c2i.asm ;\\<- If '.CODE' is not defined at the end of that file

.CODE ;:\\Then you must define it here

You must always tell the assembler in wich section he is in, code/data/data?, etc.
Look at this little example:
Include .\c2i.asm

.DATA ;\\ Change to DATA section
MyFavVar DB "",0
.CODE ;\\ Return to CODE section
Posted on 2002-11-15 01:26:44 by natas