Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

What is Cross-site tracing (XST) attack and how it works?

Answered: 1 week ago