⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unixc.cpp

📁 该程序模拟UNIX中save与resume函数,并介绍在VC中如何使用汇编进行机器级的操作. 主函数很简单首先引入两个外部函数,extern "C"表示按传统C命名习惯.函数save将程序指针保存在
💻 CPP
字号:

#include<stdio.h>
	extern "C" int save(long * s);
	extern "C" int resume(long * s);
void main(){
	long	sp;
	printf("Both the code in the if and the code in the else will be exe!!!\n");
	if(save(&sp)){
		printf("return form the if\n");
		return;
	}else{
		printf("return form the else\n");
		resume(&sp);
	}
	return;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -