Addition and subtraction are carried out in the MPU by hardware. They need only single instructions and within the limits of the accumulator the MPU does the rest. Unfortunately many MPUs do not have a similar facility for multiplication and division. As they have no single commands for ‘multiply’ or ‘divide’, programs must be written for these operations.
Weitere Kapitel dieses Buchs durch Wischen aufrufen
- Integer Multiplication and Division Subroutines
M.A., C.Eng., F.I.Prod.E., M.I.E.E., M.I.M.C. Eric Huggins
- Macmillan Education UK