Question

Which register is used to keep track of loop iterations?: A. EDI B. ESI C. ECX...

Which register is used to keep track of loop iterations?:

A. EDI

B. ESI

C. ECX

D. EDX

0 0
Add a comment Improve this question Transcribed image text
Answer #1
ECX register is used to keep track of loop iterations
ECX Called the Counter register and is used as a loop counter and for shifts

C. ECX

Add a comment
Know the answer?
Add Answer to:
Which register is used to keep track of loop iterations?: A. EDI B. ESI C. ECX...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In Xv6, system call results are returned in the eax register. Explain how this happens, from...

    In Xv6, system call results are returned in the eax register. Explain how this happens, from user space making a system call to the kernel space returning the result. Particularly, how the following structure is used in this process struct trapframe { uint edi; uint esi; uint ebp; uint oesp; uint ebx; uint edx; uint ecx; uint eax; ... }

  • For the C code 1 int loop while(int a, int b) int result 1; while (a < b) t result (atb); return ...

    For the C code 1 int loop while(int a, int b) int result 1; while (a < b) t result (atb); return result; Gcc generates the following assembly code: %ebp+8, mov1 movl movl %ebp+12 at 8(%ebp) ,%ecx 12(%ebp) ,%ebx $1,%eax a at b 5 jge L11 leal (%ebx, %ecx), Xodx 8 L12: inull %eax , %eax addl $1,%ecx addl $1, edx cmp1 %ecx , %ebx 9 10 12 13 J8 14 ·L11: .L12 In generating this code, occ makes an...

  • URGENT HELP NEEDED Convert the following C++ program into an x86 assembly language program. Comment the...

    URGENT HELP NEEDED Convert the following C++ program into an x86 assembly language program. Comment the start of each "code block" that performs one of the listed mathematical calculations. Comments go to the right of the actual code, all starting on the same column. . // Global variables short a = 5; short b = 6; short c = 7; short d = 8; short e; short f; short g; short h; // Code int main() {     ++d;    ...

  • 9 1. Which index register is used by the STOSD instruction? 2. In what way is...

    9 1. Which index register is used by the STOSD instruction? 2. In what way is the CMPS instruction ambiguous? 3. Suppose a two-dimensional array of doublewords has three logical rows and four logical columns. Write an expression using ESI and EDI that address the third column in the second row. (Numbering for rows and columns starts at zero). 4. What is the maximum number of comparisons needed by the binary search algorithm when an array contains 1,024 elements?

  • URGENT HELP NEEDED :( Convert the following C++ program into an x86 assembly language program. Comment...

    URGENT HELP NEEDED :( Convert the following C++ program into an x86 assembly language program. Comment the start of each "code block" that performs one of the listed mathematical calculations. Comments go to the right of the actual code, all starting on the same column. Post ONLY your ASM file here to Blackboard when complete. // Global variables char a = 5; short b = 7; int   c = 11; int   d = 13; // Code int main() {    ...

  • Can someone explain how to get the answer to these two questions please? This is a...

    Can someone explain how to get the answer to these two questions please? This is a review for school. ; code fragment V Use this information and the code at the right to answer questions # 20-21. mov edx, OFFSET string mov ecx , MAXSIZE dec ecx call Readstring mov ecx, eax ; number of Given the following declarations for an IA-32 processor MAXSIZE 10 data ; digits entered ;initialize val string BYTE MAXSIZE DUP (?) mov val,0 mov esi,...

  • Suppose we have C program, int foo(long s, long d) {     char arr_a[11];     int...

    Suppose we have C program, int foo(long s, long d) {     char arr_a[11];     int i;     arr_a[10] = 0;     arr_s[10] = 0;     for (i = 0; i < 5; i++) {       if ((s == 1) && (d == 2)) {    arr_a[i] = hello[4-i];    arr_s[i] = hello[4-i];    arr_a[i+5] = world[i];    arr_s[i+5] = world[i];       } else {    arr_a[i+5] = hello[4-i];    arr_s[i+5] = hello[4-i];    arr_a[i] = world[i];    arr_s[i] =...

  • EAX 1CB2 H, EBX = 952 D, ECX - 1275 D, EDX -300 D What will...

    EAX 1CB2 H, EBX = 952 D, ECX - 1275 D, EDX -300 D What will be value stored in the four registers after executing the following instructions? Each group of instructions is executed independently from the initial values given above. Please also show which flag (zero, carry, sign) may be influenced. Hint you can test it in NSAM. a) and CL, AH b) shr CX, 3 c) or CL, 0D H not CL d) rol CX, 3 cmp DX,...

  • 1. Which organization develops messaging standards for EDI? a. SDO b. ASTM c. ANSI ASC X12...

    1. Which organization develops messaging standards for EDI? a. SDO b. ASTM c. ANSI ASC X12 d. ISO digital images electronically? h of the following has standards for the exchanging of a. DICOM b. HL7 C. SNOMED d. NDC Continuea)

  • QUESTION 11 A partnership capital account is opened for each partner to: a) Keep track of...

    QUESTION 11 A partnership capital account is opened for each partner to: a) Keep track of the partners share of profits b) Keep track of the partners original and subsequent contributions c) Keep track of the partners drawing from the partnership d) All of the options avialable QUESTION 12 Which of the following statements is NOT true in regards to partnerships? a) Partners are not easily able to limit their liability b) Partnerships pay a company tax rate of 30%....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT