Homework3 - Name David Skidmore Assignment Homework 3 1 Do review questions 8-11 on p 105 a What is an OPCODE What is the purpose of an instruction

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Name: David Skidmore Assignment: Homework 3 1. Do review questions 8-11 on p. 105 a. What is an OPCODE? What is the purpose of an instruction format? An OPCODE describes the binary encoding of an operation while the instruction format indicates how many bits are allocated each for the OPCODE and the address. b. What does an assembler do? An assembler converts human readable assembly language into machine language. c. What are the MAR and MDR used for? The memory address register holds the address of a word while the memory data register holds the data value associated with the memory address. d. What is a program counter? The program counter stores the address of the next instruction to be executed. 2. Do exercises 8a-d, 9, 14a starting on p. 107. For exercise 8 (p.107), as in all similar problems in this course, you may assume that all values are integers. Furthermore, in 8d (p. 107), you may assume a is not negative (a >= 0) and b is positive (b> 0). a. For each of the following C statements, give a sequence of instructions, from those described in Table 3.5 that will evaluate the statement. In writing the code sequences, assume the values for a, b, c, d and e are stored in memory locations 20, 21, 22, 23 and 24 respectively. In addition, you may assume that memory locations 28, 29, 30 and 31
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/27/2012 for the course CSE 360 taught by Professor Sam during the Winter '11 term at Ohio State.

Page1 / 3

Homework3 - Name David Skidmore Assignment Homework 3 1 Do review questions 8-11 on p 105 a What is an OPCODE What is the purpose of an instruction

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online