INSTRUCTION SET
Example:
MOV128: MOV A,#128
MOVPA,@A
;MOVE '128' DEC TO ACC
;CONTENTS OF
129th LOCATION
;IN
CURRENT PAGE ARE MOVED TO
;ACC
MOVP3 A,@A Move Page 3 Data
to
Accumulator (Not in 8021,8022)
11110100111
This is a 2-cycle instruction. The contents
of
the
program memory location (within page
3)
addressed by
the accumulator are moved
to
the accumulator. The
program counter
is
restored following this operation.
(
PC
o-7)+(A)
(PCS_11)+0011
(A)+«PC))
Example: Look up ASCII equivalent
of
hexadecimal code in table
contained at the beginning
of
page
3.
Note that ASCII
characters are designated by a 7-bit code; the eighth
bit is always reset.
TABSCH:
MOV A,#OB8H ;MOVE 'B8' HEX TO ACC (10111000)
ANL
A,#7FH
;LOGICAL
AND ACC TO MASK
BIT
;7 (00111000)
MOVP3 A,@A ;MOVE
CONTENTS OF LOCATION
;'38' HEX IN PAGE 3 TO
ACC
;(ASCII '8')
Access contents
of
location in page 3 labelled TAB1.
Assume current program location is not in page
3.
TABSCH: MOV A,#LOW TAB1 ;ISOLATE BITS 0-7 OF LABEL
;ADDRESS VALUE
MOVP3 A,@A ;MOVE
CONTENTS OF PAGE 3
;LOCATION LABELED 'TAB1'
;TO ACC
MOVX
A,@R
r
Move External-Data-Memory Contents to Accumulator
11
000
I
000
r I (Not in 8021, 8022)
This is a 2-cycle instruction. The contents
of
the
external data memory location addressed by register
'r' are moved to the accumulator. Register 'r' contents
are unaffected.
(A)..-
«Rr)) r=0-1
Example: Assume
R1
contains 01110110.
MAXDM: MOVX A,@R1 ;MOVE
CONTENTS OF LOCATION
;118 TO ACC
Mnemonics
copyright
Intel
Corporation
1976.
4-26