How many memory accesses are required in the worst case for the following instructions:
add edx, (to_printf-next_i) ; where to_printf and next_i are labels defined in .text
inc dword [myarray + ebx*4] ; where myarray is a label defined in .data
Is my answer true?
1. 0 , since we do not access memory here
2. fetch: 4 bytes for the address : myarray + ebx*4 -> 2 memory accesses in the worst case
write: 4 bytes because of "dword" -> 2 memory accesses in the worst case
read?