考虑以下标签:
foo:
dw 0
dd 0
现在如何从另一个标签访问标签dd
下的双字或(字?) ?foo
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
我知道在文档等中可能有对此的答案,但我缺乏正确的术语来使用谷歌找到任何好的结果。