Folks,
I am converting some old HC05 asm code to run on a HCS08AW32 (using CW 5.1). I've been successful with everything but this subroutine:
XMT_EMSG0:
ADD #MSG_LNK&0FF ; Add LSB of Message Link Offset
STA VSRL_LSB ; Message in the EEPROM Pointer
LDA VSWI
ADC #MSG_LNK/100 ; Add MSB of Message Link Offset
STA VSRL_MSB ; Message in the EEPROM
...
This code is creating a 16-bit offset pointer to some messages.
The 2 add statements (ADD and ADC) create errors due to the complex statement.
Any suggestions on how to reduce these two lines to simple HC08 instructions that will assemble?
Thanks in advance.
Brian