I converted the following C++ code into Assembly using Visual C++ 2010:
int main()
{
int i;
i = 1234;
return 0;
}
I received t
Microsoft's assembler treats something like a[b]
about the same way C or C++ would so a[b]
and b[a]
are pretty much equivalent. Both indicate addition and some optional scaling followed by dereferencing, but don't place many requirements about which part is "address" and which part is "index".