sample2 - CSE 320 Sample Exam #2 1. (12 pts) Consider the...

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

View Full Document Right Arrow Icon
CSE 320 Sample Exam #2 1. (12 pts) Consider the following SPARC assembly language statements. For each statement which contains a comment, give the requested information after the instruction is executed. Give the value of the register in hexadecimal and the value of the condition code bits in binary. set 0xc90000e4, %g6 set 0xa50000b7, %g7 or %g6, %g7, %l0 ! %l0: ________________________ and %g6, %g7, %l1 ! %l1: ________________________ sub %g6, %g7, %l2 ! %l2: ________________________ addcc %g6, %g7, %l3 ! %l3: ________________________ ! NZVC: ____________ sra %g6, 8, %l4 ! %l4: ________________________ srl %g6, 12, %l5 ! %l5: ________________________ sll %g6, 16, %l6 ! %l6: ________________________
Background image of page 1

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

View Full DocumentRight Arrow Icon
2. (10 pts) Use the SPARC microprocessor tables (on the supplementary sheet) to answer the following questions. a) Consider the SPARC machine language instruction shown below in hexadecimal and binary. Circle and label each field within the binary representation of the instruction, then give a corresponding SPARC assembly language statement. Machine language instruction: B6430010 Binary: 1 0 1 1 0 1 1 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 Assembly language statement: ____________________________________ b) Consider the SPARC machine language instruction shown below in hexadecimal and binary. Circle and label each field within the binary representation of the instruction, then give a corresponding SPARC assembly language statement. Machine language instruction: EC3FA004 Binary: 1 1 1 0 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 Assembly language statement: ____________________________________ 3. (10 pts) For each of the following SPARC assembly language statements,
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 8

sample2 - CSE 320 Sample Exam #2 1. (12 pts) Consider the...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online