about summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-23 14:32:43 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-23 14:32:43 +0100
commit6be26e82cf54b9b3ce8fd70af25cb969c1079525 (patch)
treef57abca83bad24f39bd7f7b4b3b348b8ff57269e /main.c
parentFeature: Implemented background and foreround color customizability (diff)
downloadCHIP8-Emulator-6be26e82cf54b9b3ce8fd70af25cb969c1079525.tar.gz
CHIP8-Emulator-6be26e82cf54b9b3ce8fd70af25cb969c1079525.tar.bz2
CHIP8-Emulator-6be26e82cf54b9b3ce8fd70af25cb969c1079525.zip
Feature: Implemented various instructions
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 449efda..6bde0e1 100644
--- a/main.c
+++ b/main.c
@@ -76,7 +76,8 @@ int main(int argc, char** argv)
             emulator.draw_flag = 0;
         }
 
-        //usleep(1000000 / INSTRUCTIONS_PER_SECOND);
+        if(!DEBUG)
+            usleep(1000000 / INSTRUCTIONS_PER_SECOND);
     }
 
     exit: