Game_Of_Craps in MicroProcessor Assembly Language using Irvine Library. Write th
ID: 3573917 • Letter: G
Question
Game_Of_Craps in MicroProcessor Assembly Language using Irvine Library.
Write the Games of Craps in MASM assembly language. Please provide comments as required.
This program simulates the game of Craps : Here is the basic setup:
The game involves two dice. Each die has six faces. These faces contain 1, 2, 3, 4, 5 and 6 spots, respectively.
The player plays against the "house", rather than against another player.
Note that the first throw of the dice is handled differently than subsequent throws.
Here is how the game is played:
The player rolls two dice.
After the dice have come to rest, the player adds the spots on the two upward faces to get their sum.
If the sum is 7 or 11 on the first throw, the player wins.
If the sum is 2, 3 or 12 on the first throw (these three values are called "craps"), the player loses (i.e., the "house" wins).
If the sum is 4, 5, 6, 8, 9 or 10 on the first throw, this special number becomes the player's "point".
To win, the player must continue rolling the dice until he/she "makes his/her point" (i.e., rolls the special point value again).
The player loses by rolling a 7 before making the point.
Explanation / Answer
.data
endMain:
## David KrawchukRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.