Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The following code contains pseudo-instructions; instructions that do not really

ID: 3651541 • Letter: T

Question

The following code contains pseudo-instructions; instructions that do not really exist, but can be easily implemented using existing instructions. Replace the pseudo-instructions with working code. The pseudo-instructions are: neg, the AC gets the negative of the AC, andm, replaces the contents of the first memory location with the logical OR of the first and second memory locations, and jplt, jumps if the AC is less than the R register. To negate a number you takes its 1's compliment, and add 1. You may also be interested in how to determine if a number is positive or negative; a number is negative if its top bit is set. To check this, you may have to create a constant c in memory. Turn in a listing of your code, and the results of the test run.

Explanation / Answer

explain what to do,question is not clear......

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote