aiie/globals.h

59 lines
1.1 KiB
C
Raw Normal View History

#ifndef __GLOBALS_H
#define __GLOBALS_H
#include <stdint.h>
#include "filemanager.h"
#include "cpu.h"
#include "vm.h"
#include "physicaldisplay.h"
#include "physicalkeyboard.h"
#include "physicalspeaker.h"
#include "physicalpaddles.h"
2017-02-20 23:41:46 +00:00
#include "physicalprinter.h"
2018-01-07 19:43:17 +00:00
#include "vmui.h"
#include "vmram.h"
// display modes
enum {
M_NORMAL = 0,
M_SELECTED = 1,
M_DISABLED = 2,
M_SELECTDISABLED = 3
};
// debug modes
enum {
D_NONE = 0,
D_SHOWFPS = 1,
D_SHOWMEMFREE = 2,
D_SHOWPADDLES = 3,
D_SHOWPC = 4,
D_SHOWCYCLES = 5,
D_SHOWBATTERY = 6,
2020-07-04 11:40:45 +00:00
D_SHOWTIME = 7,
D_SHOWDSK = 8
};
extern FileManager *g_filemanager;
extern Cpu *g_cpu;
extern VM *g_vm;
extern PhysicalDisplay *g_display;
extern PhysicalKeyboard *g_keyboard;
extern PhysicalSpeaker *g_speaker;
extern PhysicalPaddles *g_paddles;
2017-02-20 23:41:46 +00:00
extern PhysicalPrinter *g_printer;
2018-01-07 19:43:17 +00:00
extern VMui *g_ui;
extern int8_t g_volume;
extern uint8_t g_displayType;
extern VMRam g_ram;
extern volatile uint8_t g_debugMode;
extern volatile bool g_biosInterrupt;
extern uint32_t g_speed;
extern bool g_invertPaddleX;
extern bool g_invertPaddleY;
2020-07-08 20:37:26 +00:00
extern char debugBuf[255];
#endif