In Assembly, Do Instructions Refine Data Types?

I am starting to program in assembly language (x86).

Is the following true for him?

In assembly data types, such as BYTE, WORD, DWORD, respectively 8 bits, 16 bits and 32 bits, not only INTEGERS. They have no meaning in themselves, they are just bit patterns. The instructions that use them give them meaning.

+4
source share
1 answer

The "assembly" code contains many special instructions that work with operands of various sizes (for x86, 1 or more bytes), which contain values ​​that require individual instructions of a certain type.

(, ADD, CMP, XOR) / , N- 2. BYTE, DWORD .. , , "N".

: 2 , ADD, SUBTRACT CMP ( , , ) , , ADD SUB . [ CMP , . unsigned-cmp signed-cmp CMP, CMP. CC, comp. JMP SIGNED LESS JUMP UNSIGNED LESS ].

, 32- 64- IEEE. "", 2 ; .

ECX 1,2,4 8 .

2 .

, , .

x86 , , , , . DWORD QWORD PTR. , , (, MOV) , , .

+4

All Articles