[REQ_ERR: 404] [KTrafficClient] Something is wrong. Enable debug mode to see the reason.
Store values in array assembly
something like this: mov eax, rVal1 add eax, i ; eax = rVal1 + i shl eax, 2 ; eax = (rVal1 + i) * 4 lea eax, [eax*2 + eax] ; eax = ((rVal1 + . May 15, · Assuming that each element in your array is a byte, what you want is to store the value 'X' at OFFSET dArray + (rVal1 + i) * 12 + rVal2, i.e. Discover factors that play into the cost of a start-up. The variable could also be . We have already discussed that the data definition directives to the assembler are used for allocating storage for variables. something like this: mov eax, rVal1 add eax, i ; eax = rVal1 + i shl eax, 2 ; eax = (rVal1 + i) * 4 lea eax, [eax*2 + eax] ; eax = ((rVal1 + i) * 4) * 3 add eax, rVal2 ; eax = (rVal1 + i) * 12 + rVal2 mov byte ptr [dArray + eax], 'X'. Assuming that each element in your array is a byte, what you want is to store the value 'X' at OFFSET dArray + (rVal1 + i) * 12 + rVal2, i.e. ADR R0, Sample LDR R1, [R0] LDR R2, [R0, #4] MOV R3, R1 MOV R1, R2 MOV R2, R3 STR R1, [R0] STR R2, [R0, #4] Share Improve this answer. 1 Answer Sorted by: 2 Your array is not changing because you need to ADR the arrow before loading it. Your code is not doing anything because you don't load the memory address. This would work. rainer-daus.de global _start ;must be declared for linker (ld) _start: mov eax,3 ;number bytes to be summed mov ebx,0 ;EBX will store the sum mov ecx, x ;ECX will point to the current . Learn how to find an AT&T store near you.