问题描述:

I'm new to Assembly programming, and searched the web for tutorials and ebooks. I have found some confusing information about syntax in assembly language e.g. in a tutorial I read the following code:

MOV EBX, [MY_TABLE] ; Effective Address of MY_TABLE in EBX

MOV [EBX], 110 ; MY_TABLE[0] = 110

And in a book I read:

mov ax, [Data] ; normal direct memory addressing of a wor

mov ebx, Data ; ebx = & Data

3 mov ax, [ebx] ; ax = *ebx

So when we MOV a variable enclosed in [] to a register like EBX, what value do we store in the register? The address or the actual value in that memory location?

相关阅读:
Top