Experiment 4: 1's and 2's Complement of 8-Bit Number.: Jubin 8085 Simulator Java Language JDK
Experiment 4: 1's and 2's Complement of 8-Bit Number.: Jubin 8085 Simulator Java Language JDK
Experiment 4: 1's and 2's Complement of 8-Bit Number.: Jubin 8085 Simulator Java Language JDK
1. Aim/Overview of the practical: Write two programs to show 1’s and 2’s complement of
an 8-bit number.
2. Task to be done: We have to write two programs to show 1’s and 2’s complement of an
8-bit number.
Begin.
Move value in A Register.
Perform 1’s complement using CMA command.
Store the value of accumulator using STA command.
Halt the program
#BEGIN 0000H
MVI A, 40
CMA
STA 1001H
HLT
#BEGIN 0000H
MVI A, 40
CMA
STA 1001H
INR A
STA 1002H
HLT
6. Result/Output/Writing Summary:
1’s complement:
2’s complement:
Learning outcomes (What I have learnt):
Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):