2. CPU
Rev.3.00 Jul. 19, 2007 page 45 of 532
REJ09B0397-0300
2.5.3 Logic
Operations
Table 2.6 describes the four instructions that perform logic operations.
Table 2.6
Logic Operation Instructions
Instruction Size
*
Function
AND B Rd
∧
Rs
→
Rd, Rd
∧
#IMM
→
Rd
Performs a logical AND operation on a general register and another
general register or immediate data
OR B
Rd
∨
Rs
→
Rd, Rd
∨
#IMM
→
Rd
Performs a logical OR operation on a general register and another
general register or immediate data
XOR B Rd
⊕
Rs
→
Rd, Rd
⊕
#IMM
→
Rd
Performs a logical exclusive OR operation on a general register and
another general register or immediate data
NOT B ~
Rd
→
Rd
Obtains the one's complement (logical complement) of general register
contents
Note:
*
Size: Operand
size
B:
Byte
2.5.4 Shift
Operations
Table 2.7 describes the eight shift instructions.
Table 2.7
Shift Instructions
Instruction Size
*
Function
SHAL
SHAR
B
Rd shift
→
Rd
Performs an arithmetic shift operation on general register contents
SHLL
SHLR
B
Rd shift
→
Rd
Performs a logical shift operation on general register contents
ROTL
ROTR
B Rd
rotate
→
Rd
Rotates general register contents
ROTXL
ROTXR
B Rd
rotate
→
Rd
Rotates general register contents through the carry flag.
Note:
*
Size: Operand
size
B:
Byte
Summary of Contents for F-ZTAT H8 Series
Page 6: ...Rev 3 00 Jul 19 2007 page iv of xxiv REJ09B0397 0300...
Page 194: ...7 RAM Rev 3 00 Jul 19 2007 page 168 of 532 REJ09B0397 0300...
Page 234: ...8 I O Ports Rev 3 00 Jul 19 2007 page 208 of 532 REJ09B0397 0300...
Page 274: ...9 Timers Rev 3 00 Jul 19 2007 page 248 of 532 REJ09B0397 0300...
Page 352: ...12 A D Converter Rev 3 00 Jul 19 2007 page 326 of 532 REJ09B0397 0300...
Page 561: ......