Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help writing a program for this assignment and making sure it runs in LC3SSimulate. This is a programming assignment that will be graded and
Need help writing a program for this assignment and making sure it runs in LC3SSimulate.
This is a programming assignment that will be graded and scored as a homework since it is so simple. Write a program for the LC3. This program should be named hwAdd4Sub1Mem.hex. This hex file will be a machine language program for the LC3 processor. This program will be written as an ASCII hex file. DON'T TRY TO ASSEMBLE IT WITH AN LC3 ASSEMBLER. The hex file must contain only hex characters; 09 and AF with no x,X,0x, or OX. Each line should be a four digit hex number. Do not include a 0x or x at the beginning of this number. The first line should be the starting address in memory, use 3000 to be safe. The last line should be a halt (F025) The lines between the first and last line should do the following: Add the values from memory locations 03080,03081,03082, and 03083. Subtract the value stored in 03084. Store the sum in memory location 03085 Write your program in assembly. Convert it manually to hex. Put the hex in hwAdd4Sub1Mem.hex. Test your program using the simulator. Make sure to test with numbers OTHER than the ones we discussed in class. Do not submit a program that somehow stores values in 003080,03081,03082,03083, and 0x3084. Doing this will work for testing but will overwrite the test values that my testing software inserts. You have been warnedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started