abc.c

来自「汇编语言与C51的相互调用简介,能给以一定的提示!」· C语言 代码 · 共 40 行

C
40
字号


#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 + =
减小字号Ctrl + -
显示快捷键?