You are on page 1of 5

Date…………………………..

Experiment no: 07
Class: M.Sc 4th Semester Group………………………….
Roll no. 91 Sub……………………………..
Shift: Day Set……………………………...

TO PERFORM THE PROGRAM USING 8085 MICROPROCESSOR

A) IDENTIFICATION OF ODD OR EVEN PARITY OF GIVEN HEX NUMBER


B) MULTIPLICATION BY TWO, EMPLOYING BIT ROTATION
C) MULTIPLICATION OF TWO 8-BIT HEX NUMBERS WITHOUT
NEGLECTING CARRY

Apparatus Required
Microprocessor Kit/Device (8085)

Theory
It is programmable electronic chip ( Integrated circuit (IC). A single IC has
computing and decision making capabilities similar to central processing unit of
computer.
8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit
microprocessor designed by Intel in 1977 using NMOS technology.
It has the following configuration –
 8-bit data bus
 16-bit address bus, which can address upto 64KB
 A 16-bit program counter
 A 16-bit stack pointer
 Six 8-bit registers arranged in pairs: BC, DE, HL
 Requires +5V supply to operate at 3.2 MHZ single phase clock
The architecture of 8085 microprocessor mainly includes the timing & control unit,
Arithmetic and logic unit, decoder, instruction register, interrupt control, a register
array, serial input/output control. The most important part of the microprocessor is
the central processing unit. It has a set of registers for performing various
operations. The various registers include
Accumulator (register A)
Registers: B, C, D, E, H and L
· Stack pointer
· Program Counter
· Temporary register
The 8085 microprocessor has 74 basic instructions and 246 total instructions. The
instruction set of 8085 was defined by the manufacturer INTEL CORPORATION.
Each 8085 instruction has a one-byte (8-bit) operation codes or opcode. With 8-bit
binary opcode, a total of 256 different operation codes can be generated, each
representing a certain operation. It is used in washing machines, microwave ovens,
mobile phones, etc.

OBSERVATION OR CALCULATION
a) Identification of odd or even parity of given hex no.
Address Code Label Mnemonic Operand Comments
8010 Data ( 10 ) Data

Steps 1: Set the memory counter to data location and bring in ACC
8000 21 START LXI H, 8010 Set Memory Counter
8001 10
8002 80
8003 7E MOV A,M Get 1st no. in ACC

Steps 2: “OR” the contents of Accumulator with itself


8004 37 ORA A Set the flag
Steps 3: Check parity and store 00 for odd and EE for even at 8011
8005 E2 JPO H Advance pointer
8006 0C ODD If parity odd, jump
8007 80
8008 2C INR L Point to memory location
8009 36 MVI M,EE For result
800A EF
800B EF RST S Go to monitor
800C 2C ODD INR L Point to memory location
800D,
3600 MVI M,00 Store 00 in 8011
800E

Steps 4: Go back to monitor


800E EF RST 5 Go to Monitor

To run program → Next → Reset→ Go → 8000 → Execute


For result: Reset →Ex Mem→ 8010 → Next , we get
8010 – 10 ( Data ) 8010 – 30 ( Data )
8011 – 00 ( Odd parity ) 8011 – EF ( Even )

b) Multiplication by two, employing bit rotation


Address Code Label Mnemonic Operand Comments
800A Data ( 1A ) Data

Steps 1: load data of location 100 A in accumulator


8000 3A START LDA 800A Load no. in ACC
8001 0A
8002 80
Steps 2: Set the carry flag to zero
8003 37 8TC H Set Carry flat to 1
8004 3F CMC M Complement the carry

Steps 3: Rotate the accumulator through carry


8005 17 RAL Rotate Acc. Through Carry

Steps 4: Store the contents of accumulator in 200B


8006 32 STA 800B Store in 800B
8007 0B
8008 80

Steps 5: Rotate the accumulator through carry


8009 EF RST 5 Go to Monitor

For result: Next →Reset→ Go→ 8000 →Execute


To get result press Next →Reset → Ex Mem→ 800A→ Next
We get
800A – 1A
800B – 34

c) Multiplication of two 8-bit hex no. without neglecting carry


Address Code Label Mnemonic Operand Comments
8100 Data ( OA ) LSB of 1st no.
8101 Data ( OB ) MSB of 1st no.
8102 Result ( OO ) LSB of 2nd no.
8000 21 LXI H, 8100 MSB of 2nd no
8001 00 Result for LSB
8002 81 Result for MSB
8003 46 MOV B, M
8004 13 INX H
8005 4E MOV GM
8006 AF
8007 81
8008 05
8009 C2 INZ Loop Jump loop in no. zero
800A 07
800B 80
800C 23 INX H Increment of H-L pair
800D 77 MOV M,A Store the result
800E EF RST 5 Go to monitor

To run program Press Next →Reset→ Go→ 8000 →Execute and


To get result press Next → Reset → Ex Mem→ 8100→ Next we get
8100 – OA
8101 – OB
8102 – 6E

Result
i) Even parity is found of no. 30
ii) The multiplication of 1A by two is 34

You might also like