wavelength 1.0.0
Loading...
Searching...
No Matches
ioputil.h File Reference

Go to the source code of this file.

Functions

void * IopAlloc (int size)
 Allocate IOP memory from the lowest free area.
void IopFree (void *block)
 Release a block IopAlloc() returned.
int CreateSynthThread (void(*entry)(), int priority)
 Create a dormant C thread with the module's stack size.
void SpuSetParam (unsigned short entry, unsigned short value)
 Write an SPU2 parameter register.

Function Documentation

◆ IopAlloc()

void * IopAlloc ( int size)

Allocate IOP memory from the lowest free area.

Parameters
sizeByte count.
Returns
The block, or null when none fits.
Ghidra address:
NTSC-U/C: 0x00005fe0
Ghidra address:
PAL: 0x00005fe0

◆ IopFree()

void IopFree ( void * block)

Release a block IopAlloc() returned.

Parameters
blockThe block.
Ghidra address:
NTSC-U/C: 0x00006008
Ghidra address:
PAL: 0x00006008

◆ CreateSynthThread()

int CreateSynthThread ( void(* entry )(),
int priority )

Create a dormant C thread with the module's stack size.

Parameters
entryEntry point.
priorityStarting priority, where a smaller value runs first.
Returns
The thread identifier, or a negative error code.
Ghidra address:
NTSC-U/C: 0x00005e18
Ghidra address:
PAL: 0x00005e18

◆ SpuSetParam()

void SpuSetParam ( unsigned short entry,
unsigned short value )

Write an SPU2 parameter register.

Parameters
entryEntry value, a register combined with a voice and a core.
valueValue to write.
Ghidra address:
NTSC-U/C: 0x00006030
Ghidra address:
PAL: 0x00006030