Question: Practice Problems 1. Assume that register R and memory cells 80 and 81 contain the following values: R: 20 memory cell 80: 43 memory cell
Practice Problems 1. Assume that register R and memory cells 80 and 81 contain the following values: R: 20 memory cell 80: 43 memory cell 81: 97 Using the instruction set shown in Figure 6.5, determine what value ends up in register R and memory cells 80 and 81 after each of the following instructions is executed. Assume that each question begins with the values shown above. a. LOAD 80 b. STORE 81 c. COMPARE 80 d. ADD 81 e. IN 80 f. OUT 81 2. Assume that memory cell 50 contains a 4 and label L is equivalent to memory location 50. What value does each of the following LOAD instruc- tions load into register R? Prachee FTOU Solution on p850 Practice Problems 6.4.1 on p315 5. Answer the five Chapter 6 Problems:40 points-8 points each) a) Repeat Problems 63.1#1 where initial values are R: 10, MC80: 23, MC81:52 b) Repeat Problems 6.3.1 #1 where initial values are R:8, MC80: 32, MC81 :16 o) What is the assembly language equivalent for the following binary machine language instructions? Assume Figures 6.5 and 6.13 below. 1. 0000 0000000010101 2. 0100 00000000100 What is the Machine language equivalent for the following Assembly language instructions? Assume Figures 6.5 and 6.13 below. d) I. DECREMENT X 2. COMPARE Y cosc 1336 C6-7 Lab CITS, PMB e) Using the instruction set in Figure 6.5 translate the following algorithmic primitives into assembly language code. Show all necessary DATA pseudo-ops. 1. Add 5 to the value ofX 2. Subtract 8 from the value of Y 3. Set w to the value of X+Y Opuatoncowoos- Binary Op Code Meaning 0001 ooo 0011 0100 0101 LOAD X STORE X CLEAR x ADD X INCREMENT X SUBTRACT X 4. fW
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
