Considering the following label:
foo:
dw 0
dd 0
Now how can one access the double word or dd
(word?) under the foo
label from another label?
bar: ;Subroutine
mov eax, [foo] ;Now how can I move the value stored in foo's dw into eax for example?
;I assume this isn't the correct way?
add eax, 01h ;Do something with the value
mov [foo], eax ;Store it back into foo's dw
ret
I am aware that there may be answers to this in documentations etc. but I'm lacking the proper terminology to find any good results using Google.