Movw sp, src, Movw ax, sp – NEC 78K/0 Series User Manual

Page 104

Advertising
background image

104

CHAPTER 5 EXPLANATION OF INSTRUCTIONS

User's Manual U12326EJ4V0UM

MOVW SP, src

Move Word

MOVW AX, SP

Word Data Transfer with Stack Pointer

[Instruction format]

MOVW dst, src

[Operation]

dst

← src

[Operand]

Mnemonic

Operand(dst,src)

MOVW

SP, #word

SP, AX

AX, SP

[Flag]

Z

AC

CY

[Description]

•

This is an instruction to manipulate the stack pointer contents.

•

The source operand (src) specified by the 2nd operand is stored in the destination operand (dst) specified

by the 1st operand.

[Description example]

MOVW SP, #FE1FH; FE1FH is stored in the stack pointer.

Advertising