1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-07-01 07:29:32 +00:00

Implement puth in plvm

This change adds a simple implementation of puth() that is just
printf("%04X", i). This corresponds with the native implementations
for both Apple and C64.
This commit is contained in:
Ian Flanigan 2018-11-14 20:25:12 +00:00
parent 7a5578277f
commit 76d010392a

View File

@ -509,6 +509,10 @@ void call(uword pc)
mem_data[0x1FF] = i;
PUSH(0x1FF);
break;
case 10: // LIBRARY STDLIB::PUTH
i = UPOP;
printf("%04X", i);
break;
case 24: // LIBRARY CMDSYS::DIVMOD
a = POP;
b = POP;