Files
Mu/hwTestSuite/cpu.h
2018-06-09 12:02:22 -07:00

29 lines
650 B
C

#ifndef CPU_HEADER
#define CPU_HEADER
#include <stdint.h>
#include "testSuite.h"
#define CPU_NONE 0x00/*only if in emulator with special features enabled, returned for physical cpu in emulator*/
#define CPU_M68K 0x01
#define CPU_ARM 0x02
#define CPU_BOTH (CPU_M68K | CPU_ARM)
#define CPU_TYPES 0x0F
#define CPU_M68K_328 0x10
#define CPU_M68K_EZ 0x20
#define CPU_M68K_VZ 0x40
#define CPU_M68K_SZ 0x80
#define CPU_M68K_TYPES 0xF0
void turnInterruptsOff();
void turnInterruptsOn();
uint8_t getPhysicalCpuType();
uint8_t getSupportedInstructionSets();
const char* getCpuString();
var enterUnsafeMode();
var exitUnsafeMode();
#endif