Assignment 4
Assignment 4
Chapter 12:
12.1 What are the typical elements of a machine instruction?
Opcodes, source operand reference, result operand reference and next
instruction reference .
12.2 What types of locations can hold source and destination operands?
Main memory, processor register, immediate , I/O device .
12.4 List and briefly explain five important instruction set design issues.
Operation repertoire: How many and which operations to provide, and how
complex operations should be.
Data types: The various types of data upon which operations are performed.
13.10 What facts go into determining the use of the addressing bits of
an instruction?
-Number of addressing modes
-Number of operands
-Register vs. memory
-Number of register sets
-Address range
-Address granularity
The first part of the first word indicates that this instruction loads a value
into an accumulator. The Mode field specifies an addressing mode and,
if appropriate, indicates a source register; assume that when used, the
source register is R1, which has a value of 400. There is also a base
register that contains the value 100. The value of 500 in location 201
may be part of the address calculation. Assume that location 399
contains the value 999, location 400 contains the value 1000, and so on.
Determine the effective address and the operand to be loaded for the
following address modes: