#include <reg5000.h> #include <stdio.h> void main(void); void writebyte (unsigned char ch); void main() { unsigned char ch; ch=0x0A; writebyte(ch); } void writebyte (unsigned char ch) { ACC=ch; #pragma ASM PUSH MCON ORL MCON, #4 MOVX @R0, A DEC R0 POP MCON #pragma ENDASM }
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: ?C_STARTUP MODULE: rtc-func.obj (RTC_FUNC)
Just included a dummy C file into your project. Right now it thinks you are compiling a pure assemble routine, and it does not include the C runtime modules.