cs211

cs211

i have problem in writing and execute this program need help.....

Suppose you want to write a program to compute the square function, n2. Write two different machine language programs for the Wombat computer that can solve this problem. Each program should prompt the user to enter a value for n (assume some non-negative integer), then compute and display the square (n2) before exiting. The two programs should demonstrate different methods or instructions used to compute the square function, instead of just changing the order of instructions or storage locations in the programs. Besides writing the binary version of your programs that can be executed on the CPUSim simulator, you are also required to write the equivalent decimal version (with appropriate comments) for each program.

View Answers









Related Tutorials/Questions & Answers:
cs211
cs211  i have problem in writing and execute this program need help..... Suppose you want to write a program to compute the square function, n2. Write two different machine language programs for the Wombat computer that can

Ads