mirror of
https://github.com/dschmenk/PLASMA.git
synced 2024-11-04 11:07:00 +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:
parent
7a5578277f
commit
76d010392a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user