HW4 - ECE 662 (Au 2009) Homework 4 Solutions 1. For the...

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

View Full Document Right Arrow Icon
1 ECE 662 (Au 2009) Homework 4 Solutions 1. For the OSIAC machine consider the following program MOVE PC, X 0011 0000 0000 1101 [PC] X ADD X, SP 0001 0000 0000 0110 [X] +[SP] SP ADD SP, X 0001 0000 0000 1001 [SP]+[X] X MOVE #LA, A 0011 0110 0000 xx00 #LA A #LA ADD (A), X 0001 0001 0000 0001 [[A]]+[X] X ADD (A)+, X 0001 0010 0000 0001 [[A]]+[X] X; [A]+1 A ADD (A)+, X 0001 0010 0000 0001 [[A]]+[X] X; [A]+1 A ADD -(A), SP 0001 0011 0000 0010 [A]-1 A; [[A]]+[SP] SP CLR 2(A) 0000 0001 0100 0000 clear location 2+[A] 0000 0000 0000 0010 ADD #5, 50 0001 0110 0101 xxxx 5+[50] location 50 0000 0000 0000 0101 #5 0000 0000 0011 0010 #50 ADD LB, LC 0001 0101 0101 xxxx [LB]+[LC] LC # L B # L C HALT 0000 0000 0000 0000 Halt the processor LA: .WORD 3, 4, 5 (Directives specify the contents LB: .WORD 6 stored in the memory at locations LC: .WORD 7 LA, LB and LC) 2. The following question is related to the OSIAC machine. For each of the following
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background 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/21/2011 for the course ECE 662 taught by Professor Orin,d during the Winter '08 term at Ohio State.

Page1 / 2

HW4 - ECE 662 (Au 2009) Homework 4 Solutions 1. For the...

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