Need both parts done please. Part 4: Design a program that uses looping to displ
ID: 3849225 • Letter: N
Question
Need both parts done please.
Part 4: Design a program that uses looping to display the odd numbers counting from 5 to 17 using the LMC / TLC instruction set. The program must halt after displaying 17. Write and turn in as the answer to this part the pseudo-code for your solution.
Part 5: Write your program using the LMC / TLC instruction mnemonics, assemble it using the TLC assembler, and test it on the virtual machine. Make corrections as necessary. When your program has been tested and works, copy the assembly listing from the right hand panel of the assembly tab into your homework. The assembly listing is the only thing you turn in for this part of the work. Note: "Copy the assembly listing" means copy the assembly listing using the copy/paste function of your operating system. A screen shot will not do and will earn a grade of zero.
Test code here
http://ksuweb.kennesaw.edu/faculty/rbrow211/tlc/assembler.html
Explanation / Answer
here an LMC instruction set,
lda third
print out
sub first
brz done
lda third
add second
sto third
br print
done hlt
first dat 0x11
second dat 0x02
third dat 0x05
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.