beautypg.com

Zilog Z16F2810 User Manual

Page 155

background image

UM018809-0611

POPMHI Instruction

ZNEO

®

CPU Core

User Manual

139

The assembler also accepts statements using the combined POPM mnemonic with an immediate
mask operand.

Flags

Syntax and Opcodes

Example

Before:

SP=FFFF_DB22H,

FFFF_DB22H=0000_1234,

FFFF_DB26H=0005_5678,

FFFF_DB2AH=0006_9ABC,

FFFF_DB2EH=0007_DEF0,

FFFF_DB34H=000D_4321

POPM ;Object Code: 06E1 0720

After:

SP=FFFF_DB38H,

R0=0000_1234,

R5=0005_5678,

R6=0006_9ABC,

R7=0007_DEF0,

R13=000D_4321, Flag B=0

The following syntax produces the same object code as the previous example:

POPM #20E1H

;Object Code: 06E1 0720

7

6

5

4

3

2

1

0

C

Z

S

V

B

CIRQE IRQE

*

Legend

Z

= No change.

S

= No change.

V

= No change.

B

= Set to 1 if the last value popped is 0. Cleared to 0 if the last value popped is nonzero.

CIRQE

= No change.

IRQE

= No change.

Instruction, Operands

Word 0

Word 1

Word 2

POPMLO mask

{06H, imm8}

POPMHI mask

{07H, imm8}

This manual is related to the following products: