diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2021-07-24 21:22:20 +0100 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2021-07-24 21:22:20 +0100 |
commit | dca69272607b8ac3c5c2cbef852932d8669a0d77 (patch) | |
tree | 3f60c21bf758075d180feade1ac2b10002b38090 /config.h | |
parent | Misc: Added the timer thread variable to the emulator struct (diff) | |
download | CHIP8-Emulator-master.tar.gz CHIP8-Emulator-master.tar.bz2 CHIP8-Emulator-master.zip |
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 3 |
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 |