Home > Engineering > Detail
search_icon
Question

Using Indexed Operands addressing, what is the correct index value to move the 25th element of list into the EAX register with the instruction MOV EAX, list[?]?

Answer

24

To access the 25th element of an array with Indexed Operands addressing, the index value starts at 0. Since the array is zero-indexed, the 25th element would have an index value of 24. Therefore, the correct index value to move the 25th element of the list array into EAX with the instruction MOV EAX, list[?] would be 24.