Special HCS08 instructions

The following table lists the instructions which HCS08 core provides in addition to the HC08 core instructions:

Table 1. Special HC(S)08 instructions
Instruction Addressing modes Descriptions
BGND   Enter Background Debug Mode. Only available with the -CS08/-C08/-CRS08: Derivative family assembler options.
CPHX #<expression> <expression> <expression>,SP Compare index register H:X with memory Stack pointer and extended addressing modes are only available with the -CS08, -C08, or -CRS08 assembler options.
LDHX #<expression> <expression> <expression>,X ,X <expression>,SP Load index register H:X from memory Indexed, stack pointer, and extended addressing modes are only available with the -CS08 option
STHX <expression> <expression>,SP Store index register H:X Stack pointer and extended addressing modes are only available with the -CS08option.