about summary refs log tree commit diff
path: root/config.h
blob: 19677a0492be089817543d7650f67726d9a3d98d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _CONFIG_H_
#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
#define SCREEN_HEIGHT 480

#define INSTRUCTIONS_PER_SECOND 700 //Default: 700
#define TIMERS_THREAD_FREQUENCY 60 //Default: 60
#define GAME_LOAD_LOCATION 0x200
#define FONT_LOAD_LOCATION 0x50

#define FOREGROUND_COLOR 0x00F00FFF //Default: 0x00FFFFFF
#define BLACKGROUND_COLOR 0xFF000000 //Default: 0xFF000000

#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