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

15
code/test/putstring.c Normal file
View file

@ -0,0 +1,15 @@
#include "syscall.h"
int main()
{
// PutString("Te\n");
// PutString("Tes\n");
// PutString("Tes t\n");
// // les deux derniers ne fonctionnent pas car ila dépassent la taille du
// // buffer: MAX_STRING_SIZE
// //
// // Maitenant que j'ai fais une boucle dans PutString, tout fonctionne bien
PutString("BonjourTout\n");
PutString("Bonjour tout le monde\n");
Exit(4);
}