about summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-20 00:27:37 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-20 00:27:37 +0100
commit3e4639ce6871f50aca13aa1fe66620b08471c9bd (patch)
tree1ff98c4e3ec18027bb8423cbf2138dc228a370be /main.c
parentMisc: Added stars.ch8 rom (diff)
downloadCHIP8-Emulator-3e4639ce6871f50aca13aa1fe66620b08471c9bd.tar.gz
CHIP8-Emulator-3e4639ce6871f50aca13aa1fe66620b08471c9bd.tar.bz2
CHIP8-Emulator-3e4639ce6871f50aca13aa1fe66620b08471c9bd.zip
Features: Added multiple instructions and added an infinite loop detector
Now we are able to detect when we are entering an infinite loop to stop
the program.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 5269978..9f5dd1b 100644
--- a/main.c
+++ b/main.c
@@ -35,6 +35,8 @@ int main(int argc, char** argv)
         {
             if(event.type == SDL_QUIT)
                 goto exit;
+            if(event.type == SDL_WINDOWEVENT)
+                SDL_RenderPresent(renderer);
         }
 
         emulator_tick(&emulator);