Advertisements
Advertisements
Question
Write an Assembly Language Program to increment the contents of alternate memory locations each by two from 1051 H to 1060 H.
Answer in Brief
Advertisements
Solution
| Label | Mnemonics + Operand | Comment |
| LDA 1051 | Load accumulator from 1051 memory location | |
| INR A | Increment accumulator by 1 | |
| INR A | Increment accumulator by 1 | |
| LDA 1053 | Load accumulator from 1053 memory location | |
| INR A | Increment accumulator by 1 | |
| INR A | Increment accumulator by 1 | |
| LDA 1055 | Load accumulator from 1055 memory location | |
| INR A | Increment accumulator by 1 | |
| INR A | Increment accumulator by 1 | |
| LDA 1057 | Load accumulator from 1057 memory location | |
| INR A | Increment accumulator by 1 | |
| INR A | Increment accumulator by 1 | |
| LDA 1059 | Load accumulator from 1059 memory location | |
| INR A | Increment accumulator by 1 | |
| INR A | Increment accumulator by 1 | |
| RST 1.0 | Restart |
shaalaa.com
Is there an error in this question or solution?
