<<< Integer Data Types | Index | Data Organization: DB, DW, and EQU >>> |
Intel x86 CPU performs operations on different sizes of data.
An integer is a whole number with no fractional part.
In assembler, the variables are created by data allocation directives.
Assembler declaration of integer variable assigns a label to a memory space allocated for the integer.
The variable name becomes a label for the memory space. For example,
MyVar db 77h ; byte-sized variable called MyVar initialised to 77h
where
MyVar is variable name
db is directive for byte-sized memory allocation
77h is initializer specifying initial value.
<<< Integer Data Types | Index | Data Organization: DB, DW, and EQU >>> |