Specifics:
?? Your task is to, first, determine if the value store in memory location x3030 is even or odd.
You are to store x0001 in memory location x3031 if it is odd, x0000 if it is even.
?? Next, your program will count the number of 1s in the value at memory location x3030 and store
that count in memory location x3032.
?? Your program can use the LC-3 register file and memory address space. You cannot overwrite
the original value in memory location x3030.
?? Your code must be well-commented. Follow the commenting style of the code examples provided
in class and in the textbook.
?? Your program must be written in LC-3 Machine Language and originate at x3000.
Example: The following is a snapshot of memory locations x3030 through x3032 after the
calculations described above have been performed. The value at x3030 in an input and the values in x3031 and x3032 are outputs.
Testing: You should test your program thoroughly before handing in your final version. Developing a good testing methodology is essential for being a good programmer. For this assignment, you should run your program several times for different values in memory location x3030 (you can do this using the simulator) and checking the output by hand.
Tools: You will need to use the LC-3 simulator (either on Unix or on Windows, whichever you
prefer) in order to execute and test the program you write for this MP. You might also need to use a text editor (vi, emacs, pico, etc) in order to enter your machine language program.
Please take a look screenshot attached for more info.
hi, I'm Ganapathy, I have written lots of assembly programs in MIPS, ARM, AVR, 8051, Intel, etc, I can help you finish this project in no time, for more information Contact me
Thank you
$23 USD in 1 day
4.9 (33 reviews)
4.7
4.7
3 freelancers are bidding on average $32 USD for this job