0% found this document useful (0 votes)
15 views5 pages

Experiment - 5: 22E-20CSP-253

Uploaded by

Harshit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views5 pages

Experiment - 5: 22E-20CSP-253

Uploaded by

Harshit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Experiment - 5

Student Name: Gurman Singh UID: 20BCS5111


Branch: CSE Section/Group: 704-A
Semester: 4
Subject Code: 22E-20CSP-253
Subject Name: Microprocessor and Interfacing Lab

1. Aim/Overview of the practical:

a) 1’s complement of 16-bit number 

b) 2’s complement of 16-bit number 

2. Task to be done:

We have to do the 1’s and 2’s complement of a 16-bit number with the help of Jublin
Application.

3. Apparatus/Simulator used:

1. Jubin Application
2. 8085 Simulator
3. JDK

4. Description/ Code:

a) 1’s complement of 16-bit number 

#BEGIN 0000H

LXI H, 4000H

MOV A,M

CMA

STA 4002H

INX H
MOV A,M

CMA

STA 4003H

HLT

#ORG 4000H

#DB 71H,30H

b) 2’s complement of 16-bit number 

#BEGIN 0000H

MVI B,00

LXI H,4000H

MOV A,M

CMA

STA 4002H

JNC GO

INR B

GO:

INX H

MOV A,M

CMA

ADI 01

STA 4003H

HLT

#ORG 4000H

#DB 71H,30H
5. Output:

a.)
b.)

6. Learning outcomes (What I have learned):


1. Working of microprocessors.
2. Learn how to do mathematical operations in microprocessors.
3. Learn about 8085 simulators.
4. Operations of 16-bit numbers.
5. Learn about the different instructions that are needed to be given to the
memory to perform some tasks.

You might also like