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

📄 c.c

📁 spce061单片机的一些程序!C语言和汇编语言都有
💻 C
字号:
//============================================================================
//
//        The information contained herein is the exclusive property of
//      Sunplus Technology Co. And shall not be distributed, reproduced,
//      or disclosed in whole in part without prior written permission.
//
//            (C) COPYRIGHT 2001   SUNPLUS TECHNOLOGY CO.
//                           ALL RIGHTS RESERVED
//
//    The entire notice above must be reproduced on all authorized copies.
//
//============================================================================
//  工程名称:   C向汇编函数传递参数
//  功能描述:    程序4.12  C向汇编函数传递参数
//  文件来源:   《SPCE061单片机原理及应用技术》 第四章  程序设计
//  IDE环境:    SUNPLUS u'nSPTM  IDE 1.8.0(or later)
//
//  涉及的库:	 (a) C-Lib:  (CMacro.lib);
//  组成文件:
//    	asm.asm/c.c
//		Resource.asm
//  日期:          	2003-5-20(建立)
//					2003-7-24(添加版本说明及版权声明并做代码标准化)
//============================================================================
void sub_asm(int a,int b,int c);	//声明要调用的函数的函数原型
									//此函数需要传递三个整形的参数,但无返回值。
int main(){
	int i = 1, j = 2, k = 3;
	while(1){
		sub_asm(i,j,k);
		i = 0;
		i++;
		j = 0;
		j++;
		k = 0;
		k++;
	}
	return 0;
}

⌨️ 快捷键说明

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