beautypg.com

Zilog Z16F2810 User Manual

Page 157

background image

UM018809-0611

PUSH Instruction

ZNEO

®

CPU Core

User Manual

141

Syntax and Opcodes

Examples

Before:

SP=FFFF_DB24H, R6=FFFF_8642

PUSH.W R6

;Object Code: 166F

After:

FFFF_DB22H=8642, SP=FFFF_DB22H

Before:

SP=FFFF_DB22H

PUSH #42H

;Object Code: 0D42

After:

FFFF_DB20H=00H, FFFF_DB21H=42H, FFFF_DB1EH=00H,

FFFF_DB1FH=00H, SP=FFFF_DB1EH

Before:

SP=FFFF_DB22H

PUSH.B #42H

;Object Code: 0A42

After:

FFFF_DB21H=42H, SP=FFFF_DB21H

Before:

SP=FFFF_DB22H

PUSH.W #42H

;Object Code: 0C42

After:

FFFF_DB20H=00H, FFFF_DB21H=42H, SP=FFFF_DB20H

Instruction, Operands

Word 0

Word 1

Word 2

PUSH #imm32

{09EFH}

imm[31:16]

imm[15:0]

PUSH #simm16

{099FH}

simm16

PUSH #simm8

{0DH, simm8}

PUSH Rs

{10H, Rs, FH}

PUSH.W #imm16

{098FH}

imm16

PUSH.W #simm8

{0CH, simm8}

PUSH.W Rs

{16H, Rs, FH}

PUSH.B #imm8

{0AH, imm8}

PUSH.B #imm8

{094FH}

{xxH, imm8}

PUSH.B Rs

{14H, Rs, FH}

This manual is related to the following products: