* src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
[fw/sdcc] / device / lib / _gptrgetc.c
index 00506fb86980c5f665c889314b223074267a816a..459562b972336225e6686a5e6384ce933745acb6 100644 (file)
    what you give them.   Help stamp out software-hoarding!
 -------------------------------------------------------------------------*/
 
-unsigned char _gptrgetc ()
+
+/* the  return value is expected to be in acc, and not in the standard
+ * location dpl. Therefore we choose return type void here: */
+void
+_gptrgetc (char *gptr)
 {
+    gptr; /* hush the compiler */
+
     _asm
     ;   save values passed
        xch    a,r0