Experiment-3: 8085 ALP to Subtract of two 8 bit numbers with and without borrow 8085 MPI Lab by Ravinder Nath Rajotiya - March 13, 2021June 3, 20210 Experiment-3: Write a program to perform: i. Subtraction of two 8 bit numbers without borrows. ii. Subtraction of two 8 bit numbers with borrows. Objective: To understand the assembly program To draw flowchart for subtraction of two numbers To develop the assembly program for subtraction To analyse the program and interpret errors and result Requirement: Operating System – Windows, Linux 8085 Simulator Example-1. Subtraction of two 8 bit numbers without borrows. Algorithmic Steps: Input two numbers say one in Accumulator and another in register B Subtract B from A ; A= A-B Check carry ( if A <B, carry flag will be set and difference will be in 2’s complement, Carry=’1’ means difference is -ve. Do correction (take 2’s complement to find magnitude of -ve number) Save the result
8085 Experiment List 8085 MPI Lab by Ravinder Nath Rajotiya - March 12, 2021June 3, 20210 COMPUTER ORGANISATION AND ARCHITECTURE LAB Paper Code: ETCS-260 L T/P C Paper: Computer Organisation and Architecture Lab 0 2 1 List of Experiments: Based on 8085 simulator To draw and explain Experiment-1 8085 Microprocessor 8085 MPI Lab - Care4you Block diagram and pin diagram of 8085. Instruction set of 8085. Write a program to perform : i. Addition of two 8 bit numbers without carry. ii. Addition of two 8 bit numbers with carry Experiment-2 : 8085 Microprocessor 8085 MPI Lab - Care4you Write a program to perform: i. Subtraction of two
Experiment-2 : 8085 ALP to add to add two 8-bit numbers 8085 MPI Lab by Ravinder Nath Rajotiya - March 10, 2021June 3, 20210 Experiment-2: Write a program to perform : Addition of two 8 bit numbers without carry. Addition of two 8 bit numbers with carry Objective: To understand the assembly instructions To design assembly program To analyze the given program Flow Chart: Two WAYS OF WRITING PROGRAM IN GNU 8085 SUMULATOR Using direct Addressing Using Register Indirect Program to add two 8-bit numbers(Two approaches) 1st Method 2nd Method Address OP-CODE Mnemonic Comments Address OP-CODE Mnemonic Comments 4000 54H ;1ST OPERAND 4000 X 4001 9FH ;2ND OPERAND 4001 Y 4002 ;RESULT 4002 Z 4008 3A,00,40 LDA 4000 4008 21 00 40 LXI H, X 400B 47 MOV B, A 400B 7E MOV A, M 400C 3A,01,40 LDA 4001 400C 23 INX H 400F 80 ADD B 400D 70 MOV B,M 4010 32,02,40 STA 4002 400E 88 ADD B 4013 76 HLT 400F 23 INX H 4010 77 MOV M,A 4011 76 HLT Addition of two 8 bit numbers with carry The carry is involved in addition either when we add an array of numbers or while adding two 16-bit numbers. First bytes are added with ADD instruction. Addition may result in carry, So
Experiment-1 8085 Microprocessor 8085 MPI Lab by Ravinder Nath Rajotiya - March 10, 2021June 3, 20210 Experiment-1: To draw and explain-(i)Block diagram and pin diagram of 8085. ii. Instruction Set 8085 Objective: To familiarize with 8085 microprocessor internal blocks and their use To Learn with the pin diagram of 8085 and their use To understand the instruction set to analyze how and where to use the instructions. Explanation: Internal Block diagram of 8085 - L-3 Internal Architecture of 8085 8085 Microprocessor - Care4you PIN Diagram of 8085: 8085 PIN and Signal Description 8085 Microprocessor - Care4you Instruction set of 8085. The different instructions under data transfer category are listed in table below: Sl Data Transfer instructions Arithmetic instructions JUMP instructions Call instructions Logical instructions Flag and M/C control instructions 1 MVI Reg/Mem,8-bit data ADDReg/Mem JMP Addr/Lbl Call Addr CMP opr CLC 2 MOV Rd, Rs ADC Reg/Mem CALL Addr/Lbl CC CPI Immidiate_opr CMC 3 MOV Rd, M ADI 8-bit data RET CNC ANA opr STC 4 LXI Rp,16-bit Data ACI 8-bit data RST