8085 Data
8085 Data
Example LDAX K
The instruction loads 16-bit data in the
register pair designated in the register or
Load the register pair
LXI Reg. pair, 16-bit data the memory.
immediate
Example LXI K, 3225L
The instruction copies the contents of the
memory location pointed out by the
address into register L and copies the
Load H and L
LHLD 16-bit address contents of the next memory location
registers direct
into register H.
STA 16-bit address 16-bit address This is a 3-byte instruction, the second
byte specifies the low-order address and
the third byte specifies the high-order
address.
Example STA 325K
The contents of the accumulator are
copied into the memory location
Store the accumulator
STAX 16-bit address specified by the contents of the operand.
indirect
Example STAX K
The contents of register L are stored in
the memory location specified by the 16-
bit address in the operand and the
contents of H register are stored into the
next memory location by incrementing
the operand.
Store H and L
SHLD 16-bit address
registers direct
This is a 3-byte instruction, the second
byte specifies the low-order address and
the third byte specifies the high-order
address.
Example XCHG
The instruction loads the contents of the
H and L registers into the stack pointer
register. The contents of the H register
Copy H and L
provide the high-order address and the
SPHL None registers to the stack
contents of the L register provide the
pointer
low-order address.
Example SPHL
The contents of the L register are
exchanged with the stack location
pointed out by the contents of the stack
pointer register.
Exchange H and L
XTHL None
with top of stack The contents of the H register are
exchanged with the next stack location
(SP+1).
Example XTHL
Push the register pair The contents of the register pair
PUSH Reg. pair
onto the stack designated in the operand are copied
onto the stack in the following sequence.
Example PUSH K
The contents of the memory location
pointed out by the stack pointer register
are copied to the low-order register (C,
E, L, status flags) of the operand.
Example POPK
The contents of the accumulator are
Output the data from copied into the I/O port specified by the
OUT 8-bit port address the accumulator to a operand.
port with 8bit address
Example OUT K9L
The contents of the input port designated
Input data to
in the operand are read and loaded into
accumulator from a
IN 8-bit port address the accumulator.
port with 8-bit
address
Example IN5KL