Intel 8XC251SA User Manual page 381

Embedded microcontroller
Hide thumbs Also See for 8XC251SA:
Table of Contents

Advertisement

SWAP A
Function:
Swap nibbles within the accumulator
Description:
Interchanges the low and high nibbles (4-bit fields) of the accumulator (bits 3–0 and bits 7–
4). This operation can also be thought of as a 4-bit rotate instruction.
Flags:
CY
Example:
The accumulator contains 0C5H (11000101B). After executing the instruction
SWAP A
the accumulator contains 5CH (01011100B).
Binary Mode
Bytes:
States:
[Encoding]
1 1 0 0
Hex Code in:
Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation:
SWAP
(A).3:0 → ← (A).7:4
TRAP
Function:
Causes interrupt call
Description:
Causes an interrupt call that is vectored through location 0FF007BH. The operation of this
instruction is not affected by the state of the interrupt enable flag in PSW0 and PSW1.
Interrupt calls can not occur immediately following this instruction. This instruction is
intended for use by Intel-provided development tools. These tools do not support user
application of this instruction.
Flags:
CY
Example:
The instruction
TRAP
causes an interrupt call to location 0FF007BH during normal operation.
AC
Source Mode
1
1
2
2
0 1 0 0
AC
INSTRUCTION SET REFERENCE
OV
N
OV
N
Z
Z
A-129

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc251sb8xc251sp8xc251sq

Table of Contents