Question: How to hardcode a secret number as a single word in the .data section of the assembly code? How to use the hardcode secret number

How to hardcode a secret number as a single word in the .data section of the assembly code?

How to use the hardcode "secret" number to compare with user's guess?

How to count loop times by outputing prompt 4?

Sot the "secret" number can be changed for each test case.

Example have below codes , assume secret number is 4

prompt1: .asciiz "Guess number:"

prompt2: .asciiz "too high!"

prompt3: .asciiz "too low!"

prompt4: .asciiz "Your number of guesses:"

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!