1.汇编调用c函数的参数传递规则 2.以下代码为何出错
void delay(unsigned char x);
void main() { while(1) { #asm MOV a,50 CALL _delay #endasm } } void delay(unsigned char x) { while(x--); }
编译中... HI-TECH C COMPILER (Holtek MCU) V9.10PL6 Copyright (C) 1984-2006 HI-TECH SOFTWARE licensed for evaluation purposes only this licence will expire on Tue, 04 Dec 2007 : 0: (800) undefined symbol "_delay" Compilation failed - error code 1 |