[Solved] ECE5484 Homework4

$25

File Name: ECE5484_Homework4.zip
File Size: 160.14 KB

SKU: [Solved] ECE5484 Homework4 Category: Tag:
5/5 - (1 vote)
  1. Consider the MARIE program below.
    1. List the hexadecimal code for each line of the program (including the symbols).
    2. Draw the symbol table.
    3. What is the value stored in the AC when the program terminates?

ORG 100

Begin, LOAD Base ADD Offs

Loop, SUBT TwoSTORE AddrSKIPCOND 800JUMP Done CLEARLOAD Offs
Done, HALT
Base, HEX 200
Offs, DEC 11
Two, HEX 0002
Addr, HEX 007
  1. Write the assembly language equivalent of the following MARIE machine language instructions:
    1. 0100 0001 1000 0101
    2. 1000 0100 0000 0000
    3. 0111 0000 0000 0000

Homework 4

  1. Write the following code segment in MARIEs assembly language:

if X < 1 then

Y = X 2;

  • = 0;

endif;

  • = Y + 7;
  1. Fill in the following table to show how the given integers are represented, assuming 16-bits are used to store values and the machine uses 2s complement notation.
Integer Binary 2 Byte Big Endian(hex value as seen inHex memory) 2 Byte Little Endian(hex value as seen in memory)
71329-7-2710931307
  1. Suppose we have the instruction Load 600. Given memory and register R1 contain the values below and assuming R1 is implied in the indexed addressing mode, determine the actual value loaded into the accumulator and fill in the table below:
Mode Value loaded into AC
ImmediateDirectIndirectIndexed
  1. Suppose an instruction takes four cycles to execute in a nonpipelined CPU: one cycle to fetch the instruction, one cycle to decode the instruction, one cycle to perform the ALU operation, and one cycle to store the result. In a CPU with a 4-stage pipeline, that instruction still takes four cycles to execute, so how can we say the pipeline speeds up the execution of the program?
  2. Scavenger Hunt: John Cocke and David Patterson made significant contributions to Reduced Homework 4

Instruction Set Computer (RISC) architectures. Answer the following questions separately for each of

these two individuals. Cite the sources you used to find your answers. Your entire answer should be one page or less.

  1. In your own words, what was his contribution to RISC architectures? Try to be specific.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] ECE5484 Homework4
$25