Yes we can give a location in the memory a name to use it as an offset address of the specific location in memory for to read/write one byte, two bytes(word), or four bytes(dword) at once. The best location for read/write a word is an address that can divided by 2 and for dword divided by 4 for data alignment and best performance.
With using DataType with bytes like "myVar DB 4, 0, 0, 0" we can read/write a byte, or a word, or a dword. With using DataType with words like "myVar DW 4, 0" we can read/write a word, or a dword. And with using DataType with dwords like "myVar DD 4," we can read/write a dword. We have to use little endian in memory lowest byte first.
💗💗💗
Good work.❤
Thanks ✌️
Yes we can give a location in the memory a name to use it as an offset address of the specific location in memory for to read/write one byte, two bytes(word), or four bytes(dword) at once. The best location for read/write a word is an address that can divided by 2 and for dword divided by 4 for data alignment and best performance.
For instructions with a memory location i prefer to have brackets[var] to prevent confusing with a constant. Example: "mov dl, [var]"
With using DataType with bytes like "myVar DB 4, 0, 0, 0" we can read/write a byte, or a word, or a dword.
With using DataType with words like "myVar DW 4, 0" we can read/write a word, or a dword.
And with using DataType with dwords like "myVar DD 4," we can read/write a dword.
We have to use little endian in memory lowest byte first.