1's complement of the number
LDA 2200H
CMA
STA 2300H
HLT
cma will give 1's complement of a number
2's complement of a number
LDA 2200H
CMA
ADI 01H
STA 2300H
HLT
here first the once's complent of the number is determined and then one is added to it
You might be also interested in:
:: Traffic light control system using 8086
:: Assembly Language Program to serve NMI
:: Interfacing Stepper Motor to 8086 using 8255
No comments:
Post a Comment