
AN1283/D
MOTOROLA
23
4.1.5 CLV
The CLV instruction has been replaced by ANDP. ANDP performs AND between the content of the condi-
tion code register and an unsigned immediate operand, then replaces the content of the CCR with the result.
The PK extension field (CCR[3:0]) is not affected.
The following code can be used to clear the V bit in the CCR:
ANDP #$FDFF
The ANDP instruction can clear the entire CCR, except for the PK extension field, at once.
4.1.6 DES
The DES instruction has been replaced by AIS. AIS adds a 20-bit value to concatenated SK and SP. The
20-bit value is formed by sign-extending an 8-bit or 16-bit signed immediate operand.
The following code can be used to perform a DES:
AIS –1
CPU16 stacking operations normally use 16-bit words and even word addresses, while M68HC11 CPU
stacking operations normally use bytes and byte addresses. If the CPU16 stack pointer is misaligned as a
result of a byte operation, performance can be degraded.
4.1.7 DEX
The DEX instruction has been replaced by AIX. AIX adds a 20-bit value to concatenated XK and IX. The
20-bit value is formed by sign-extending an 8-bit or 16-bit signed immediate operand.
The following code can be used to perform a DEX:
AIX –1
4.1.8 DEY
The DEY instruction has been replaced by AIY. AIY adds a 20-bit value to concatenated YK and IY. The
20-bit value is formed by sign-extending an 8-bit or 16-bit signed immediate operand.
The following code can be used to perform a DEY:
AIY –1
4.1.9 INS
The INS instruction has been replaced by AIS. AIS adds a 20-bit value to concatenated SK and SP. The
20-bit value is formed by sign-extending an 8-bit or 16-bit signed immediate operand.
The following code can be used to perform an INS:
AIS –1
CPU16 stacking operations normally use 16-bit words and even word addresses, while M68HC11 CPU
stacking operations normally use bytes and byte addresses. If the CPU16 stack pointer is misaligned as a
result of a byte operation, performance can be degraded.
4.1.10 INX
The INX instruction has been replaced by AIX. AIX adds a 20-bit value to concatenated XK and IX. The 20-
bit value is formed by sign-extending an 8-bit or 16-bit signed immediate operand.
The following code can be used to perform an INX:
AIX1