Page 278 - FUNDAMENTALS OF COMPUTER
P. 278
NPP
278 Fundamentals of Computers NPP
47 – 69 = – 22
The 10’s complement subtraction method 10’s H$m°påßb_|Q> KQ>mZo H$s {H«$`m H$mo g§{já _| Bg
can be summarised as: àH$ma go {bIm Om gH$Vm h¡…
1. Take 10’s complement of subtrahend. 1. (-) dmbr g§»`m H$m 10’s H$m°påßb_|Q> bmo &
2. Replace (–) sign with (+ ) put 10’s comple- 2. (-) H$s OJh (+) {bImo VWm (-) dmbr g§»`m
ment in place of subtrahend and add. Ho$ ñWmZ na CgH$m 10’s H$m°påßb_|Q> {bImo d Omo‹S>moŸ&
3. If there is a carry at the end, the result is 3. `{X A§V _| hm{gb AmVm h¡ Vmo n[aUm_ YZmË_H$
positive. Neglect carry. If there is no carry; h¡ Am¡a `h hm{gb H$mo N>mo‹S> XoZo na àmá hmoJmŸŸ& `{X
Take 10’s complement of the sum and put hm{gc Zht AmVm h¡ Vmo n[aUm_ F$UmË_H$ h¡ Am¡a
a (–) sign.
`h `moJ H$m 10’s H$m°påßb_|Q coZo na àmßV hmoJmŸ&
Procedure can best be illustrated using a g§nyU© {d{Y H$mo EH$ âbmo MmQ>© H$s ghm`Vm go Xem©`m
flowchart: Om gH$Vm h¡…
Start
Replace (-) sign
with (+) and Add
Is
No a carry Yes
at the
end?
Take 10’s Complement
of the sum. Put a
(-) sign
Write
Result
Stop
10’s Complement Subtraction Method