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

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

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

785 Views
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.

Labels (1)
0 Kudos
2 Replies

327 Views
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 Kudos

327 Views
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 Kudos