Instruction set of MC9S08Q8 - Codewarrior vs reference manual CPX HC08 vs RS08

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

Instruction set of MC9S08Q8 - Codewarrior vs reference manual CPX HC08 vs RS08

1,373件の閲覧回数
xtronics
Contributor I

CPX is listed in the "MC9S08Q8 MCU Series Reference Manual, Rev 3"  as a valid instruction - lists the core as S08CPUV4.

 

But CodeWarrior says that instruction is only for the RS08.

 

If the reference manual is wrong, that would be a very serious documentation error. 

 

If Codwarrior (10.0) is wrong it seems to not want to let me change to RS08 instruction set.

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

915件の閲覧回数
bigmac
Specialist III

Hello,

 

The CPX assembly instruction has "always" existed, right back to HC05 family, and probably even earlier.  What addressing mode are you attempting to use?  Are you attempting to use the instruction within an assembly project, or as inline assembly code?  What error message are you getting when you attempt to assemble the code?

 

Regards,

Mac

 

0 件の賞賛
返信

915件の閲覧回数
xtronics
Contributor I

Just found it -- I had cmpx instaed of cpx - too many different instruction sets in my head.

 

The error said it was an opcode for RS08 only...  turns out it is a psudo instruction for the RS08 ...

0 件の賞賛
返信