Computer Science, asked by fdhbf60, 7 months ago

Write an assembly language program in 8085 microprocessor to add two 16 bit numbers with borrow. stored the result at memory 2005H.​

Attachments:

Answers

Answered by Anonymous
2

Explanation:

Write a program that simulates rolling a pair of dice. You can simulate rolling one die by choosing one of the integers 1, 2, 3, 4, 5, or 6 at random. The number you pick represents the number on the die after it is rolled. As pointed out in Section 2.5, the expression

(int)(Math.random()*6) + 1

does the computation to select a random integer between 1 and 6. You can assign this value to a variable to represent one of the dice that are being rolled. Do this twice and add the results together to get the total roll. Your program should report the number showing on each die as well as the total roll.

Similar questions