• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
8085 Instruction SetPage 1
8085 INSTRUCTION SET
INSTRUCTION DETAILS
DATA TRANSFER INSTRUCTIONS
OpcodeOperandDescriptionCopy from source to destinationMOVRd, RsThis instruction copies the contents of the sourceM, Rsregister into the destination register; the contents oRd, Mthe source register are not altered. If one of the operands is amemory location, its location is specified by the contents of the HL registers.Example: MOV B, C or MOV B, MMove immediate 8-bitMVIRd, dataThe 8-bit data is stored in the destination register oM, datamemory. If the operand is a memory location, its location isspecified by the contents of the HL registers.Example: MVI B, 57H or MVI M, 57HLoad accumulator LDA16-bit addressThe contents of a memory location, specified by a16-bit address in the operand, are copied to the accumulator.The contents of the source are not altered.Example: LDA 2034HLoad accumulator indirectLDAXB/D Reg. pairThe contents of the designated register pair point to a memorylocation. This instruction copies the contents of that memorylocation into the accumulator. The contents of either theregister pair or the memory location are not altered.Example: LDAX BLoad register pair immediateLXIReg. pair, 16-bit dataThe instruction loads 16-bit data in the register pair designated in the operand.Example: LXI H, 2034H or LXI H, XYZLoad H and L registers directLHLD16-bit addressThe instruction copies the contents of the memory location pointed out by the 16-bit address into register L and copiesthe contents of the next memory location into register H. Thecontents of source memory locations are not altered.Example: LHLD 2040H
 
8085 Instruction SetPage 2
Store accumulator directSTA16-bit addressThe contents of the accumulator are copied into the memorylocation specified by the operand. 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 4350HStore accumulator indirectSTAXReg. pairThe contents of the accumulator are copied into the memorylocation specified by the contents of the operand (register  pair). The contents of the accumulator are not altered.Example: STAX BStore H and L registers directSHLD16-bit addressThe contents of register L are stored into the memory locationspecified by the 16-bit address in the operand and the contentsof H register are stored into the next memory location byincrementing the operand. The contents of registers HL arenot altered. This is a 3-byte instruction, the second bytespecifies the low-order address and the third byte specifies thehigh-order address.Example: SHLD 2470HExchange H and L with D and EXCHGnoneThe contents of register H are exchanged with the contents oregister D, and the contents of register L are exchanged withthe contents of register E.Example: XCHGCopy H and L registers to the stack pointer SPHLnoneThe instruction loads the contents of the H and L registers intothe stack pointer register, the contents of the H register  provide the high-order address and the contents of the Lregister provide the low-order address. The contents of the Hand L registers are not altered.Example: SPHLExchange H and L with top of stack XTHLnoneThe contents of the L register are exchanged with the staclocation pointed out by the contents of the stack pointer register. The contents of the H register are exchanged withthe next stack location (SP+1); however, the contents of thestack pointer register are not altered.Example: XTHL
 
8085 Instruction SetPage 3
Push register pair onto stack PUSHReg. pairThe contents of the register pair designated in the operand arecopied onto the stack in the following sequence. The stack  pointer register is decremented and the contents of the high-order register (B, D, H, A) are copied into that location. Thestack pointer register is decremented again and the contents of the low-order register (C, E, L, flags) are copied to thatlocation.Example: PUSH B or PUSH APop off stack to register pair POPReg. pairThe contents of the memory location pointed out by the stac pointer register are copied to the low-order register (C, E, L,status flags) of the operand. The stack pointer is incremented by 1 and the contents of that memory location are copied tothe high-order register (B, D, H, A) of the operand. The stack  pointer register is again incremented by 1.Example: POP H or POP AOutput data from accumulator to a port with 8-bit addressOUT8-bit port addressThe contents of the accumulator are copied into the I/O portspecified by the operand.Example: OUT F8HInput data to accumulator from a port with 8-bit addressIN8-bit port addressThe contents of the input port designated in the operand areread and loaded into the accumulator.Example: IN 8CH
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...