70
2.2.20 BTST (bit test)
Operation
¬
(<Bit No.> of <EAd>)
→
Z
Assembly-Language Format
BTST #xx:3, <EAd>
BTST Rn, <EAd>
Operand Size
Byte
Condition Code
I
H
N
Z
V
C
—
—
—
—
—
∆
—
—
I:
Previous value remains unchanged.
H:
Previous value remains unchanged.
N:
Previous value remains unchanged.
Z:
Set to 1 when the specified bit is zero; otherwise cleared to 0.
V:
Previous value remains unchanged.
C:
Previous value remains unchanged.
Description
This instruction tests a specified bit in a general register or memory location and sets or clears
the Zero flag accordingly. The bit number can be specified by 3-bit immediate data, or by the
lower three bits of an 8-bit general register. The operation is shown schematically below.
Содержание H8/300L Series
Страница 1: ...H8 300L Series Programming Manual ...
Страница 6: ...iv ...
Страница 8: ...2 ...
Страница 11: ......
Страница 14: ......
Страница 46: ......
Страница 48: ......
Страница 60: ......
Страница 83: ......
Страница 116: ......
Страница 150: ...144 ...
Страница 151: ......
Страница 156: ...150 ...