cs 271 week2

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Convert the following binary number into a signed decimal value. 1011 1110 0100 1011

-16821

Convert the following binary number into a signed decimal value. 1101 1100 0010 1101

-9171

The following data segment starts at memory address 0x1300 (hexadecimal) .data printString BYTE "MASM is fun",0 moreBytes BYTE 32 DUP(0) dateIssued DWORD ? dueDate DWORD ? elapsedTime WORD ? What is the hexadecimal address of dueDate?

0x1330

The following data segment starts at memory address 0x2100 (hexadecimal) .data printString BYTE "Do not add decimal to hex",0 someBytes WORD 56 DUP(0) moreBytes BYTE 10, 20, 30, 40, 50, 60, 70, 80, 90 questionAddr DWORD ? ignoreMe WORD ? What is the hexadecimal address of questionAddr?

0x2193

The following data segment starts at memory address 0x3000 (hexadecimal) .data printString BYTE "Assembly is fun",0 moreBytes BYTE 19 DUP(0) dateIssued DWORD ? dueDate DWORD ? elapsedTime WORD ? What is the hexadecimal address of dueDate?

0x3027

Suppose that result is declared as DWORD, and the following MASM code is executed: mov eax,5 mov ebx,1 mov ecx,6 label5: add eax,ebx add ebx,2 loop label5 mov result,eax What is the value stored in the memory location named result?

41

Convert the following string into its ASCII hex representation. Don't use 0x or h with the hex values. The hex for "1+z" is 31 2B 7A Google

47 6F 6F 67 6C 65

Suppose that result is declared as DWORD, and the following MASM code is executed: mov eax,16 mov ebx,8 mov ecx,6 label5: add eax,ebx add ebx,2 loop label5 mov result,eax What is the value stored in the memory location named result?

94

ADD MORE LATER

LUL

Convert the following ASCII hex representation into its string. 53 63 69 65 6E 63 65

Science

After the following MASM code is executed: mov eax,127 mov ebx,43 mov ecx,27 add eax,ebx sub eax,ecx

What is the value in the eax register (in decimal)? 143 What is the value in the ebx register (in decimal)? 43 What is the value in the ecx register (in decimal)? 27


Set pelajaran terkait

Chapter 8: The Road To an Accepted Offer

View Set

Exam 5, Exam 4, Exam 3, Exam 2, Exam 1 Centellas

View Set

Application & Removal Procedures

View Set

Pedagogy of the Oppressed (Paulo Freire)

View Set