summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 46e6ba5..f4ddf1b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3,6 +3,8 @@
#include <ncurses.h>
#include <unistd.h>
+
+
int main() {
@@ -10,11 +12,19 @@ int main() {
DisplayInit();
+ FILE *Log = fopen("log/log.raw", "w+");
+ int Time = 0;
+
while(1) {
+ // Logging
+ fprintf(Log, "%04x : %04x\n", Time, PC);
+ fflush(Log);
+ // Computing
CallInstructionTable(GetMemory(PC), 0);
+ // Display information
PrintInfo();
- //sleep(3);
- //getch();
+ // Logging
+ Time++;
}
DisplayClose();