I. Data types in the MASM assembler
Ii. types of immediate numbers in Intel compilations
Iii. defining signed and unsigned integers
Four, small end sequence
In-memory data is stored in bytes, a 4-byte unsigned integer with a high position stored at a low address and a low store at a higher address.
For example 0x12345678 this integer, in memory according to memory address from small to large arrangement is: 0X78 0x56 0x34 0x12
V. Assembly Code Validation
INCLUDE Irvine32.Incincludelib irvine32.libincludelib kernel32.libincludelib user32.lib.code;unsigned typevar1 DWORD 12345678h;signed Typevar2 Sdword 12345678hmain PROCmoveax0 movEbx,offset var1movECX,[EBX]PagerDumpregsmovax, [EBX]Pagerdumpregs exitmain endpend main
The assembly code reads the two bytes starting at the VAR1 address as a 16-bit integer, and the bytes read are 0x7856
Program Run Result:
Intel Assembler 5th Edition Intel CPU small End sequence