×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

need help on simple programming assignment

need help on simple programming assignment

need help on simple programming assignment

(OP)
i need to write a program in assembly language for a class and i'm pretty stuck. anyone who could help would be a great blessing!
  i need to write a program that's a simple guessing game. The program has stored the value 6. The program continually asks the user to enter a number 0 through 9. The user enters the guess from the keyboard.
    If the guess is larger than 6, it should output "Too big" & if it is less than 6 it will say "Too small". When the user guesses correctly it will say "Correct! You took # guesses" with the # of guesses the user took. After 9 guesses and the user has not guessed correctly: "Game Over. Correct answer is 6." Don't check for invalid input. If input is not a #: "Invalid Input", which still counts as a guess.

  I know i need to use TRAP x20 and .sTRINGZ, but i've never really programmed in assembly before and i really need some direction. thanks! any help?

RE: need help on simple programming assignment

Now what I prithee is your processor?  Most of the people here think "Intel x86 asm" also known as "IA16 or IA32 asm."  I have no idea what trap and .stringz you are talking about.

"Information has a tendency to be free.  Which means someone will always tell you something you don't want to know."

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close