CSIS 165 - Assembly Language

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following is true of a 32-bit floating-point binary representation?

Sign: 1 bit

Which pair is appropriate to describe the area of a plot?

Square feet and acres

Given the following data memory (DM) and register file contents, which instruction performs the operation DM[5308] = DM[5300] + DM[5304]? Data memory 5300: 10 5304: 20 5308: 30 Register file $t3 = 5300 $t4 = 5304 $t5 = 5308

lw $t0, 0($t3) lw $t1, 0($t4) add $t2, $t0, $t1 sw $t2, 0($t5)

For a subroutine with 2 arguments and no return value, which instruction loads the second argument to $t5?

lw $t5 0($sp)

Given the following instruction in assembly language, what is the equivalent machine instruction? add $t2 $t4 $t6

000000 01100 01110 01010 00000 100000

Given the address of Label is 001100..001100, which of the following machine instructions is equivalent to j Label?

000010.. 000011

Which of the following machine instructions performs an addi operation?

001000 01011 01100 0000000000001000

Identify the two's complement representation of 4 + -5

0100 + 1011

What is the binary equivalent of the hexadecimal number 48?

01001000

Given the following register file contents, what will be the value of $t1 after executing the instruction sequence? beq $t2, $t3, L1 add $t1, $t1, $t1 j L2 L1: add $t2, $t2, $t2 L2: add $t1, $t1, $t1 Register file $t1 = 5 $t2 = 5 $t3 = 5

10

Which addition results in an overflow?

1010 + 1001

What is the two's complement representation of - 4?

1100

What are the values of $t0 and $t1 after executing the instruction sequence below? $t0 = _____, $t1 = _____. addi $t0, $zero, 5 jal CalcEq addi $t0, $t1, 5 jal CalcEq j End ... CalcEq: addi $t1, $t0, 5 jr $ra End:

15, 20

Given the following register file contents, what will be the value of $t2 after executing the instruction sequence? add $t2, $t3, $t3 mul $t2, $t2, $t2 Register file $t1 = 4 $t2 = 5 $43 = 2

16

Given the following register file contents, what is the value of $t3 after executing the instruction sequence? bne $t1, $t2, L1 addi $t3, $t3, 5 L1: addi $t3, $t3, 5 Register file $t1 = 5 $t2 = 5 $t3 = 10

20

Given the following data memory (DM) and register file contents, the new contents of the data memory after executing the instruction sw $t2, 0($t3) what is DM[2004] = _____, DM[2008] = _____. Data memory 2004: 2012 2008: 2016 Register file $t2 = 2004 $t3 = 2008

2012, 2004

Given the register file below, what is the value in register $t4 after executing the following instructions? Add $t2 = $t2 + $t6 Add $t6 = $t5 + $t2 Add $t4 = $t6 + $t1 Register file $t0 = 8 $t1 = 6 $t2 = 7 $t3 = 5 $t4 = 3 $t5 = 0 $t6 = 9

22

Assume an audio sample is stored as one byte. The size of a 1 minute audio recording is 2.28 MB. What is the sampling rate?

38000

What is the value of 210 base 6 in decimal?

78

For instruction beq $t0, $t1, Label, Label's address is 24. What is the beq instruction's address if the machine instruction's 16-bit immediate field is 0..0011?

8

What register is used as the destination register? 000000 00000 01101 01100 00000 100000

$t4

Which of the following statements is true of a record?

A record declares a new type, which can be used to group multiple subitems

For the text Adder: 12, which of the following statements is true?

The total bits to store the given text is 63 bits

Which of the expressions is equivalent to the following instruction sequence? slt $t2, $t0, $t1 beq $t2, $zero, L1 sub $t3, $t1, - $t0 j End L1: sub $t3, $t0, - $t1 End:

if ($t0 < $t1) $t3 = $t1 - $t0 else $t1 = $t0 - $t1

What is the equivalent instruction in assembly language? 101011 01101 01011 0000000000000000

sw $t3 0($t5)


संबंधित स्टडी सेट्स

ATI Skills Module 3.0: Ostomy Care

View Set

chapter 26 growth and development of the toddler

View Set

Ch. 14 Review Blood Vessels, Blood Flow, and Blood Pressure

View Set

Unit 7: Reordering the World 1750-1850

View Set

Age Discrimination in Employment Act

View Set

AP United States History (1607-Present)

View Set