beautypg.com

Zilog Z8F0130 User Manual

Page 111

background image

eZ8

CPU Core

User Manual

UM012820-0810

BIT Instruction

96

Sample Usage

If Working Register R7 contains the value

38h

(

00111000b

), the follow-

ing statement leaves the value

28h

(

00101000b

)

in Working Register R7

and clears the V flag.

BIT 0, 4, R7

Object Code: E2 47

If Working Register R7 contains the value

38h

(

00111000b

), the follow-

ing statement leaves the value

3Ch

(

00111100b

)

in Working Register R7

and clears the V flag.

BIT 1, 2, R7

Object Code: E2 A7