HSC Science (Computer Science) 12th Board ExamMaharashtra State Board
Share
Notifications

View all notifications
Books Shortlist
Your shortlist is empty

Write an Assembly Language Program to fill the memory locations 4500H to 4504 with the Hexadecimal numbers 09 H to ODH respectively. - HSC Science (Computer Science) 12th Board Exam - Computer Science 2

Login
Create free account


      Forgot password?

Question

Write an Assembly Language Program to fill the memory locations 4500H to 4504 with the Hexadecimal numbers 09 H to ODH respectively.

Solution

Label Mnemonics Comments
  LXI H, 4500 ; Initialize HL pa ir with starting add ress
  MVI A, 09H ; A = 09H
  MVI B, 05H ; Count in reg. B
UP: MOV M, A ; Copy data 09H in 4500 H
  INX H ; Increment HL pair
  INR A ; Increment content in A by 1
  DCR B ; Decrement count
  JNZ UP ; Jump to label UP if count in not zero
  RST 1.0 ; Restart
  Is there an error in this question or solution?

APPEARS IN

 2016-2017 (March) (with solutions)
Question 5.1.3 | 5.00 marks
Solution Write an Assembly Language Program to fill the memory locations 4500H to 4504 with the Hexadecimal numbers 09 H to ODH respectively. Concept: Instruction Set and Programming of 8085.
S
View in app×