Update all syscall

And add PutInt() and GetInt()
This commit is contained in:
Yorick Barbanneau 2021-10-15 02:04:09 +02:00
parent 2b7c7ee780
commit 2a3198c949
7 changed files with 95 additions and 31 deletions

View file

@ -36,6 +36,8 @@
#define SC_PutString 12
#define SC_GetChar 13
#define SC_GetString 14
#define SC_PutInt 15
#define SC_GetInt 16
#endif
#ifdef IN_USER_MODE
@ -137,9 +139,12 @@ void Yield ();
#ifdef CHANGED
void PutChar (char c);
void PutString (char * s);
void GetChar(char c);
void GetString(char * s, int n );
void PutString (char *s);
char GetChar();
void GetString(char *s, int n );
void PutInt(int n);
int GetInt();
#endif // CHANGED
#endif // IN_USER_MODE