EasyManua.ls Logo

Intel 8080 - B2_Page_31

Intel 8080
224 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MVI
Chapter
3.
Instruction
Set
This instruction copies the
contents
of
the memory location addressed
by
the
Hand
L regi,ters into the specified
·register. The first operand must name the destination register. The second operand must
be
M.
M
is
a symbolic
reference
to
the
Hand
L registers.
1
0
ID
Cycles:
States:
Addressing:
Flags:
Examples:
Label
Opcode
LDACe:
MOV
MOV
NULOP:
MOV
D D
2
7
register
none
Operands
A,M
E,A
C,C
~
indirect
Comment
;LOAD
ACCUM
FROM MEMORY
;COPY
ACCUM
INTO E
REG
;NULL OPERATION
MOVE
IMMEDIATE
MVI
is
a two-byte instruction; its second byte contains the source data to
be
moved.
MVI
moves one byte
of
data by copying its second byte into the destination field. The instruction's operands specify whether the move
is
to a register or to memory.
Move Immediate to Register
Opcode Operand
MVI
reg,data
The first operand must name one
of
the registers A through E, H or L as a destination for the move.
The second operand specifies the actual data to
be
moved. This data may
be
in
the form
of
a number, an ASCII
constant,
the
label
of
some previously defined value, or an expression. The data must not exceed one byte.
The assembler's relocation feature treats
all
external and relocatable symbols as 16·bit addresses. When
one
of
these symbols appears
in
the operand expression
of
an immediate instruction, it must
be
preceded
by
either the
HIGH or
LOW
operator
to specify which byte
of
the address
is
to
be
used
in
the evaluation
of
the expression.
When neither
operator
is
present, the assembler assumes the
LOW
operator
and issues
an
error message.
0 0 D D
D
j
data
Cycles:
2
States:
7
Addressing:
immediate
Flags:
none
3-37

Table of Contents

Related product manuals