beautypg.com

Zilog Z16F2810 User Manual

Page 193

background image

UM018809-0611

TM Instruction

ZNEO

®

CPU Core

User Manual

177

Examples

Before:

R1[7:0]=38H (0011_1000B), R14[31:8]=0000_00H, R14[7:0]=08H

(0000_1000B)

TM R1, R14

;Object Code: A6E1

After:

Flags Z, V, S, B=0; R1 bit 3 tests as nonzero.

Before: R4[31:8]=0000_00H, R4[7:0]=79H (0111_1001B), FFFF_B07BH=12H
(0001_0010B)

TM.UB R4, B07BH:RAM ;Object Code: 7604 B07B

After:

Flags Z=1; V, S, B=0; R4 bit 1 or bit 4 tests as nonzero.

Before:

R13=FFFF_B07AH, FFFF_B07AH=C3F7H (1100_0011_1111_0111B)

TM.W (R13), #0001000000000000B;Object Code: AB6D 1000

After:

Flags Z=1, S, V, B=0, Bit 12 of the addressed word tests as a 0.

This manual is related to the following products: