aiie/globals.cpp

32 lines
870 B
C++
Raw Normal View History

#include "globals.h"
FileManager *g_filemanager = NULL;
Cpu *g_cpu = NULL;
VM *g_vm = NULL;
PhysicalDisplay *g_display = NULL;
PhysicalKeyboard *g_keyboard = NULL;
2021-01-11 04:52:58 +00:00
PhysicalMouse *g_mouse = NULL;
PhysicalSpeaker *g_speaker = NULL;
PhysicalPaddles *g_paddles = NULL;
2017-02-20 23:41:46 +00:00
PhysicalPrinter *g_printer = NULL;
2018-01-07 19:43:17 +00:00
VMui *g_ui;
2021-01-19 23:40:13 +00:00
int8_t g_volume = 7;
uint8_t g_displayType = 3; // FIXME m_perfectcolor
VMRam g_ram;
volatile uint8_t g_debugMode = D_NONE;
volatile bool g_biosInterrupt = false;
uint32_t g_speed = 1023000; // Hz
bool g_invertPaddleX = false;
bool g_invertPaddleY = false;
2021-01-19 23:40:13 +00:00
uint8_t g_luminanceCutoff = 122; // reasonable values are 127 and 128 for 32-bit (SDL); and 122/123 for 16-bit (teensy) depending on whether we're talking about white-on-black or black-on-white
2021-01-20 03:56:38 +00:00
#ifdef TEENSYDUINO
EXTMEM
#endif
char debugBuf[255];
2021-01-10 02:32:40 +00:00
#ifdef TEENSYDUINO
2021-01-20 03:56:38 +00:00
EXTMEM char fsbuf[200];
2021-01-10 02:32:40 +00:00
#endif