Exercise2 13

2 5 0
Exercise2 13

Đang tải... (xem toàn văn)

Thông tin tài liệu

Exercise 2 10 17 Mar 16 Faculty of Computer Science & Engineering 1 Exercise 2 13 In the following problems, the data table contains the values for registers $t0 and $t1 You will be asked to perform s[.]

Exercise 2.13 In the following problems, the data table contains the values for registers $t0 and $t1 You will be asked to perform several MIPS logical operations on these registers a $t0 = 0xAAAAAAAA, $t1 = 0x12345678 b    BK $t0 = 0xF00DD00D, $t1 = 0x11111111 2.13.1 [5] For the lines above, what is the value of $t2 for the following sequence of instructions? sll $t2, $t0, or $t2, $t2, $t1 2.13.2 [5] For the values in the table above, what is the value of $t2 for the following sequence of instructions? sll $t2, $t0, andi $t2, $t2, –1 2.13.3 [5] For the lines above, what is the value of $t2 for the following sequence of instructions? srl $t2, $t0, andi $t2, $t2, 0xFFEF TP.HCM 04/28/2023 Faculty of Computer Science & Engineering Exercise 2.13 (cont.) In the following exercise, the data table contains various MIPS logical operations You will be asked to find the result of these operations given values for registers $t0 and $t1 a sll $t2, $t0, andi $t2, $t2, –1 b andi $t2, $t1, 0x00F0 srl $t2,  2.13.4 [5] Assume that $t0 = 0x0000A5A5 and $t1 = 00005A5A What is the value of $t2 after the two instructions in the table?  2.13.5 [5] Assume that $t0 = 0xA5A50000 and $t1 = A5A50000 What is the value of $t2 after the two instructions in the table? 2.13.6 [5] Assume that $t0 = 0xA5A5FFFF and $t1 = BK A5A5FFFF What is the value of $t2 after the two instructions in TP.HCM Faculty of Computer Science & the table? 04/28/2023 Engineering 

Ngày đăng: 08/04/2023, 06:24

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan