Name ______________________________________ Section ___________This exam is open-book and open-notes, but closed neighbor! You have one (academic style) hour, which is defined as 50 minutes. Answer the questions in the space provided. If you need scratch paper, feel free to use the backs of the exam pages, but please transcribe your answers into the blanks provided.
Base 2 Base 8 Base 10 Base 16 110010101101 6255 3245 CAD 101100 ______ ______ ______ ________ 321 ______ ______ ________ ______ 321 ______ ________ ______ ______ 321
Decimal -21 25 -6 ______ ______ Binary 101011 ________ ________ 011100 111001
Location Value X = 1 . = #100 _________________ _________________ B X B Y _________________ _________________ Z: H X+Y W Z _________________ _________________ Y = X+1 ASCII 'ABCD'
Location Value LEA R5,R2,#0123 loop: LOADS R6,R5 ________ ___________________ EXTH R7,R6,R5 BZS exit ________ ___________________ ADDSI R5,2 BR loop ________ ___________________ exit: ________ ___________________ ________ ___________________ ________ ___________________ ________ ___________________
; Precondition: R3 points to a record in memory. ; The constant X is the offset of a field in that record. ; Field X is an array of 20 words, indexed from 0 up. ; R4 holds an integer. _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ ; Postcondition: R5 holds R3->X[R4] (R3^.X[R4] in Pascal).