2. INTRO
• Decimal numbers
INPUT
• Decimal numbers are placed in the registers in coded
form - Binary coded decimal (BCD )
ALU • Micro operations are performed
• Decimal numbers
output
3. DECIMAL ARITHEMATIC
MICROOPERATION SYMBOLS
A A+B
Add contents of registers A and B, and
transfer the sum into A.
B’
9’s complement of B.
A A + B’ +1
content of A plus 10’s complement of B into A
4. B B+ 1
Increment BCD number in B
dshr A
Decimal shift right register A
dshl A
Decimal shift left register A
7. Output of binary adder : Binary form .
Conversion to BCD
Binary sum ≤ 1001 : no conversion
Binary sum ≥ 1001 : non valid BCD
add binary 6 (0110)
3 different ways to add.
11. DIGIT SERIAL, BIT PARALLEL
ADDITION
Digits are applied to single BCD adder
serially.
Bits of each coded digit are transferred in
parallel.
For k digits – k micro operations.
17. SUBTRACTION
Using 9’s complement :
- Find 9’s complement of the –ve
number.
- Add the 2 numbers.
- IF result ≥ 10,add 6(0110).
- If the carry is generated add it with the
result, else find the 9’s complement of it.
22. USING 10’S COMPLEMENT
• Using 10’s complement :
- Find the 10’s complement of the number.
- Add the 2 numbers.
- If the result ≥ 10, add 6(0110).
- If the carry is not generated , then find
the 10’s complement of the result.