1's & 2's Complement 16bit Number
1's & 2's Complement 16bit Number
1. Aim:
2. Theory:
Simply invert each bit of given binary number, which will be 01010001. Then add 1
to the LSB of this result, i.e., 01010001+1=01010010 which is answer.
Simply invert each bit of given binary number, which will be 01110.110 Then add 1
to the LSB of this result, i.e., 01110.110+1=01110.111 which is answer.
3. Apparatus/Simulator used:
1. Jubin Application
2. 8085 Simulator
3. JDK
4.a. Algorithm:
5.a. Code:
# BEGIN 0000H
LXI H,AA00
MOV A,M
CMA
STA AA02
INX H
MOV A,M
CMA
STA AA03
HLT
# ORG AA00
# DB 74H,20H# DB 74H,20H
6.a. Result:
4.b. Algorithm:
5.b. Code:
# BEGIN 0000H
LXI H,AA00
MVI B,00
MOV A,M
CMA
ADI 01
STA AA02
JNC GO
INR B
GO: INX H
MOV A,M
CMA
STA AA03
HLT
# ORG AA00
# DB 74H,20H
6.b. Result:
Learpning outcomes (What I have learnt):
1. Working of microprocessors.
2. Learn how to preform 1’s and 2’s complement of 16bits data in microprocessors.
3. Learn about 8085 simulator.
4. Learn about the different instructions that are needed to be given to the
memory to perform some tasks.
Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):