Advertisement Remove all ads

Write an Assembly Language Program to increment the contents of alternate memory locations each by two from 1051 H to 1060 H. - Computer Science 2

Advertisement Remove all ads
Advertisement Remove all ads
Advertisement Remove all ads
Answer in Brief

Write an Assembly Language Program to increment the contents of alternate memory locations each by two from 1051 H to 1060 H.

Advertisement Remove all ads

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
Concept: Instruction Set and Programming of 8085
  Is there an error in this question or solution?

APPEARS IN

Advertisement Remove all ads
Share
Notifications

View all notifications


      Forgot password?
View in app×