HC05 assembly conversion to HC08

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HC05 assembly conversion to HC08

1,329 Views
baddad
Contributor I
I'm helping to convert an old HC05 project to HC08 using CW v5.1.
 
This statement shows up as an invalid addressing mode:
LDA #"U"
 
I haven't been able to find the proper way to write this.
 
Any suggestions on what I can try?
 
Thanks,
Brian
Labels (1)
0 Kudos
2 Replies

251 Views
RockyRoad
Contributor III
Brian -
 
I don't know why the double quotes (LDA  #"U") didn't work. But I tried with single quotes (LDA  #'U') and it worked correctly.
 
Interestly, this use of the double quotes for the string constant did work (and is another work around):
 
U:   EQU "U"
.
.
.
      LDA  #U
 
- Rocky
0 Kudos

251 Views
baddad
Contributor I
Thanks, I'll give it a try.
 
Seems to be a strange assembler response, because  LDA #"d" works...
 
Thanks again.
Brian
0 Kudos