an assembler use to store labels | My Assignment Tutor

Please show all work Provide the 8-character hex representation for the following MIPS instruction (no spaces): subu $s2, $s5, $s7Provide the 8-character hex representation for the following MIPS instruction (no spaces): addi $a0, $t4, 16Given the hexadecimal bytes 0x70BB50CC, copy the bytes to memory using big-endian order 0x00400003   0x00400002   0x00400001   0x00400000   Provide the 8-character hex representation for the following MIPS instruction (no spaces): jr $raConvert the following 32-bit I-type instruction into one line of MIPS assembly code (format: op $r1, offset($r3)): 10101101000100000000000000100000Convert the following 32-bit R-type instruction into one line of MIPS assembly code (format: op $r1, $r2, $r3): 00000001010010110100100000100101Given the C statement below, generate the associated 3-address codes. value = (a + b) * (c / d) – 24;  Convert the following 32-bit J-type instruction into one line of MIPS assembly code (format: op 0xNNNNNNNN): 00001000000100100001001000010010       9.  What data structure does an assembler use to store labels and their corresponding locations in memory?       10. Shifting a binary number to the left 6 times is the equivalent of multiplying by what number?        11. Given the following values for X, Y, and Z, are the following Boolean expressions TRUE or FALSE?  Please show your work. W=FALSE, X=TRUE, Y=TRUE, Z=FALSE X NAND Y =X XOR Z = NOT (X AND Y) NOR (W OR (X XOR Z)) = (X NAND Z) OR Z = NOT((W AND Y) NOR (W OR Y)) = Z AND Y OR X NAND W =         12. How many bits are required to represent a number with 14 hexadecimal digits?  13.. During Pass Two of a Two-pass Linker/Loader is to load and relocate the text content into memory a. True b. False 14. The MIPS instructions below are demonstrating a basic example of the mod function (division with remainder) from a high level language.  (7 mod 2) = 1 addi $t0, $t5, 7 addi $t1, $t6, 2 div   $t0, $t1 15. The process of disassembling code involves translating code from a high-level language into an intermediate representation and eventually into machine code. a. True b. False 16. Given a two pass Assembler, identify which of one of these assembly processes would most likely occur in within the second pass A. Write object code B. Save addresses assigned to labels C. Process pseudo-instructions D. Scan for label definitions 17.What is the primary reason a two-pass assembler is necessary rather than a one-pass assembler? A. Symbols may be used as operands before they are defined. B. Instructions may vary in length. C. Symbols need to be stored in the symbol table. D. Symbols may be defined before they are used as operands. 18. Discuss the purpose of the following segments located within an object file Text Segment:   Data Segment:   Relocation Information:   Symbol Table:   19. When making a call to a routine within MIPS,  register contents may or may not be preserved across the call.  For each register type, state whether its contents will be PRESERVEDorNOT PRESERVED. $v0 – $sp  $a1  $ra  $t8  $s2 

QUALITY: 100% ORIGINAL PAPER – NO PLAGIARISM – CUSTOM PAPER

Leave a Reply

Your email address will not be published. Required fields are marked *