Sample
problem:
(4200H)
= 55H
Result
= (4300H) = AAH + 1 = ABH
Source
program:
LDA 4200H : Get the number
CMA : Complement the number
ADI, 01 H : Add one in the number
STA 4300H : Store the result
HLT : Terminate program execution
|
0 Comments