summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/simulator.h4
-rw-r--r--lib/simulator.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/simulator.h b/include/simulator.h
index c158a56..8780350 100644
--- a/include/simulator.h
+++ b/include/simulator.h
@@ -23,6 +23,6 @@ void DecodeExec(Uint32 instruction, Uint32 entrypoint);
void Traitement(Uint32 entrypoint);
void AfficheReg(void);
void Debogueur(void);
+void ChargeBinaire(char * filename);
-
-#endif
+#endif \ No newline at end of file
diff --git a/lib/simulator.c b/lib/simulator.c
index 633085f..b8f5495 100644
--- a/lib/simulator.c
+++ b/lib/simulator.c
@@ -427,7 +427,7 @@ EcrireRegistreSP(ADD_SP); /* initialisation du stack pointer */
EcrireRegistrePC(LireRegistrePC()+base_addr); /* maj de PC */
-
+base_addr+=nb+ns+nbss;
fclose(file);