Alchemy
Loading...
Searching...
No Matches

runtime.h

Go to the documentation of this file.
1/// @file
2/// Frame scheduling, memory, resources and core runtime services.
3/// Far-call interfaces; their ordered jump stubs live in
4/// games/tbs/src/system/far_call/RUNTIME.S.
5
6void WaitFramesFar(s32 frames);
12void Vector_AddPolarOffsetFar(s32 radius, s32 angle, void *position);
16/// Far call to MemAlloc.
19s32 Resource_DecodeByteLzFar(const void *source, void *destination);
20s32 Resource_DecodeType01Far(const void *source, void *destination);
23s32 VramCache_LoadFar(u32 no, u32 size, const void *src);
26void Runtime_PushSlotEntryFar(void *slot_entry, s32 slot);
30void Fade_ToBlackFar(s32 frames);
31void Fade_WaitFar(void);
33s32 SerialRuntime_PollAndTransferFar(void *send, void *receive);
36s32 SerialRuntime_BeginSendFar(void *source, s32 transferValue);
void(*) SchedulerCallback(void)
s32 ArcTan2Far(s32 x, s32 y)
s32 Resource_FindFreeEntryFar(void)
s32 FixedSqrtFar(s32 value)
void Vector_AddPolarOffsetFar(s32 radius, s32 angle, void *position)
u32 Random16Far(void)
s32 SerialRuntime_GetActiveTransfersFar(void)
void WaitFramesFar(s32 frames)
void RuntimeDispatch_NoOpHookFar(s32 unused)
void SerialRuntime_InitializeFar(void)
s32 SerialRuntime_PollAndTransferFar(void *send, void *receive)
void SerialRuntime_RemoveIrqHandlersFar(void)
void Fade_ToBlackFar(s32 frames)
s32 Sound_LoadPresetParametersFar(s32 preset)
void Runtime_PushSlotEntryFar(void *slot_entry, s32 slot)
s32 SerialRuntime_BeginSendFar(void *source, s32 transferValue)
s32 AffineMatrix_BuildForEffectFar(struct AffineTransform *source)
s32 Scheduler_RemoveCallbackFar(SchedulerCallback callback)
s32 Resource_DecodeType01Far(const void *source, void *destination)
s32 Resource_ResetEntryFar(u32 no)
void * Resource_GetTableEntryFar(s32 index)
void * Runtime_AllocateHeapBlockFar(s32 kind, s32 size)
s32 Resource_DecodeByteLzFar(const void *source, void *destination)
s32 VramCache_ReleaseVramFar(u32 no)
s32 SerialRuntime_BeginReceiveFar(void *destination)
void * Runtime_AllocateBlockFar(s32 kind, s32 size)
void Ui_LoadWindowGraphicsFar(void)
s32 Scheduler_AddOrUpdateCallbackFar(SchedulerCallback callback, s32 order)
void * Runtime_BumpAllocateFar(s32 size)
Far call to MemAlloc.
void * Runtime_BumpAllocateAlternatePoolFar(s32 size)
void Fade_WaitFar(void)
s32 Scheduler_SetTaskFlagsFar(SchedulerCallback callback, u32 mask)
s32 VramCache_LoadFar(u32 no, u32 size, const void *src)
void Runtime_SetIrqHandlerFar(u32 irq, s32 vcount, InterruptHandler handler)
void(*) InterruptHandler(void)
Definition irq.h:36
A sprite's rotation and scale: scales in 8.8 fixed point (0x100 is full size), the angle in 1/65536 t...
Definition affine.h:13
signed int s32
Definition types.h:14
unsigned int u32
Definition types.h:15