Question: I NEED THIS IN ASSEMBLY LANGUAGE Purpose: To use CMP and conditional jumps Overview of Craps The game of craps uses two 6-sided dice, where

I NEED THIS IN ASSEMBLY LANGUAGE

Purpose: To use CMP and conditional jumps

Overview of Craps

The game of craps uses two 6-sided dice, where each die contains a number between 1 and 6. The total of the two sides that face up is the total for a roll of the dice.

The first roll that a player throws in Craps has three possible outcomes: they can win, they can lose, or they will continue to roll.

On the first roll, if the player gets a 7 or 11 that is a win.

On the first roll, if the player gets a 2, 3, or 12 that is a loss.

On the first roll, if the player gets anything else (4,5,6,8,9,10) then that is their mark(point) and they need to continue to roll trying to get that mark(point).

Lab 5

Simulate a first roll of two dice in Craps. For each first roll determine if the roll is a Win, a Loss, or a Mark.

Tally the occurrence of each possibility. After the loop, display the counts for each possibility.

Do this for the number of rolls the user wants. (you can assume for this lab they will not enter a number <= 0)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!