- Monday, March 11 (11:59pm)
Homework can submitted via email or printout by deadline.
Patterson & Hennessy. Chapter 3 (through Section 3.7)
(Questions 2-4 below require knowledge of Section 3.7)
On Slide 12 of last week's lecture I claimed that there was an instruction SUBI, which subtracted immediate values. That isn't strictly true. In order to subtract an immediate value in MIPS, one uses ADDI with a negative immediate value. Thussubi $sp, $sp, 8 # reserve two words on the stackis more accurately written:addi $sp, $sp, -8 # reserve two words on the stack