Add Syscall: Exit, PutChar, GetCar, PutString, GetString

This commit is contained in:
Yorick Barbanneau 2021-10-11 22:41:17 +02:00
parent 6f405265a5
commit 80fc250109
15 changed files with 359 additions and 17 deletions

View file

@ -33,7 +33,12 @@ SynchDisk *synchDisk;
#ifdef USER_PROGRAM // requires either FILESYS or FILESYS_STUB
Machine *machine; // user program memory and registers
#endif
#ifdef CHANGED // Define our consoledriver Object
ConsoleDriver *consoledriver;
#endif // CHANGED
#endif // USER_PROGRAM
#ifdef NETWORK
PostOffice *postOffice;
@ -230,6 +235,12 @@ Cleanup ()
delete machine;
machine = NULL;
}
#ifdef CHANGED
if (consoledriver) {
delete consoledriver;
consoledriver = NULL;
}
#endif
#endif
#ifdef FILESYS_NEEDED