alien.png Other -- Trouble shooting
[Previous] [Main] [Next]


This is a pretty hard topic, as we don't know what problems users will have and this is the first version of the help file of CA3. Nevertheless we have found some things that fit in the trouble shooting section...

Problems using macro's
I'm sure I declared my macro correctly, but TASM gives an error like 'line 0023: unrecognized directive. (([Parameter name]))'  
This is a problem we've encountered too... This is a bug (?) in TASM. To solve this be sure your definition of the macro does not contain any spaces between the name and the parameters... example:  
 
#define MyMacro (Parameter)  
This will generate an error, because there's a white space between the MyMacro and the '(' of the parameter. To define it correct, define it like this:  
 
#define MyMacro(Parameter)  
This is the correct definition of a macro.  
 
 
I'm sure I declared my macro correctly, but TASM gives an error like 'line 0023: Macro expects args but none found'  
This is almost the same problem as the problem described before, though in this case you DID define the macro correctly, but called upon the maco in a wrong way. You probably called your macro like this:  
 
MyMacro (Parameter)  
This will generate an error, because there's a white space between the MyMacro and the '(' of the parameter. To call it correct, implement it like this:  
 
MyMacro(Parameter)  
This is the correct implementation of calling upon a macro.  
 
 
I'm sure I declared my macro correctly, but TASM gives an error like 'line 0023: unrecognized instruction. (MYMACRO(PARAMETER))'  
This error occurs because the implemantation of macro's is CASE SENSITIVE, even if the option of case sensitivity is disabled! Check the case of the macro name you call upon...  
 
 
Problems using labels
I'm sure I typed the labelname correctly, still I get an error like: 'line 0023: Label not found: (LabelName)'  
This error occurs when you call upon a label with the wrong CASE SENSITIVITY if the 'Ignore case in labels' option in the settings screen is DISABLED. To get rid of this error, go to the settings screen, click the assembler tab, enable the option 'Ignore case in labels' and click OK.  
 
I'm getting errors like 'line 0023: label value misalligned. (jp)'  
This error occurs when you do not have any WHITE SPACES at the left side of a line and directly typed an instruction like:  
 
Label1:  
jp Label1  
 
This generates an error, because the jp label1 is an instruction and didn't start with a white space. It is generally recommended to start lines with an instruction with a TAB character!