본문 바로가기
나머지/IT개발.잡다한것.

DWORD and WORD

by 무늬만학생 2012. 9. 27.
반응형

WORD is 16-bit unsigned integer and DWORD is 32-bit unsigned integer. 

You use DWORD type instead of unsigned int is because it is guaranteed the same size on different machines.


Also note that an "int" isn't neccessarily 32bits in size. "int" will be sized according to the default register size of the target CPU/platform. When you compile for DOS/Win16, 'int' is 16bits. For the opcoming Intel Itanium processor, 'int' will be 64 bits in size.

When using the Windows headers in your project, 'DWORD' will ALWAYS be guaranteed to be 32bits.


http://forums.codeguru.com/archive/index.php/t-163467.html




Fx2.h에


typedef unsigned char   BYTE;

typedef unsigned short   WORD;

typedef unsigned long   DWORD;

typedef bit            BOOL;


라고 되어있음

반응형

'나머지 > IT개발.잡다한것.' 카테고리의 다른 글

usb boot, 0xc0, RSEG, SEGMENT  (0) 2012.09.27
db Cx51 Compiler User's Guide Keil Software  (0) 2012.09.27
DWORD and WORD  (0) 2012.09.27
glue logic psen, read signal  (1) 2012.09.26
Assembler Directives 와 LEDCycle 예제  (1) 2012.09.25
EQU SET  (0) 2012.09.25

댓글0