Fill This Form To Receive Instant Help
Homework answers / question archive / Produce a program in this assembly language that "coughs" (i
Produce a program in this assembly language that "coughs" (i.e., prints cough) some number of times. Your program should first prompt the user for a number and then print cough exactly that many times. You may assume the user will input a non-negative number.
Additional info:
Consider a simplified assembly language wherein there are four registers (i.e., locations to store values) called r1, r2, r3, and r4. This assembly language supports the following instructions, wherein R, Rx, Ry, and Rz represent (any of those) registers, V represents a literal value (an integer or a string), and L represents a line number:
1)PRINT R prints the value in register R.
2)INPUT R prompts the user for input and stores it in register R.
Every line of code in this assembly language consists of a line number followed by a single instruction. No parentheses, curly braces, semicolons, or any other syntax other than the above instructions!