Quiz #1

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

Convert the following binary number into a signed decimal value. 1011 1001 0101 0000

-18096.0

Given the following MASM code using Irvine's library: mov eax,1 mov ebx,4 label6: mul ebx call WriteDec call CrLf inc ebx cmp eax,40 jbe label6 mov eax,ebx call WriteDec call CrLf Show the output produced by execution of the code. Note: Pay special attention to line breaks

4 20 120 7

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.0

After the following code has finished execution, ECX contains the initial contents of which register? mov edx, eax mov ebx, ecx mov ebx, edx mov ecx, ebx mov edx, eax

EAX

Convert the following ASCII hex representation into its string. The hex 31 2B 7A is the string 1+z 45 6E 67 69 6E 65 65 72

Engineer

Please place the following steps of the instruction execution cycle in their proper order. Step 1: Step 2: Step 3: Step 4: Step 5: Step 6:

Step 1: Fetch the instruction at the address in the Instruction Pointer into the Instruction Register. Step 2: Increment the Instruction Pointer to point to next instruction. Step 3: Decode the instruction in the Instruction Register. Step 4: If the instruction requires memory access, determine the memory address, and fetch the operand from memory into a CPU register, or send the operand from a CPU register to memory. Step 5: Execute the instruction. Step 6: If the output operand is in memory, the control unit uses a write operation to store the data.

After the following MASM code is executed: mov eax,219 mov ebx,23 mov ecx,56 add eax,ebx sub eax,ecx What is the value in the eax register (in decimal)? What is the value in the ebx register (in decimal)? What is the value in the ecx register (in decimal)?

What is the value in the eax register (in decimal)? 186 What is the value in the ebx register (in decimal)? 23 What is the value in the ecx register (in decimal)? 56

After the following MASM code is executed: mov eax,123 mov ebx,13 mov edx,0 div ebx What is the value in the eax register (in decimal)? 9 What is the value in the ebx register (in decimal)? 13 What is the value in the edx register (in decimal)? 6

What is the value in the eax register (in decimal)? 9 What is the value in the ebx register (in decimal)? 13 What is the value in the edx register (in decimal)? 6


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

AP Psych: Chapter 8- Abnormal Psychology

View Set

BIO PRACTICAL CELLULAR RESPIRATION

View Set

PE Investing - Terms for Midterm

View Set

State laws, Rules, and Regulations

View Set

AP Psychology - Unit 5 - States of Consciousness - REVIEW QUESTIONS

View Set

Chapter 12: Gender, Sex, and Sexuality

View Set

Performance & Recovery (Key Terms)

View Set

Jarvis HA Chapter 25, Anus, Rectum, and Prostate Q&A

View Set

Chapter 40 Preoperative Nursing Management

View Set