[PDF] INSTRUCTION SET OF 8085 memory location specified by the





Previous PDF Next PDF



INSTRUCTION SET OF 8085

memory location specified by the contents of the register pair. Example: STAX B. Page 13. Data Transfer Instructions. Opcode.



8085 INSTRUCTION SET

8085 Instruction Set Example: MVI B 57H or MVI M



1. Instruction Formats One address. Two address. Zero address

For example the instruction that specifies an arithmetic addition is defined In the first method



Lecture Note On Microprocessor and Microcontroller Theory and

The instruction set of a microprocessor is provided in two forms: binary machine code and mnemonics. Examples 8085 to Intel Pentium.



8085 instruction set Logical instruction Control instruction Branch

8085 instruction set. Logical instruction. Description. Operand. Opcode shown by setting the flags of the PSW as follows: ... Example: CMP B or CMP M.



Prepared By Papa Rao N Asst. Professor

Figure: 8085 Micro Processor Architecture ?8085 instruction set consists of the following ... For example the arithmetic logic



19MZC12&19RAC12 / MICROPROCESSOR AND APPLICATIONS

Instruction Set. The entire group of instructions called the instruction set



Timing diagram of 8085

Each instruction of the processor has one byte opcode. • The opcodes are stored in memory. So the processor executes the opcode fetch machine cycle to fetch 



Computer Organization and Architecture Lecture Notes

supercomputers and serves as an excellent example of CISC design. An alternative approach to processor design in the reduced instruction set computer (RISC) 



UNIT I – 8085 MICROPROCESSOR

example a 32-bit microprocessor that runs at 50MHz is more classified as being either RISC (reduced instruction set computer) or.

INSTRUCTION SET OF 8085

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.

Classification of Instruction Set

Data Transfer Instruction

Arithmetic Instructions

Logical Instructions

Branching Instructions

Control Instructions

Data Transfer Instructions

These instructions move data between registers, or between memory and registers. These instructions copy data from source to destination. While copying, the contents of source are not modified.

Data Transfer Instructions

OpcodeOperandDescription

MOVRd, Rs

Rd, M

M, RsCopy from source to destination.

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 yMOV B, M yMOV M, C

Data Transfer Instructions

OpcodeOperandDescription

MVIRd,Data

M, DataMove immediate 8-bit

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 A, 57H yMVI M, 57H

Data Transfer Instructions

OpcodeOperandDescription

LXIReg.pair, 16-bit

dataLoad register pair immediate yThis instruction loads 16-bit data in the register pair. yExample:LXI H, 2034 H

Data Transfer Instructions

OpcodeOperandDescription

LDA16-bit addressLoadAccumulator

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 PairLoad accumulator indirect

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

LHLD16-bit addressLoad H-L registers direct

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

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

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

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

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

Arithmetic Instructions

These instructions perform the operations like:

Addition

Subtract

Increment

Decrement

Addition

Any 8-bit number, or the contents of register, or the contents of memory location can be added to the contents of accumulator.

The result (sum) is stored in the accumulator.

No two other 8-bit registers can be added directly. Example:The contents of register B cannot be added directly to the contents of register C.

Subtraction

Any 8-bit number, or the contents of register, or the contents of memory location can be subtracted from the contents of accumulator.

The result is stored in the accumulator.

Subtraction is performed in 2's complement form.

If the result is negatiǀe, it is stored in 2's complement form. No two other 8-bit registers can be subtracted directly.

Increment / Decrement

The 8-bit contents of a register or a memory location can be incremented or decremented by 1. The 16-bit contents of a register pair can be incremented or decremented by 1. Increment or decrement can be performed on any register or a memory location.

Arithmetic Instructions

OpcodeOperandDescription

ADDR

MAdd register or memory to accumulator

yThe contents of register or memory are added to the contents of accumulator. yThe result is stored in accumulator. yIf the operand is memory location, its address is specified by H-L pair. yAll flags are modified to reflect the result of the addition. yExample:ADD B or ADD M

Arithmetic Instructions

OpcodeOperandDescription

ADCR

MAdd register or memory to accumulator with

carry yThe contents of register or memory and Carry Flag (CY) are added to the contents of accumulator. yThe result is stored in accumulator. yIf the operand is memory location, its address is specified by H-L pair. yAll flags are modified to reflect the result of the addition. yExample:ADC B or ADC M

Arithmetic Instructions

OpcodeOperandDescription

ADI8-bit dataAdd immediate to accumulator

yThe 8-bit data is added to the contents of accumulator. yThe result is stored in accumulator. yAll flags are modified to reflect the result of the addition. yExample:ADI 45 H

Arithmetic Instructions

OpcodeOperandDescription

ACI8-bit dataAdd immediate to accumulator with carry yThe 8-bit data and the Carry Flag (CY) are added to the contents of accumulator. yThe result is stored in accumulator. yAll flags are modified to reflect the result of the addition. yExample:ACI 45 H

Arithmetic Instructions

OpcodeOperandDescription

DADReg. pairAdd register pair to H-L pair

yThe 16-bit contents of the register pair are added to the contents of H-L pair. yThe result is stored in H-L pair. yIf the result is larger than 16 bits, then CY is set. yNo other flags are changed. yExample:DAD B

Arithmetic Instructions

OpcodeOperandDescription

SUBR

MSubtract register or memory from accumulator

yThe contents of the register or memory location are subtracted from the contents of the accumulator.

yThe result is stored in accumulator. yIf the operand is memory location, its address is specified by H-L pair. yAll flags are modified to reflect the result of subtraction. yExample:SUB B or SUB M

Arithmetic Instructions

OpcodeOperandDescription

SBBR

MSubtract register or memory from accumulator

with borrow

yThe contents of the register or memory locationand Borrow Flag (i.e. CY)are subtracted from the contents of the accumulator.

yThe result is stored in accumulator. yIf the operand is memory location, its address is specified by H-L pair. yAll flags are modified to reflect the result of subtraction. yExample:SBB B or SBB M

Arithmetic Instructions

OpcodeOperandDescription

SUI8-bit dataSubtract immediate from accumulator

yThe 8-bit data is subtracted from the contents of the accumulator. yThe result is stored in accumulator. yAll flags are modified to reflect the result of subtraction. yExample:SUI 45 H

Arithmetic Instructions

OpcodeOperandDescription

SBI8-bit dataSubtract immediate from accumulator with borrow yThe 8-bit data and the Borrow Flag (i.e. CY) is subtracted from the contents of the accumulator. yThe result is stored in accumulator. yAll flags are modified to reflect the result of subtraction. yExample:SBI 45 H

Arithmetic Instructions

OpcodeOperandDescription

INRR

MIncrement register or memory by 1

yThe contents of register or memory location are incremented by 1. yThe result is stored in the same place. yIf the operand is a memory location, its address is specified by the contents of H-L pair. yExample:INR B or INR M

Arithmetic Instructions

OpcodeOperandDescription

INXRIncrement register pair by 1

yThe contents of register pair are incremented by 1. yThe result is stored in the same place. yExample:INX H

Arithmetic Instructions

OpcodeOperandDescription

DCRR

MDecrement register or memory by 1

yThe contents of register or memory location are decremented by 1. yThe result is stored in the same place. yIf the operand is a memory location, its address is specified by the contents of H-L pair. yExample:DCR B or DCR M

Arithmetic Instructions

OpcodeOperandDescription

DCXRDecrement register pair by 1

yThe contents of register pair are decremented by 1. yThe result is stored in the same place. yExample:DCX H

Logical Instructions

These instructions perform logical operations on data stored in registers, memory and status flags.

The logical operations are:

AND OR XOR

Rotate

Compare

Complement

AND, OR, XOR

Any 8-bit data, or the contents of register, or memory location can logically have

AND operation

OR operation

XOR operation

with the contents of accumulator.

The result is stored in accumulator.

Rotate

Each bit in the accumulator can be shifted either left or right to the next position.

Compare

Any 8-bit data, or the contents of register, or memory location can be compares for:

Equality

Greater Than

Less Than

with the contents of accumulator.

The result is reflected in status flags.

Complement

The contents of accumulator can be complemented.

Each 0 is replaced by 1 and each 1 is replaced by 0.

Logical Instructions

OpcodeOperandDescription

CMPR

MCompare register or memory with accumulator

yThe contents of the operand (register or memory) are compared with the contents of the accumulator. yBoth contents are preserved . yThe result of the comparison is shown by setting the flags of the PSW as follows:

Logical Instructions

OpcodeOperandDescription

CMPR

MCompare register or memory with accumulator

yif (A) < (reg/mem): carry flag is set yif (A) = (reg/mem): zero flag is set yif (A) > (reg/mem): carry and zero flags are reset. yExample:CMP B or CMP M

Logical Instructions

OpcodeOperandDescription

CPI8-bit dataCompare immediate with accumulator

yThe 8-bit data is compared with the contents of accumulator. yThe values being compared remain unchanged. yThe result of the comparison is shown by setting the flags of the PSW as follows:

Logical Instructions

OpcodeOperandDescription

CPI8-bit dataCompare immediate with accumulator

yif (A) < data: carry flag is set yif (A) = data: zero flag is set yif (A) > data: carry and zero flags are reset yExample:CPI 89H

Logical Instructions

OpcodeOperandDescription

ANAR

MLogical AND register or memory with

accumulator yThe contents of the accumulator are logically ANDedwith the contents ofquotesdbs_dbs17.pdfusesText_23
[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