[PDF] 8085 microprocessor architecture
[PDF] 8085 microprocessor assembly language programs pdf
[PDF] 8085 microprocessor book pdf for engineering
[PDF] 8085 microprocessor instruction set opcodes pdf
[PDF] 8085 microprocessor instruction set table pdf
[PDF] 8085 microprocessor instruction set with machine cycle pdf
[PDF] 8085 microprocessor pdf
[PDF] 8085 microprocessor pdf notes
[PDF] 8085 microprocessor programming tutorial pdf
[PDF] 8085 microprocessor programs examples
[PDF] 8085 microprocessor programs examples pdf
[PDF] 8085 microprocessor programs with flowchart pdf
[PDF] 8085 microprocessor sample programs pdf
[PDF] 8085 opcode format
[PDF] 8085 programming
Gursharan Singh Tatla
professorgstatla@gmail.com www.eazynotes.com1
Gursharan Singh Tatla
professorgstatla@gmail.com
Instruction Set of 8085
yAn instruction is a binary pattern designed inside a microprocessor to perform a specific function. yThe entire group of instructions that a microprocessor supports is called Instruction Set. y8085 has 246instructions. yEach instruction is represented by an 8-bit binary value. yThese 8-bits of binary value is called Op-Codeor
Instruction Byte.
2www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com
Classification of Instruction Set
yData Transfer Instruction yArithmetic Instructions yLogical Instructions yBranching Instructions yControl Instructions
3www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com
Data Transfer Instructions
4www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThese instructions move data between registers, or between memory and registers. yThese instructions copy data from source to destination. yWhile copying, the contents of source are not modified.
Data Transfer Instructions
OpcodeOperandDescription
MOVRd, Rs
M, Rs Rd, M
Copy from source to destination.
5www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThis instruction copies the contents of the source register into the destination register. yThe contents of the source register are not altered. yIf one of the operands is a memory location, its location is specified by the contents of the HL registers. yExample:MOV B, C or MOV B, M
Data Transfer Instructions
OpcodeOperandDescription
MVIRd,Data
M, Data
Move immediate 8-bit
6www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe 8-bit data is stored in the destination register or memory. yIf the operand is a memory location, its location is specified by the contents of the H-L registers. yExample:MVI B, 57H or MVI M, 57H
Data Transfer Instructions
OpcodeOperandDescription
LDA16-bit addressLoadAccumulator
7www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe contents of a memory location, specified by a 16- bit address in the operand, are copied to the accumulator. yThe contents of the source are not altered. yExample:LDA 2034H
Data Transfer Instructions
OpcodeOperandDescription
LDAXB/D Register
Pair
Load accumulator indirect
8www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe contents of the designated register pair point to a memory location. yThis instruction copies the contents of that memory location into the accumulator. yThe contents of either the register pair or the memory location are not altered. yExample:LDAX B
Data Transfer Instructions
OpcodeOperandDescription
LXIReg.pair, 16-bit
data
Load register pair immediate
9www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThis instruction loads 16-bit data in the register pair. yExample:LXI H, 2034 H
Data Transfer Instructions
OpcodeOperandDescription
LHLD16-bit addressLoad H-L registers direct
10www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThis instruction copies the contents of memory location pointed out by 16-bit address into register L. yIt copies the contents of next memory location into register H. yExample:LHLD 2040 H
Data Transfer Instructions
OpcodeOperandDescription
STA16-bit addressStore accumulator direct
11www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe contents of accumulator are copied into the memory location specified by the operand. yExample:STA 2500 H
Data Transfer Instructions
OpcodeOperandDescription
STAXReg. pairStore accumulator indirect
12www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe contents of accumulator are copied into the memory location specified by the contents of the register pair. yExample:STAX B
Data Transfer Instructions
OpcodeOperandDescription
SHLD16-bit addressStore H-L registers direct
13www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe contents of register L are stored into memory location specified by the 16-bit address. yThe contents of register H are stored into the next memory location. yExample:SHLD 2550 H
Data Transfer Instructions
OpcodeOperandDescription
XCHGNoneExchange H-L with D-E
14www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe contents of register H are exchanged with the contents of register D. yThe contents of register L are exchanged with the contents of register E. yExample:XCHG
Data Transfer Instructions
OpcodeOperandDescription
SPHLNoneCopy H-L pair to the Stack Pointer (SP)
15www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThis instruction loads the contents of H-L pair into SP. yExample:SPHL
Data Transfer Instructions
OpcodeOperandDescription
XTHLNoneExchange HȂL with top of stack
16www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe contents of L register are exchanged with the location pointed out by the contents of the SP. yThe contents of H register are exchanged with the next location (SP + 1). yExample:XTHL
Data Transfer Instructions
OpcodeOperandDescription
PCHLNoneLoad program counter with H-L contents
17www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe contents of registers H and L are copied into the program counter (PC). yThe contents of H are placed as the high-order byte and the contents of L as the low-order byte. yExample:PCHL
Data Transfer Instructions
OpcodeOperandDescription
PUSHReg. pairPush register pair onto stack
18www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe contents of register pair are copied onto stack. ySP is decremented and the contents of high-order registers (B, D, H, A) are copied into stack. ySP is again decremented and the contents of low-order registers (C, E, L, Flags) are copied into stack. yExample:PUSH B
Data Transfer Instructions
OpcodeOperandDescription
POPReg. pairPop stack to register pair
19www.eazynotes.com
Gursharan Singh Tatla
professorgstatla@gmail.com yThe contents of top of stack are copied into register pair. yThe contents of location pointed out by SP are copied to the low-order register (C, E, L, Flags). ySP is incremented and the contents of location are copied to the high-order register (B, D, H, A). yExample:POP H
Data Transfer Instructions
OpcodeOperandDescription
OUT8-bit port
address
Copy data from accumulator to a port with 8-
bit address
20www.eazynotes.com
Gursharan Singh Tatla
quotesdbs_dbs17.pdfusesText_23