YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: 8085 micro processor instructions

8085 instructions

Dr Vinita kuamri

Page 2: 8085 micro processor instructions
Page 3: 8085 micro processor instructions

Data Transfer instructions

Page 4: 8085 micro processor instructions

MOV- MOV A,B

• MOV A,M

• MOV M,A

MVI B, 05

LDA, 2025

STA, 2037

LHLD, 2000

Page 5: 8085 micro processor instructions

Addition of 16 bit number

LHLD 200CXCHGLHLD 200EDAD DSHLD 2010RST 5

Page 6: 8085 micro processor instructions

Addition of 16 bit number

// two sixteen bit numbers are at 200C, 200D and 200E, 200F// results are stored in 2010 and 2011

# BEGIN 0000HLHLD 200C ; Load the HL pair with first number XCHG ; Exchange the HL and DE registersLHLD 200EDAD D ; Add HL and DE registersSHLD 2010 ; store the results in 2010RST 5

# ORG 200C# DB CAH,A7H, 6BH,B9H

Page 7: 8085 micro processor instructions
Page 8: 8085 micro processor instructions

• LXI D, 2027

• LXI H, 2025

• LXI B, 2000

• LDAX B; load accumulator with memory content which address is in BC register pair

• STAX B

• XCHG

Page 9: 8085 micro processor instructions

Write 8085 assembly language program for addition of two 8-bit numbers and sum is 8 bit (indirect addressing)

Page 10: 8085 micro processor instructions
Page 11: 8085 micro processor instructions

LXI B, 2050LDAX BMOV D,AINX BLDAX BADD DINX BSTAX B

Page 12: 8085 micro processor instructions

Arithmetic Operations

Page 13: 8085 micro processor instructions

• ADD B

• ADI, 59H

• ADC B; used for 16 bit addition

• ADC M

• ACI 57H; commonly used in 16 bit addition only. After addition previous carry flag is cleared

Page 14: 8085 micro processor instructions

ADC B (Addition of 16 bit No)(if BC and DE register pairs carry 16 bit Nos, result to be stored in BC register)

XRA / MVI A,00

MOV A,C

ADD E

MOV C, A

MOV A,B

ADC D

MOV B,A

Page 15: 8085 micro processor instructions

Logical Operations

Page 16: 8085 micro processor instructions
Page 17: 8085 micro processor instructions

Branch Operation

Page 18: 8085 micro processor instructions

Machine Control Operations

Page 19: 8085 micro processor instructions
Page 20: 8085 micro processor instructions
Page 21: 8085 micro processor instructions

Problems

Page 22: 8085 micro processor instructions

Write instructions to:a. Load 15H in accumulatorb. Decrement the accumulator

Page 23: 8085 micro processor instructions

a. LDA 2025 or LDAX B

b. DCR A

Page 24: 8085 micro processor instructions

Write instructions to load the hexadecimal number 65h inregister C and 92h in the accumulator A. Display thenumber 65h at port0 and 92h at port1.

Page 25: 8085 micro processor instructions

Specify the output at PORT1 if the following program is executed

MVI B, 82HMOV A,BMOV C,AMVI D, 37HOUT PORT1HLT

Page 26: 8085 micro processor instructions

Write a program using ADI instruction to add two hexadecimal numbers 3BH and 67H and to display the answer at an output port F2H.


Related Documents