Intel mcs-48 manual Mev A, #data Move Immediate Data to Accumulator

Models: mcs-48

1 478
Download 478 pages 26.88 Kb
Page 95
Image 95

INSTRUCTION SET

Mev A, #data Move Immediate Data to Accumulator

1001 0 10 0 1 1 1 1d7 d6 ds d4 J d3 d2 d1 do 1

This is a 2-cycle instruction. The 8-bit value specified by 'data'is loaded in the accumulator.

(A)-- data

Example: MOV A,#OA3H

;MOVE 'A3'HEX TO ACC

MaV A,PSW Move PSW Contents to Accumulator (Not in 8021, 8022)

11100101111

The contents of the program status word are moved to the accumulator.

(A)-- (PSW)

Example: Jump to 'RB1SET'routine if PSW bank switch, bit 4, is set.

BSCHK: MOV A,PSW ;MOVE PSW CONTENTS TO ACC

JB4 RB1SET ;JUMP TO 'RB1SET'IF ACC ;BIT 4=1

MaV A,R r Move Register Contents to Accumulator

11111J1rrri

8-bits of data are moved from working register 'r' into the accumulator.

(A)-- (Rr)

r=0-7

Example: MAR: MOV A,R3

;MOVE CONTENTS OF REG 3

 

;TO ACC

MaV A,@R r Move Data Memory Contents to Accumulator

111111000rl

The contents ot the resident data memory location addressed by bits 0-5*otregister 'r'are moved to the accumulator. Register 'r'contents are unaffected.

(A) __ ((Rr))

r=0-1

Example: Assume R1 contains 00110110.

MADM: MOV A,@R1 ;MOVE CONTENTS OF DATA MEM ;LOCATION 54 TO ACC

Mnemonics copyright Intel Corporation 1976.

'0-6for 8039/8049

4-22

Page 95
Image 95
Intel mcs-48 manual Mev A, #data Move Immediate Data to Accumulator, MaV A,PSW Move PSW Contents to Accumulator Not in 8021