HW4 - state, or explain why it cannot be done. You should...

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

View Full Document Right Arrow Icon
1 ECE 662 (Sp 2009) Homework 4 Due May 5, 2009 1. For the OSIAC machine consider the following program MOVE PC, X ADD X, SP ADD SP, X MOVE #LA, A ADD (A), X ADD (A)+, X ADD (A)+, X ADD -(A), SP CLR 2(A) ADD #5, 50 ADD LB, LC HALT LA: .WORD 1, 2, 3 LB: .WORD 4 LC: .WORD 5 a) Hand assemble the program (turn the program into machine code) b) Indicate what the program does (i.e. changes to registers and memory) 2. The following question is related to the OSIAC machine. For each of the following parts, either list the control lines to make all the register transfers happen in a single
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.

Unformatted text preview: state, or explain why it cannot be done. You should make no special assumption about the contents of the registers. a. T2 T3 b. AC T4 c. T3+Q Q d. T1+1 Q e. T1-1 Q f. T1+Q Q 2 g. T1-T4 Q h. Ones complement of Q Q i. Twos complement of SP Q j. X AC k. T1 Q, T5 T2 l. T4 T2, T4 AC m. T4 T2, T3 X n. Exchange T1 and Q value o. PC+1 PC p. M(MAR) MDR, AC T2, T1+1 Q....
View Full Document

Page1 / 2

HW4 - state, or explain why it cannot be done. You should...

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