X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2F_gptrgetc.c;h=459562b972336225e6686a5e6384ce933745acb6;hb=3ce766b71ad2b6d9f192e0e6c5d3a5f129804812;hp=00506fb86980c5f665c889314b223074267a816a;hpb=8fca63fbcde6e36936906190fa8e41f072a69e34;p=fw%2Fsdcc diff --git a/device/lib/_gptrgetc.c b/device/lib/_gptrgetc.c index 00506fb8..459562b9 100644 --- a/device/lib/_gptrgetc.c +++ b/device/lib/_gptrgetc.c @@ -23,8 +23,14 @@ 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