Addressing Modes B - "instruction" refers to some...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Intro to Computer Engineering I v.2000F Mallard Copyright © 1995-2000 user: bly3 Graded WebQuiz: Addressing Modes You have submitted this WebQuiz 2 times (including this time). You may submit this WebQuiz a total of 6 times and receive full credit. For reference, you may refer to a Summary of Addressing Modes . Question #1 Determine which addressing mode is used to access the operands in the following instructions. (a) R1 <- M[25] <no answer> register register indirect immediate direct indirect relative indexed (b) R2 <- M[M[25]] <no answer> register register indirect immediate direct indirect relative indexed (c) R1 <- 300 <no answer> register register indirect immediate direct indirect relative indexed (d) R2 <- R1 <no answer> register register indirect immediate direct indirect relative indexed (e) R3 <- M[25+PC] <no answer> register register indirect immediate direct indirect relative indexed (f) R1 <- M[25+R3] <no answer> register register indirect immediate direct indirect relative indexed You received a raw score of 0% on this question. Question #2 Shown below are the contents of registers R2 and R3 and some memory locations in a simple computer. The word
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "instruction" refers to some type of MOVE instruction (direct, immediate, register, etc.). When MOVE is of a register-register type, it is a one-word instruction. When MOVE is of a memory-register type, it is a two-word instruction and the memory address (W) occupies the second word. Register Content R2: 294 R3: 4 Memory Address Contents 1 (1st word of) instruction 2 W=293 ... ... 293 47 294 125 295 203 296 281 297 359 298 437 299 515 For each of the following, determine the content of R1 following execution of the specied macroinstruction. Each part is independent. MOVE R1, W 47 MOVE R1, #W 293 MOVE R1, $W 281 MOVE R1, W(R3) 359 MOVE R1, R2 294 MOVE R1, (R2) 125 You received a raw score of 100% on this question. WebQuiz Grade Summary Mallard - Intro to Computer Engineering I https://mallard2.math.illinois.edu/ECE290/ 1 of 1 5/1/11 3:16 PM...
View Full Document

This note was uploaded on 06/21/2011 for the course ECE 290 taught by Professor Staff during the Spring '08 term at University of Illinois, Urbana Champaign.

Ask a homework question - tutors are online