beautypg.com

Zilog Z16F2810 User Manual

Page 92

background image

AND Instruction

UM018809-0611

76

ZNEO

®

CPU Core

User Manual

Examples

Before:

R1[7:0]=38H (0011_1000B), R14[7:0]=8DH (1000_1101B)

AND R1, R14

;Object Code: A2E1

After:

R1[7:0]=08H (0000_1000B), Flags Z, V, S, B=0

Before:

R4[31:8]=FFFF_FFH, R4[7:0]=79H (0111_1001B), FFFF_B07BH=EAH

(1110_1010B)

AND.SB R4, B07BH:RAM;Object Code: 7214 B07B

After:

R4[31:8]=FFFF_FFH, R4[7:0]=68H (0110_1000B), Flags S=1; Z, V, B=0

Before:

R4[31:8]=FFFF_FFH, R4[7:0]=79H (0111_1001B), FFFF_B07BH=EAH

(1110_1010B)

AND.UB R4, B07BH:RAM;Object Code: 7204 B07B

After:

R4[31:8]=0000_00H, R4[7:0]=68H (0110_1000B), Flags Z, V, S, B=0

Before:

R13=FFFF_B07AH, FFFF_B07AH=C3F7H (1100_0011_1111_0111B)

AND.W (R13), #80F0H ;Object Code: AB2D 80F0

After:

FFFF_B07AH=80F0H (1000_0000_1111_0000B), Flags S=1; Z, V, B=0

This manual is related to the following products: