Programming/C/C++/C#
asm - 어셈블리 메시지 박스 띠우기
휘탱
2017. 1. 1. 02:20
asm으로 메시지 박스 띠우기
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include <windows.h> #include <iostream> using namespace std; void main() { char title[] = "Assembly for Win32"; char str[] = "asm을 이용해 메시지 박스 띠우기"; _asm { xor eax, eax push eax lea eax, dword ptr title push eax lea eax, dword ptr str push eax xor eax, eax push eax call dword ptr MessageBox // MessageBox(NULL, Title, Name, MB_OK); } } | cs |
반응형