Experiment Title-5: A) 1's Complement of 16 Bit Number B) 2's Complement of 16 Bit Number

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Experiment Title-5

Student Name: Shivam Garg UID:20BCS3215


Branch: CSE Section/Group:20BCS618-A
Semester: fourth DateofPerformance:29 March 2022
Subject Name: MICROPROCESSOR AND INTERFACING LAB
Subject Code: 22E-20CSP-253

1. Aim/Overview of the practical:

a) 1's complement of 16 bit number

b) 2's complement of 16 bit number

2. Apparatus/Simulator used: JUBIN

3. Description/ Code:

a)

1's complement of 8 bit number

LDA 2000

MOV B,A

CMA

STA 2002
LDA 2001

MOV C,A

CMA

STA 2003

HLT

#ORG2000

#DB 23H,32H

b) 2's complement of 8 bit number

LDA 2000

MOV B,A

CMA

INR A

STA 2002

LDA 2001

MOV C,A

CMA

INR A

STA 2003

HLT

#ORG2000
#DB 23H,32H

4. Result/Output/Writing Summary:

a)

b)
Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):

Sr. No. Parameters Marks Obtained Maximum Marks


1.
2.
3.

You might also like