LDA 8000H ;Load the number from memory
CMA ;Complement the accumulator
STA 8050H ;Store the 1's complemented result
INR A ;Increase A by 1
STA 8051H ;Store the 2's complemented result
HLT ;Terminate the program
LDA 8000H ;Load the number from memory
0 Comments