HC05 assembly conversion to HC08

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HC05 assembly conversion to HC08

1,382件の閲覧回数
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 返答(返信)

304件の閲覧回数
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 件の賞賛

304件の閲覧回数
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 件の賞賛