Experiment - 5: 22E-20CSP-253
Experiment - 5: 22E-20CSP-253
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:
#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
#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.)