Intel mcs-48 Microscope & Magnifier User Manual


 
INSTRUCTION
SET
Examples:
MIR4: MOV R4,#HEXTEN ;THE VALUE OF THE SYMBOL
;'HEXTEN'
IS
MOVED INTO
;REG 4
MIR
5:
MOV R5,#PI*(R*R) ;THE VALUE OF THE
;EXPRESSION 'PI*(R*R)
;IS MOVED INTO REG 5
MIR
6:
MOV
R6,
#OADH ;'AD' HEX IS MOVED INTO
;REG
.6
MaV
@Rr,A
Move
Accumulator Contents
to
Data Memory
1
1
0
1
01000
r
l
This is a 2-cycle
instruction.
The
contents
of
the
accumulator
are moved
to
the resident
data
memory
location
whose
address is
specified
by
bits
0-5*
of
register
'r'.
Register
'r'
contents
are
unaffected.
((Rr))--
(A)
r=0-1
Example: Assume
RO
contains 00000111.
MDMA: MOV
@RO,A
;MOVE CONTENTS OF
ACC
TO
;LOCATION
7 (REG
7)
MaV
@Rr,#data Move Immediate Data
to
Data Memory
11
0 1 1 1 0 0 0 r 1 1
d7
d6 ds d4 1 d3 d2
d1
do 1
This
is
a 2-cycle instruction. The 8-bit value
specified by 'data'
is
moved to the resident data
memory location addressed by register 'r', bits
0-5~
((Rr))
__
data
r=0-1
Examples: Move the hexadecimal value AC3F to locations 62-63.
MIDM: MOV
RO,#62
;MOVE '62' DEC TO ADDR REG 0
MOV
@RO,#OACH
;MOVE 'AC' HEX
TO
LOCATION
62
INC
RO
;INCREMENT REGO
TO
'63'
MOV @RO,#3FH ;MOVE '3F' HEX
TO
LOCATION
63
MaV
T,A
Move
Accumulator Contents
to
Timer/Counter
10110100101
The contents
of
the
accumulator
are moved
to
the
timer/event-counter register.
(T)--
(A)
Example: Initialize and start event counter.
INITEC: CLR A ;CLEAR ACC TO ZEROS
MOV T,A ;MOVE ZEROS
TO
EVENT COUNTER
STRT
CNT
;ST ART COUNTER
Mnemonics copyright Intel Corporation
1976,
4-24
'0-6
for 8039/8049