HC05 assembly conversion to HC08

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

HC05 assembly conversion to HC08

1,383 次查看
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
标签 (1)
0 项奖励
2 回复数

305 次查看
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 项奖励

305 次查看
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 项奖励