UPI-41A/41AH/42/42AH USER’S MANUAL
MOV A,Rr
Move Register Contents to Accumulator
Opcode:
1 1 1 1
1 r
2
r
1
r
0
Eight bits of data are moved from working register ‘r’ into the accumulator.
(A)
w
(Rr)
r
e
0 – 7
Example:
MAR: MOV A,R3
;MOVE CONTENTS OF REG 3
;TO ACC
MOV A,
@
Rr
Move Data Memory Contents to Accumulator
Opcode:
1 1 1 1
0 0 0 r
The contents of the data memory location addressed by bits 0 – 7 of register ‘r’ are moved to
the accumulator. Register ‘r’ contents are unaffected.
(A)
w
((Rr))
r
e
0 – 1
Example:
Assume R1 contains 00110110.
MADM: MOV A,
@
R1
;MOVE CONTENTS OF DATA MEM
;LOCATION 54 TO ACC
MOV A,T
Move Timer/Counter Contents to Accumulator
Opcode:
0 1 0 0
0 0 1 0
The contents of the timer/event-counter register are moved to the accumulator. The timer/
event-counter is not stopped.
(A)
w
(T)
Example:
Jump to ‘‘Exit’’ routine when timer reaches ‘64’, that is, when bit 6 is setÐassuming initializa-
tion to zero.
TIMCHK: MOV A,T
;MOVE TIMER CONTENTS TO
;ACC
JB6 EXIT
;JUMP TO ‘EXIT’ IF ACC BIT
;6
e
1
MOV PSW,A
Move Accumulator Contents to PSW
Opcode:
1 1 0 1
0 1 1 1
The contents of the accumulator are moved into the program status word. All condition bits
and the stack pointer are affected by this move.
(PSW)
w
(A)
Example:
Move up stack pointer by two memory locations, that is, increment the pointer by one.
INCPTR: MOV A,PSW
;MOVE PSW CONTENTS TO ACC
INC A
;INCREMENT ACC BY ONE
MOV PSW,A
;MOVE ACC CONTENTS TO PSW
42
Содержание 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 ...