ABSTRACT

Chapter 3 discusses the principles of four elementary basic arithmetic operations and their realization in assembly language. Operations are performed for all formats presented in the previous chapter. Four operations, that means, addition, subtraction, multiplication and division are exclusively for BIN format as being easy to realize. First three of them are discussed also for signed numbers represented in 2's complement format and addition together with subtraction for the others, i.e. BCD, ASCII and sign-magnitude. Nonlinear function approximation methods are shortly mentioned using iterative techniques or simple lookup tables. For some cases, the missing arithmetic instructions of real microprocessor were programmatically emulated according to ‘filling gaps’ strategy.