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

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

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

941 次查看
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 回复数

483 次查看
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 项奖励
回复

483 次查看
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 项奖励
回复