Question: i am pretty new to the assembly code. I need a help with both questions. Thanks! Instructions Write down the steps before you start with
i am pretty new to the assembly code. I need a help with both questions. Thanks!
Instructions Write down the steps before you start with the Simulator and editor You don't need to submit these but will help greatly in completing the work .Start your program at x3000 so that it will be easier for me to grade it. Each program must include a header comment that has your name(s) and a brief description of the program. Make sure to comment each line of code in the case of machine code and have adequate comments in case of assembly code. You will be graded on comments 1. Write a machine language program for the LC3. It should print out 52 the letters: ABCD..XYZZYX....DCBA. That's a total of 26 2 letters. You must use one or two loops Name your file PrintLetters.bin. 2. Write an assembly language program to simulate a simple guessing game. The program has stored the value 6. The program wil 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 xOA 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
Get step-by-step solutions from verified subject matter experts
