beautypg.com

Mov a, @hl, Mov a, @rpa1 – NEC PD754144 User Manual

Page 256

background image

CHAPTER 11 INSTRUCTION SET

256

User’s Manual U10676EJ3V0UM

MOV A, @HL

Function: A

(HL)

Transfers the contents of the data memory content addressed by register pair HL is transferred to the A register.

MOV A, @HL+

Function: A

(HL), L

L+1

skip if L = 0H

Transfers the contents of the data memory addressed by register pair HL to the A register. Then, the contents

of the L register are automatically incremented by one, and if the contents of the L register become 0H as a result,

the next instruction is skipped.

MOV A, @HL–

Function: A

(HL), L

L–1

skip if L = FH

Transfers the contents of the data memory addressed by register pair HL to the A register. Then, the contents

of the L register are automatically decremented by one, and if the contents of the L register become FH as a result

the next instruction is skipped.

MOV A, @rpa1

Function: A

(rpa)

Where rpa = HL+: skip if L = 0

where rpa = HL–: skip if L = FH

Transfers the contents of the data memory addressed by register pair rpa (HL, HL+, HL–, DE, or DL) to the A

register.

If autoincrement (HL+) is specified as rpa, the contents of the L register are automatically incremented by one after

the data has been transferred. If the contents of the L register become 0 as a result, the next instruction is skipped.

If autodecrement (HL–) is specified as rpa, the contents of the L register are automatically decremented by one

after the data has been transferred. If the contents of the L register become FH as a result, the next instruction is

skipped.

This manual is related to the following products: