Professional Documents
Culture Documents
S.Y. (CSE) - I Subject: Digital Systems & Microprocessor Lab
S.Y. (CSE) - I Subject: Digital Systems & Microprocessor Lab
Theory:
Algorithm: -
1. Register addressing:
a. Take first 8-bit data in one Register.
b. Take second 8-bit data in another Register
c. Add the two operand
d. Store result in any register.
2. Direct addressing:
a. Take first 8-bit data in accumulator from one memory location.
b. Move data from accumulator to another reg.
c. Take another 8-bit data in accumulator from another memory location.
d. Add these two data.
e. Store result at another memory location.
3. Indirect addressing:
a. Load one reg. pair.
b. Move data from memory i.e. specified by register pair to accumulator.
c. Add accumulator and memory location contents.
d. Store result.
EXPT.NO.07 B)
Title: Subtractions of two 8-bit nos.
Theory:
Algorithm: -
1) Register addressing:
a. Take first 8-bit data in one Register.
b. Take second 8-bit data in another Register.
c. Subtract the two operand.
d. Store result in any register.
2) Direct addressing:
a. Take first 8-bit data in accumulator from one memory location.
b. Move data from accumulator to another reg.
c. Take another 8-bit data in accumulator from another memory location.
d. Subtracts these two data.
e. Store result at another memory location.
3) Indirect addressing:
a. Load one reg. pair.
b. Move data from memory i.e. specified by register pair to accumulator
c. Subtracts memory contents from accumulator.
d. Store result.