Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can anyone write me a pure assembly language, not converted from C. Thanks 2. Write an assembly language program to simulate a simple guessing game.

Can anyone write me a pure assembly language, not converted from C. Thanksimage text in transcribed

2. Write an assembly language program to simulate a simple guessing game. The program has stored the value 6. The program will continually ask the user to guess a number between 0 and 9 (see sample program input/output below.). You do not need to check for invalid input (alphabetical characters, punctuation, etc). If your program encounters any non-digit character, the program should output Invalid input. Invalid input should still count as a guess. The ASCII code x0A causes the cursor to go to the next line (Newline) Name your file Guess.asm. Assume that the user gets it right within 9 guesses. Sample Input/Output Guess a number: 5 Too small. Guess again: 9 Too big. Guess again: a Invalid input. Guess again: 6 Correct! You took 4 guesses

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

List the components of a traffic conditioner in DiffServ.

Answered: 1 week ago