Hi atferri',
thanks for your quick reply.
I think I may have found the problem, a bit of 'Googling' indicated I should specify the MACRO code at the very head of the file, before any code, which I did not appreciate.
This has 'solved' the problem of the error messages.
The original lines were these :
_Print "ABCDE"
_Print "FGHIJ"
_Print "KLMNO"
However, I think I may have found a small 'issue' with the number of characters in the string, it appears to have to be an even number.
When the code is generated and the disassembly code generated for the following : with 4 characters in the string:
_Print "ABCD"
_Print "FGHI"
_Print "KLMN"
the assembled code is :
0250 EC37 CALL 0x26e, 0 72: _Print "ABCD"
0252 F001 NOP
0254 4241 RRNCF 0x41, F, ACCESS
0256 4443 RLNCF 0x43, W, ACCESS
0258 0000 NOP
025A EC37 CALL 0x26e, 0 73: _Print "FGHI"
025C F001 NOP
025E 4746 RLNCF 0x46, F, BANKED
0260 4948 INFSNZ 0x48, W, BANKED
0262 0000 NOP
0264 EC37 CALL 0x26e, 0 74: _Print "KLMN"
0266 F001 NOP
0268 4C4B DCFSNZ 0x4b, W, ACCESS
026A 4E4D DCFSNZ 0x4d, F, ACCESS
026C 0000 NOP
The ASCI codes for the characters are indicated in addresses 0254,0256 - 025e,0260 and 0268,026a
with the 'nop' (0000) being generated by the macro.
----------------------------------------------------
If I add another character into the strings :
_Print "ABCDE"
_Print "FGHIJ"
_Print "KLMNO"
the assembled code is :
0250 EC37 CALL 0x26e, 0 72: _Print "ABCDE"
0252 F001 NOP
0254 4241 RRNCF 0x41, F, ACCESS
0256 4443 RLNCF 0x43, W, ACCESS
025A EC37 CALL 0x26e, 0 73: _Print "FGHIJ"
025C F001 NOP
025E 4746 RLNCF 0x46, F, BANKED
0260 4948 INFSNZ 0x48, W, BANKED
0264 EC37 CALL 0x26e, 0 74: _Print "KLMNO"
0266 F001 NOP
0268 4C4B DCFSNZ 0x4b, W, ACCESS
026A 4E4D DCFSNZ 0x4d, F, ACCESS
It appears that the last ASCII code is missing from the listing, and also the 'terminator' 0000 code is missing .....
I've not tested it out fully yet, (i.e. on an a serial lcd or something) but just thought the disassembly was intersting.
Roy