mirror of
https://github.com/libretro/Mu.git
synced 2026-09-23 07:05:37 +00:00
Remove old feature bits
This commit is contained in:
@@ -11,7 +11,7 @@ These registers will do nothing if their corresponding feature bit is not set on
|
||||
/*features*/
|
||||
#define FEATURE_ACCURATE 0x00000000/*no hacks/addons*/
|
||||
#define FEATURE_RAM_HUGE 0x00000001/*128mb RAM*/
|
||||
#define FEATURE_FAST_CPU 0x00000002/*doubles CPU speed*/
|
||||
#define FEATURE_FAST_CPU 0x00000002/*allows the emulator to set its CPU speed*/
|
||||
#define FEATURE_HYBRID_CPU 0x00000004/*allows running ARM opcodes in an OS 4 enviroment*/
|
||||
#define FEATURE_CUSTOM_FB 0x00000008/*creates a dynamicly sized framebuffer for hires mode, the 160x160 framebuffer is a transparent overlay over the extended framebuffer*/
|
||||
#define FEATURE_SYNCED_RTC 0x00000010/*RTC always equals host system time*/
|
||||
@@ -19,8 +19,9 @@ These registers will do nothing if their corresponding feature bit is not set on
|
||||
#define FEATURE_EMU_HONEST 0x00000040/*tell the OS that its running in an emu, does nothing else*/
|
||||
#define FEATURE_EXT_KEYS 0x00000080/*enables the OS 5 buttons, left, right and select*/
|
||||
#define FEATURE_DEBUG 0x00000100/*enables the debug commands, used to call Palm OS functions like native C functions*/
|
||||
#define FEATURE_INVALID 0x00000200/*if this bit is set the returned data is invalid*/
|
||||
#define FEATURE_SHELL 0x00000400/*allows executing code on the host machine, is a huge securty hole and is compiled out in releases*/
|
||||
/*FEATURE_UNUSED 0x00000200*/
|
||||
/*FEATURE_UNUSED 0x00000400*/
|
||||
#define FEATURE_SND_STRMS 0x00000800/*enables OS 5 audio streams*/
|
||||
/*new features go here*/
|
||||
|
||||
/*registers*/
|
||||
@@ -43,14 +44,15 @@ These registers will do nothing if their corresponding feature bit is not set on
|
||||
/*new HLE API cmds go here*/
|
||||
|
||||
/*new system cmds go here*/
|
||||
#define CMD_SET_CPU_SPEED 0x0000FFF3/*EMU_VALUE = CPU speed percent, 100% = normal*/
|
||||
#define CMD_IDLE_X_CLK32 0x0000FFF4/*EMU_VALUE = CLK32s to waste, used to remove idle loops*/
|
||||
#define CMD_SET_CYCLE_COST 0x0000FFF5/*EMU_DST = HLE API number, EMU_VALUE = how many cycles it takes*/
|
||||
#define CMD_SET_RESOLUTION 0x0000FFF6/*EMU_VALUE >> 16 = width, EMU_VALUE & 0xFFFF = height*/
|
||||
#define CMD_LCD_SET_FB 0x0000FFF6/*EMU_SRC = framebuffer pointer(must be in RAM and word aligned), EMU_VALUE >> 16 = width, EMU_VALUE & 0xFFFF = height*/
|
||||
#define CMD_GET_KEYS 0x0000FFF7/*EMU_VALUE = OS 5 keys*/
|
||||
#define CMD_PRINT 0x0000FFF8/*EMU_SRC = pointer to string*/
|
||||
#define CMD_SHELL_EXECUTE 0x0000FFF9/*execute shell commands from inside the emulator, will be used for a cool web project*/
|
||||
#define CMD_DEBUG_PRINT 0x0000FFF8/*EMU_SRC = pointer to string*/
|
||||
/*CMD_UNUSED 0x0000FFF9*/
|
||||
#define CMD_SOUND 0x0000FFFA/*needed for OS 5 advanced sound*/
|
||||
#define CMD_EXECUTION_DONE 0x0000FFFB/*terminates execution, used when a function is called from outside the emulator*/
|
||||
#define CMD_DEBUG_EXEC_END 0x0000FFFB/*terminates execution, used when a function is called from outside the emulator*/
|
||||
#define CMD_ARM_SERVICE 0x0000FFFC/*EMU_VALUE = 1 if ARM wants service from 68k routines*/
|
||||
#define CMD_ARM_SET_REG 0x0000FFFD/*EMU_DST = register number, EMU_VALUE = new value*/
|
||||
#define CMD_ARM_GET_REG 0x0000FFFE/*EMU_SRC = register number, EMU_VALUE = value after calling*/
|
||||
|
||||
@@ -15,7 +15,7 @@ void debugLog(const char* format, ...){
|
||||
StrCopy(temp, prefix);
|
||||
StrVPrintF(temp + StrLen(prefix), format, va);
|
||||
writeArbitraryMemory32(EMU_REG_ADDR(EMU_SRC), (uint32_t)temp);
|
||||
writeArbitraryMemory32(EMU_REG_ADDR(EMU_CMD), CMD_PRINT);
|
||||
writeArbitraryMemory32(EMU_REG_ADDR(EMU_CMD), CMD_DEBUG_PRINT);
|
||||
va_end(va);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,8 @@ These registers will do nothing if their corresponding feature bit is not set on
|
||||
#define FEATURE_EMU_HONEST 0x00000040/*tell the OS that its running in an emu, does nothing else*/
|
||||
#define FEATURE_EXT_KEYS 0x00000080/*enables the OS 5 buttons, left, right and select*/
|
||||
#define FEATURE_DEBUG 0x00000100/*enables the debug commands, used to call Palm OS functions like native C functions*/
|
||||
#define FEATURE_INVALID 0x00000200/*if this bit is set the returned data is invalid*/
|
||||
#define FEATURE_SHELL 0x00000400/*allows executing code on the host machine, is a huge securty hole and is compiled out in releases*/
|
||||
/*FEATURE_UNUSED 0x00000200*/
|
||||
/*FEATURE_UNUSED 0x00000400*/
|
||||
#define FEATURE_SND_STRMS 0x00000800/*enables OS 5 audio streams*/
|
||||
/*new features go here*/
|
||||
|
||||
@@ -49,10 +49,10 @@ These registers will do nothing if their corresponding feature bit is not set on
|
||||
#define CMD_SET_CYCLE_COST 0x0000FFF5/*EMU_DST = HLE API number, EMU_VALUE = how many cycles it takes*/
|
||||
#define CMD_LCD_SET_FB 0x0000FFF6/*EMU_SRC = framebuffer pointer(must be in RAM and word aligned), EMU_VALUE >> 16 = width, EMU_VALUE & 0xFFFF = height*/
|
||||
#define CMD_GET_KEYS 0x0000FFF7/*EMU_VALUE = OS 5 keys*/
|
||||
#define CMD_PRINT 0x0000FFF8/*EMU_SRC = pointer to string*/
|
||||
#define CMD_SHELL_EXECUTE 0x0000FFF9/*execute shell commands from inside the emulator, will be used for a cool web project*/
|
||||
#define CMD_DEBUG_PRINT 0x0000FFF8/*EMU_SRC = pointer to string*/
|
||||
/*CMD_UNUSED 0x0000FFF9*/
|
||||
#define CMD_SOUND 0x0000FFFA/*needed for OS 5 advanced sound*/
|
||||
#define CMD_EXECUTION_DONE 0x0000FFFB/*terminates execution, used when a function is called from outside the emulator*/
|
||||
#define CMD_DEBUG_EXEC_END 0x0000FFFB/*terminates execution, used when a function is called from outside the emulator*/
|
||||
#define CMD_ARM_SERVICE 0x0000FFFC/*EMU_VALUE = 1 if ARM wants service from 68k routines*/
|
||||
#define CMD_ARM_SET_REG 0x0000FFFD/*EMU_DST = register number, EMU_VALUE = new value*/
|
||||
#define CMD_ARM_GET_REG 0x0000FFFE/*EMU_SRC = register number, EMU_VALUE = value after calling*/
|
||||
|
||||
Reference in New Issue
Block a user