keil project

Job ID: 36666908

Budget: $12 – $30 SGD

The purpose of a game called GUESS is for the contestant to guess a number which has been pre-loaded into a machine. The contestant will enter his/her guess of the number and the machine will display 0x0F, if the entered number is below the ‘unknown’ number. If the entered number is above the ‘unknown’ number, 0xF0 is output and if the entered number is equal, 0xFF is output and the game ends. Write an Arm Assembly language program called GUESS to implement the above task. Assume that the number to be pre-loaded is between 0 and 255 and is stored in a byte variable called ‘unknown’.