about summary refs log tree commit diff
path: root/config.h
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-24 21:22:20 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-24 21:22:20 +0100
commitdca69272607b8ac3c5c2cbef852932d8669a0d77 (patch)
tree3f60c21bf758075d180feade1ac2b10002b38090 /config.h
parentMisc: Added the timer thread variable to the emulator struct (diff)
downloadCHIP8-Emulator-master.tar.gz
CHIP8-Emulator-master.tar.bz2
CHIP8-Emulator-master.zip
Feature: Added a config value to add COSMAC VIP compatiblity HEAD master
Diffstat (limited to 'config.h')
-rw-r--r--config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h b/config.h
index 38d0ce7..19677a0 100644
--- a/config.h
+++ b/config.h
@@ -2,6 +2,7 @@
 #define _CONFIG_H_
 
 #define DEBUG 1
+#define COSMAC_VIP_COMPATIBILITY 1 //if set to != 0 it will change the emulator to work with Cosmac VIP era's games
 //#define STOP_ON_INFINITE_LOOP
 
 #define SCREEN_WIDTH 852
@@ -17,5 +18,7 @@
 
 #define dbgprintf(fmt, ...) \
      do { if(DEBUG) fprintf (stdout, fmt, ##__VA_ARGS__); } while(0)
+#define COSMAC_VIP(code) \
+     do { if(COSMAC_VIP_COMPATIBILITY) code else ; } while(0);
 
 #endif