On Sat, 2010-12-11 at 17:50 -0800, Peter Van Epp wrote: > Is there a .h file that I'm missing that supplies a suitable putchar() > function for the s51 simulator? If I compile this program: > > #include <stdio.h> > > main() > { > printf("hello world\r\n"); > return 0; > } > > it complains about no putchar() (which I think should be an > error rather than just a warning as well!):
Hi, I think that you will have to write your own putchar() that talks to your interrupt handling for the serialport which sends the characters out. Assuming you are using the serialport :-) roelof ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user