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

📄 abc.c

📁 汇编语言与C51的相互调用简介,能给以一定的提示!
💻 C
字号:


#include<reg51.h>  //get the SFR define in
//	unsigned char data DDDD
#include<math.h>
#define uchar unsigned char
uchar ATOC(uchar,uchar);		//the .asm function assert


int ctoa(int aa) //reentrant  
// if the function is reentrantable or the SRC file is wantted,
//you had better add the startup.a51 in this project
	{
	return 2*aa;
	}

/*
signal void sine()
	{
	int xx;
	xx++;
	return sin(xx);
	}
*/
void test3(uchar xx,uchar yy,uchar zz,uchar ww)
{
}

void main()		//the main function
	{
	uchar xx;
	int yy;
aaa:xx=ATOC(0x55,0xaa);

	yy=ctoa(0x09);

	test3(4,5,6,7);
	goto aaa;
	}

⌨️ 快捷键说明

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