c.cpp
来自「windows下汇编语言 学习汇编语言好助手」· C++ 代码 · 共 24 行
CPP
24 行
// C.cpp : Defines the entry point for the application.
//
/*********************************\
*文件:C.CPP *
*功能:演示在C/C++中插入汇编指令*
\*********************************/
#include "stdafx.h"
int APIENTRY WinMain(HMODULE hMod,HMODULE prehMod,LPSTR lpCmd,int n)
{
char *lpCaption ="标题";
char *lpText ="C/C++中插入汇编指令示例";
__asm{
push MB_OK //MessageBox参数入栈
push lpCaption
push lpText
push NULL
call dword ptr MessageBoxA //调用MessageBoxA
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?