UPI-41A/41AH/42/42AH USER’S MANUAL
MOV Rr,A
Move Accumulator Contents to Register
Opcode:
1 0 1 0
1 r
2
r
1
r
0
The contents of the accumulator are moved to register ‘r’
(Rr)
w
(A)
r
e
0 – 7
Example:
MRA MOV R0,A
;MOVE CONTENTS OF ACC TO
;REG 0
MOV Rr,
Ý
data
Move Immediate Data to Register
Opcode:
1 0 1 1
1 r
2
r
1
r
0
#
d
7
d
6
d
5
d
4
d
3
d
2
d
1
d
0
This is a 2-cycle instruction. The 8-bit value specified by ‘data’ is moved to register ‘r’.
(Rr)
w
data
r
e
0 – 7
Example:
MIR4: MOV R4,
Ý
HEXTEN
;THE VALUE OF THE SYMBOL
;‘HEXTEN’ IS MOVED INTO
;REG 4
MIR5: MOV R5,
Ý
PI
*
(R
*
R)
;THE VAUE OF THE
;EXPRESSION ‘PI
*
(R
*
R)’
;IS MOVED INTO REG 5
MIR6: MOV R6,
Ý
OADH
;‘AD’ HEX IS MOVED INTO
REG 6
MOV
@
Rr,A
Move Accumulator Contents to Data Memory
Opcode:
1 0 1 0
0 0 0 r
The contents of the accumulator are moved to the data memory location whose address is
specified by bits 0 – 7 of register ‘r’. Register ‘r’ contents are unaffected.
((Rr))
w
(A)
r
e
0 – 1
Example:
Assume R0 contains 11000111.
MDMA: MOV
@
R,A
;MOVE CONTENTS OF ACC TO
;LOCATION 7 (REG)
MOV
@
Rr,
Ý
data
Move Immediate Data to Data Memory
Opcode:
1 0 1 1
0 0 0 r
#
d
7
d
6
d
5
d
4
d
3
d
2
d
1
d
0
This is a 2-cycle instruction. The 8-bit value specified by ‘data’ is moved to the standard data
memory location addressed by register ‘r’, bit 0 – 7.
Example:
Move the hexadecimal value AC3F to locations 62 – 63.
MIDM: MOV R0,
Ý
62
;MOVE ‘62’ DEC TO ADDR REG0
MOV
@
RO,
Ý
OACH
;MOVE ‘AC’ HEX TO LOCATION 62
INC R0
;INCREMENT REG 0 TO ‘63’
MOV
@
R0,
Ý
3FH
;MOVE ‘3F’ HEX TO LOCATION 63
43
Содержание UPI- 41A
Страница 1: ...October 1993 Microprocessor Peripherals UPI 41A 41AH 42 42AH User s Manual Order Number 231318 006 ...
Страница 4: ......
Страница 12: ...UPI 41A 41AH 42 42AH USER S MANUAL 231318 7 Figure 2 2 Pin Configuration 231318 8 Figure 2 3 Logic Symbol 8 ...
Страница 65: ...UPI 41A 41AH 42 42AH USER S MANUAL 231318 42 Figure 5 11 Distributed Processor System 61 ...