Btsth (Test Higher 4 Bits Of Byte Data In Memory) - Fujitsu FR Family Instruction Manual

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

7.33

BTSTH (Test Higher 4 Bits of Byte Data in Memory)

Takes the logical AND of the 4-bit immediate data and the higher 4 bits of byte data at
memory address "Ri", places the results in the condition code register (CCR).
■ BTSTH (Test Higher 4 Bits of Byte Data in Memory)
Assembler format:
BTSTH #u4, @Ri
Operation:
{u4 < < 4} and (Ri) [Test uses higher 4 bits only]
Flag change:
N:
Z:
V and C: Unchanged
Execution cycles:
2 + a cycles
Instruction format:
Example:
BTSTH #1, @R3
N
Z
V
C
C
C
Set when the MSB (bit 7) of the operation result is "1", cleared when the MSB is "0".
Set when the operation result is "0", cleared otherwise.
MSB
1
0
0
0
Instruction bit pattern :
1000 1001 0001 0011
R3
1 2 3 4 5 6 7 8
Memory
12345678
0 1
12345679
N Z V C
CCR
0 0 0 0
Before execution
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
1
0
0
1
u4
LSB
Ri
R3
1 2 3 4 5 6 7 8
Memory
12345678
0 1
12345679
N Z V C
CCR
0 1 0 0
After execution
119

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents