about summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-19 15:09:40 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-19 15:09:40 +0100
commitfc3b7e70867d0a6ce89c139e4ddc0d66329fea11 (patch)
tree2f736f37c18817593cf4cd4c3ecf7adb975c6626 /main.c
parentFeature: Added a font (diff)
downloadCHIP8-Emulator-fc3b7e70867d0a6ce89c139e4ddc0d66329fea11.tar.gz
CHIP8-Emulator-fc3b7e70867d0a6ce89c139e4ddc0d66329fea11.tar.bz2
CHIP8-Emulator-fc3b7e70867d0a6ce89c139e4ddc0d66329fea11.zip
Misc: Properly intialise the emulator
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 7c5a2fc..94e4a95 100644
--- a/main.c
+++ b/main.c
@@ -23,14 +23,14 @@ int main(int argc, char** argv)
 
     printf("Hello brother!\n");
 
-    for(int i = 0; i < sizeof(emulator.memory); ++i)
+    /*for(int i = 0; i < sizeof(emulator.memory); ++i)
     {
         printf("0x%x ", emulator.memory[i]);
     }
 
-    putchar('\n');
+    putchar('\n');*/
 
-    while(emulator.is_on)
+    while(emulator.is_on == 1)
     {
         emulator_tick(&emulator);
         usleep(1000000 / INSTRUCTIONS_PER_SECOND);