Hello,
It is my first time to write an application with a main program in a file and several subroutines in different files for a HCS08QE MCU. Attached is a program for testing. After compling it, I got the following message:
A13003: Value is truncated to one byte
SR_Test.asm line 3
A13003: Value is truncated to one byte
SR_Test.asm line 4
A1104: Undeclared user defined symbol: PTCD
SR_Test.asm line 3
Compile failed
The compiler regards the command "BSET 7,PTCD" in the main program as a direct addressing instruction since the address of PTCD is 0x04. However, it is not the case for the same command in the subroutine.
I tried many times by adding XDEF, XREF, XREF.B to the .asm files, and the object code file to Project.prm, but I got other error messages.
Please give me advice because I have spend a long time to learn this which should be a straightforward issue.
Thanks.