Lab 2 - Letter guessing game
In this lab, I decided to mimic something professor has taught in his recording, which shows how to get input, print output and jump to different branches based on conditions. Assembly is supper difficult for me as I'm really not familiar with the language. As a result, I decide to combine my lab 1 and his instructions to create a letter guessing game. This program will randomly select a letter from A to Z, store it in the memory. The user will guess the letter. If they guess it correctly, a prompt will appear and the screen will become green, else there will be an error prompt followed by an input prompt for retry, and the screen will turn red. Here is the code: ; ROM routines define SCINIT $ff81 ; initialize/clear screen define CHRIN $ffcf ; input character from keyboard define CHROUT $ffd2 ; output character to screen define SCREEN $ffed ; get screen size define PLOT $fff0 ; get/set cursor coordinates define GENERATED_LETTER $0040 define IN...