* .version: bumped version to 2.4.7
[fw/sdcc] / device / lib / _gptrget.c
index 30f982976095aed6cfc07e5f95d8fb36dddf36fa..e3e6d577a60339c67190f1ca5380f43548bc3e01 100644 (file)
 /* the  return value is expected to be in acc, and not in the standard
  * location dpl. Therefore we choose return type void here: */
 void
-_gptrget (char *gptr)
+_gptrget (char *gptr) _naked
 {
     gptr; /* hush the compiler */
 
     _asm
+       ar0 = 0x00
     ;   save values passed
     ;
     ;   depending on the pointer type acc. to SDCCsymt.h
@@ -101,6 +102,7 @@ _gptrget (char *gptr)
 ;   return
 ;
  00005$:
+        ret
      _endasm ;
 }