mirror of
https://github.com/libretro/Mu.git
synced 2026-09-23 15:15:43 +00:00
30 lines
678 B
C
30 lines
678 B
C
#ifndef CPU_H
|
|
#define CPU_H
|
|
|
|
#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 0x30
|
|
#define CPU_M68K_SZ 0x40
|
|
#define CPU_M68K_TYPES 0xF0
|
|
|
|
void turnInterruptsOff();
|
|
void turnInterruptsOn();
|
|
void wasteXOpcodes(uint32_t opcodes);
|
|
uint8_t getPhysicalCpuType();
|
|
uint8_t getSupportedInstructionSets();
|
|
const char* getCpuString();
|
|
var enterUnsafeMode();
|
|
var exitUnsafeMode();
|
|
|
|
#endif
|