From 85155ff54ba94f8ac40e267f83435284e88b866c Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Mon, 16 Apr 2001 20:40:13 +0000 Subject: Prout --- include/Makefile.am | 2 +- include/simulator.h | 9 ++------- include/terminal.h | 12 ++++++++++++ 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 include/terminal.h (limited to 'include') diff --git a/include/Makefile.am b/include/Makefile.am index da89ffc..579a87a 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1 +1 @@ -include_HEADERS = alu.h simulator.h assembler.h exceptions.h fpu.h hash.h interne.h memoire.h meta.h numbers.h parser.h registre.h types.h linker.h +include_HEADERS = alu.h simulator.h assembler.h exceptions.h fpu.h hash.h interne.h memoire.h meta.h numbers.h parser.h registre.h types.h linker.h terminal.h diff --git a/include/simulator.h b/include/simulator.h index fee37cc..ba8c7d1 100644 --- a/include/simulator.h +++ b/include/simulator.h @@ -15,14 +15,9 @@ extern Uint32 memoire_principale[TAILLE_MEMOIRE]; extern Uint32 registre[NB_REGISTRES_PHYSIQUES]; /* Registres classiques */ -Uint32 LireInstruction(void); -void IncrementeCompteurOrdinal(void); -Uint32 Adresse(Uint32 u, Uint32 instruction); +extern int debug; + void Initialisation(void); -void DecodeExec(Uint32 instruction, Uint32 entrypoint); -void Traitement(Uint32 entrypoint); -void AfficheReg(void); -void Debogueur(void); void ChargeBinaire(char * filename); #endif \ No newline at end of file diff --git a/include/terminal.h b/include/terminal.h new file mode 100644 index 0000000..ed65f71 --- /dev/null +++ b/include/terminal.h @@ -0,0 +1,12 @@ +#ifndef __TERMINAL_H__ +#define __TERMINAL_H__ +#include + +extern FILE * input; +extern struct termios initial_settings, new_settings; + +openterm(); +clearterm(); +initterm(); + +#endif \ No newline at end of file -- cgit v1.2.3