mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-24 08:54:17 +00:00
Upload
Digital Research
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
|
||||
#include "portab.h"
|
||||
|
||||
BYTE *__prtint(pobj, buf, base, signed, f)
|
||||
WORD *pobj;
|
||||
BYTE *buf;
|
||||
WORD base;
|
||||
WORD signed;
|
||||
BYTE *(*f)();
|
||||
{
|
||||
BYTE digs[15];
|
||||
REG BYTE *dp;
|
||||
REG WORD k;
|
||||
REG BYTE *p;
|
||||
|
||||
dp = (*f)(pobj, &buf, base, signed, digs);
|
||||
|
||||
if (dp == digs)
|
||||
*dp++ = 0;
|
||||
p = buf;
|
||||
while (dp != digs)
|
||||
{
|
||||
k = *--dp + '0'; /* HY */
|
||||
if (k > '9')
|
||||
k += 'A'-10-'0';
|
||||
|
||||
*p++ = k;
|
||||
}
|
||||
*p = 0;
|
||||
return (p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user