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

View all notifications

Write ALP to multiply number stored at 8085H by 09H and store result at 8086H and 8087H, with lower byte at 8086H. - HSC Science (Computer Science) 12th Board Exam - Computer Science 2

Login
Create free account


      Forgot password?

Question

Write ALP to multiply number stored at 8085H by 09H and store result at 8086H and 8087H, with lower byte at 8086H.

Solution

Mnemonics Comment
Opcode Operand
MVI A, 00 ; Store 00 to Acc
MOV D, A ; Store 00 to D Reg
   LXI H, 8085 ; Reg 8085 in HL pair
MOV B, M ; store content of Memory to B Reg
MVI C, 09 ; Store count in C Register
BACK: ADD B ; Addition of B reg with Acc.
           JNC : NEXT ; Increment D Reg. by 1
           INR D ; Decrement counter by 1
NEXT : DCR C ; Decrement counter by 1
          JNZ : BACK ; Jump C ? 0; go to Back
          INX H ; Increment HL pair by 1
          MOV M, A ; Result stored from Acc. to memory
          INX H ; Increment HL pair by 1
          MOV M, D ; Store D reg to memory
          RST 1.0 ; Restart.
  Is there an error in this question or solution?

APPEARS IN

 2014-2015 (March) (with solutions)
Question 5.1.1 | 5.00 marks
Solution Write ALP to multiply number stored at 8085H by 09H and store result at 8086H and 8087H, with lower byte at 8086H. Concept: Introduction to Microprocessors and Organization of 8085.
S
View in app×