beautypg.com

Zilog Z8F0130 User Manual

Page 110

background image

eZ8

CPU Core

User Manual

UM012820-0810

BIT Instruction

95

BIT

Definition

Bit Set/Reset.

Syntax

BIT p, bit, dst

Operation

dst[bit]

 p

Description

For his new eZ8 instruction, the selected bit in the destination operand is
the binary value p (0 or 1). All other bits are unaffected.

Flags

Attributes

C

Unaffected

Z

Unaffected

S

Unaffected

V

Unaffected

D

Unaffected

H

Unaffected

Mnemonic

Polarity, Bit,
Destination

Op
Code
(Hex)

Operand 1 Operand 2 Operand 3

BIT

p, bit, r1

E2

{p, bit, r1}