Name ______________________________________ Section ___________
Base 2 Base 8 Base 10 Base 16 11101011 353 235 DB 101010 _____ _____ _____ ______ 127 _____ _____ ______ _____ 127 _____ ______ _____ _____ 127
Decimal -25 20 -12 ______ ______ Binary 100111 ________ ________ 010110 110010
Location Value A: EQU $1 _________________ _________________ ; comment DC.L A _________________ _________________ DC.L B DC.L C _________________ _________________ DC.B 'ABC',0 B: DS.B 3 _________________ _________________ C: DS.B A _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________
Location Value MOVE.L (SP),$1234(A3) ADDQ.W #7,SP ________ ___________________ CMPA.W -(A3),A0 ________ ___________________ ________ ___________________ ________ ___________________ ________ ___________________
; Precondition: A0 points to a record in memory. ; X and Y are symbolic names for fields in the record. ; Field X is a word; field Y is an array of 20 ; long words (array indices go from 0 to 19). _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ ; Postcondition: D0 holds A0^.Y[X] (or A0->Y[X] in C)