diff options
Diffstat (limited to 'backends/platform/PalmOS/Src/native')
-rw-r--r-- | backends/platform/PalmOS/Src/native/pace.h | 10 | ||||
-rw-r--r-- | backends/platform/PalmOS/Src/native/zodiacARM.cpp | 18 |
2 files changed, 14 insertions, 14 deletions
diff --git a/backends/platform/PalmOS/Src/native/pace.h b/backends/platform/PalmOS/Src/native/pace.h index dac855c3ba..b3e2d14593 100644 --- a/backends/platform/PalmOS/Src/native/pace.h +++ b/backends/platform/PalmOS/Src/native/pace.h @@ -52,9 +52,9 @@ extern GlobalsType global; #ifdef __cplusplus -# define PACE_CLASS_WRAPPER(rv) extern "C" rv +# define PACE_CLASS_WRAPPER(rv) extern "C" rv #else -# define PACE_CLASS_WRAPPER(rv) rv +# define PACE_CLASS_WRAPPER(rv) rv #endif #define PACE_CALLBACK_PTR g_call68KFuncP #define PACE_EMULSTATE g_emulStateP @@ -66,7 +66,7 @@ extern GlobalsType global; #define PACE_PARAMS_INIT() \ UInt8 params[] = { - + #define PACE_PARAMS_ADD8(param) \ (UInt8)(param), \ 0, @@ -91,7 +91,7 @@ extern GlobalsType global; static_cast<void *>(PACE_EMULSTATE), \ PceNativeTrapNo(sysTrapPinsDispatch), \ NULL, 0))); - + #define PACE_PIN_EXEC(pinTrap, returnType) \ PACE_EMULSTATE->regData[2] = pinTrap; \ return ((returnType)((PACE_CALLBACK_PTR)( \ @@ -100,4 +100,4 @@ extern GlobalsType global; ¶ms, \ sizeof(params)))); -#endif
\ No newline at end of file +#endif diff --git a/backends/platform/PalmOS/Src/native/zodiacARM.cpp b/backends/platform/PalmOS/Src/native/zodiacARM.cpp index 87de372943..7323bb6d69 100644 --- a/backends/platform/PalmOS/Src/native/zodiacARM.cpp +++ b/backends/platform/PalmOS/Src/native/zodiacARM.cpp @@ -74,11 +74,11 @@ static void Go() { int argc; #ifdef DEBUG_ARM -// Tell the debugger we want to enable full debugging - UInt32 flags = AdnDebugEnableGet(); - flags |= kAdnEnableMasterSwitch | kAdnEnableFullDebugging; - AdnDebugEnableSet(flags); -// Tell the debugger where our code lives in memory: +// Tell the debugger we want to enable full debugging + UInt32 flags = AdnDebugEnableGet(); + flags |= kAdnEnableMasterSwitch | kAdnEnableFullDebugging; + AdnDebugEnableSet(flags); +// Tell the debugger where our code lives in memory: AdnDebugNativeRegister(sysFileTApplication, appFileCreator, 'ARMC', 1); #endif @@ -102,9 +102,9 @@ static void Go() { if (HWR_INIT(INIT_VIBRATOR)) gVars->vibrator = RumbleInit(); // run ... - DO_EXIT ( palm_main(argc, argvP); ) + DO_EXIT ( palm_main(argc, argvP); ) - // release + // release if (HWR_INIT(INIT_VIBRATOR)) RumbleRelease(); stdio_release(); @@ -118,7 +118,7 @@ static void Go() { Int8 *g_newStack, *g_newStackPos; void *g_oldStack; -static asm void *StkSwap(void *newStack ,void *dummy) { +static asm void *StkSwap(void *newStack ,void *dummy) { mov r1, r13 mov r13, r0 mov r0, r1 @@ -134,7 +134,7 @@ extern UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) { g_newStack = (Int8 *)malloc(g_stackSize + 8); g_newStackPos = (g_newStack + g_stackSize); g_newStackPos -= ((UInt32)g_newStackPos & 7); - + g_oldStack = StkSwap(g_newStackPos, 0); Go(); |