what you give them. Help stamp out software-hoarding!
-------------------------------------------------------------------------*/
-unsigned char _decdptr ()
+/* the return value is already in dph/dpl */
+void
+_decdptr (char *gptr)
{
- _asm
+ gptr; /* hush the compiler */
+
+#ifdef SDCC_ds390
+ _asm
+ orl dps, #0xc0
+ inc dptr
+ anl dps, #0x3f
+ _endasm ;
+#else
+ _asm
xch a,dpl
jnz 00001$
dec dph
00001$:
dec a
xch a,dpl
- _endasm ;
+ _endasm ;
+#endif
}