Add Syscall: Exit, PutChar, GetCar, PutString, GetString
This commit is contained in:
parent
6f405265a5
commit
80fc250109
15 changed files with 359 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue