Btst (Bit Test) - Hitachi H8/300L Series Programming Manual

Hide thumbs Also See for H8/300L Series:
Table of Contents

Advertisement

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
— —
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.
70
N
Z
V
C

Advertisement

Table of Contents
loading

Table of Contents