On January 3, 2009 02:16:53 pm ronnym...@aol.com wrote: > This is probably a very basic question, but since I am new to SDCC and the > 8051, I will ask anyway. How can I create a function that will allow me to > write a command like Print_to_LCD("Hello"); without having to previously > store the text to code space or data space and using a pointer. I have a > character print routine running for the I2C LCD already. I just need to > know where to find the ("text") to print after the function call. > Thanks, > Ron > > > ************** > New year...new news. Be the first to know what is making > headlines. (http://www.aol.com/?ncid=emlcntaolcom00000026)
If you define your own function putchar to send characters to the LCD, you can use printf to print strings. It should call your putchar routine. JP ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user