Hello community,
the following listing shows a small C code with an enumeration, an assignment of value in the main procedure and the disassembled code.
Are this kind of enumerations always from the data type LONG resp. DWORD? Or is it possible that they may be of a different data type?
Thanks for tips.
Cheers
Stefan
the following listing shows a small C code with an enumeration, an assignment of value in the main procedure and the disassembled code.
Code:
//-Begin---------------------------------------------------------------- typedef enum _RFCTYPE { RFCTYPE_CHAR = 0, RFCTYPE_DATE = 1, RFCTYPE_BCD = 2, RFCTYPE_TIME = 3, RFCTYPE_BYTE = 4, RFCTYPE_TABLE = 5, RFCTYPE_NUM = 6, RFCTYPE_FLOAT = 7, RFCTYPE_INT = 8, RFCTYPE_INT2 = 9, RFCTYPE_INT1 = 10, RFCTYPE_NULL = 255 }RFCTYPE; int main (void) { RFCTYPE i = RFCTYPE_NULL; } /* 55 push ebp 89E5 mov ebp, esp 81EC04000000 sub esp, 00000004 90 nop B8FF000000 mov eax, 000000FF 8945FC mov dword[ebp-04], eax C9 leave C3 ret */ //-End------------------------------------------------------------------
Thanks for tips.
Cheers
Stefan
Comment