VC8常用汇编 指针型变量赋值

时间:2022-01-28 01:01:29
1,int * 成员变量赋值
*m_p = 7;
mov  ecx, DWORD PTR [eax]
mov  DWORD PTR [ecx], 7
2,short * 成员变量赋值
*m_p = 7;
mov  ecx, DWORD PTR [eax]
mov  WORD PTR [ecx], 7
3,float * 成员变量赋值
*m_p = 7;
mov  ecx, DWORD PTR [eax]
fld  DWORD PTR __real@40e00000
fstp  DWORD PTR [ecx]
4,double * 成员变量赋值
*m_p = 7;
mov  ecx, DWORD PTR [eax]
fld  QWORD PTR __real@401c000000000000
fstp  QWORD PTR [ecx]
5,unsigned char* 成员变量赋值
*m_p = 7;
mov  ecx, DWORD PTR [eax]
mov  BYTE PTR [ecx], 7
6,bool * 成员变量赋值
*m_p = false;
mov  ecx, DWORD PTR [eax]
mov  BYTE PTR [ecx], 0