beautypg.com

Zilog Z16F2810 User Manual

Page 177

background image

UM018809-0611

SRA Instruction

ZNEO

®

CPU Core

User Manual

161

Syntax and Opcodes

Examples

Before:

R7=7F37_B2D3H (0111_1111_0011_0111_1011_0010_1101_0011B)

SRA R7, #4

;Object code: B847

After:

R7=07F3_7B2DH (0000_0111_1111_0011_0111_1011_0010_1101B), Flags C, Z,

S, V, B=0

Before:

R7=8F37_B2D3H (1000_1111_0011_0111_1011_0010_1101_0011B)

SRA R7, #4

;Object code: B847

After:

R7=F8F3_7B2DH (1111_1000_1111_0011_0111_1011_0010_1101B), Flags S,

V=1; C, Z, B=0

Instruction, Operands

Word 0

Word 1

Word 2

SRA Rd, #uimm5

{BH, 100B, uimm5, Rd}

SRA Rd, Rs

{B4H, Rs, Rd}

This manual is related to the following products: