View Single Post
Old 01.04.2008, 22:00   #5
Fr3DBr
Guest
 
Posts: n/a
Default [Tutorial]Memory and data types in asm (for newbies)

ax = short =) "okay it can be a wchar_t but why making things complicated ?


bool = logical condition var (true/false) takes 1 bit... but it fits a byte in win32/64 platform.


char = 1 byte (Win32/64)

wchar_t = 2 bytes (Win32/64) Used to Store Extended Characters (AKA Unicode)

short = 2 bytes (Win32/64)

int = 4 bytes (Win32/64)

int64 = 8 bytes (Win32/64)

long = 4 bytes (Win32/64)

long long = 8 bytes (Win32/64)


al = 1 byte -> bool or char

ax = 2 bytes -> short or wchar_t

eax = 4 bytes -> int, long or short (depends of platform)

rax = 8 bytes -> int, long, int64, long long (depends of platform)

xmmX = 16 bytes -> no equivalence, you have to split the value in 2 integers ou doubles.


There are more that are even specific... (X64)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 2 April 2008. Открыть источник.