Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
targimpl.c File Reference

Classes

struct  memRange
 
struct  StopInfo_PPC
 
struct  TRKExceptionStatus
 
struct  TRKStepStatus
 

Typedefs

typedef struct memRange memRange
 
typedef struct StopInfo_PPC StopInfo_PPC
 
typedef struct TRKExceptionStatus TRKExceptionStatus
 
typedef struct TRKStepStatus TRKStepStatus
 
typedef unsigned char u128[16]
 

Functions

DSError TRKPPCAccessSPR (void *value, u32 spr_register_num, BOOL read)
 
DSError TRKPPCAccessPairedSingleRegister (void *srcDestPtr, u32 psr, BOOL read)
 
DSError TRKPPCAccessFPRegister (void *srcDestPtr, u32 fpr, BOOL read)
 
DSError TRKPPCAccessSpecialReg (void *value, u32 *access_func, BOOL read)
 
static void TRKExceptionHandler (u16)
 
void TRKInterruptHandlerEnableInterrupts (void)
 
void WriteFPSCR (register f64 *)
 
void ReadFPSCR (register f64 *)
 
void __TRK_set_MSR (register u32 msr)
 
u32 __TRK_get_MSR ()
 
void TRK_ppc_memcpy (register void *dest, register const void *src, register int n, register u32 param_4, register u32 param_5)
 
void TRKRestoreExtended1Block ()
 
void TRKUARTInterruptHandler ()
 
DSError TRKValidMemory32 (const void *addr, size_t length, ValidMemoryOptions readWriteable)
 
DSError TRKTargetAccessMemory (void *data, u32 start, size_t *length, MemoryAccessOptions accessOptions, BOOL read)
 
DSError TRKTargetReadInstruction (void *data, u32 start)
 
DSError TRKTargetAccessDefault (u32 firstRegister, u32 lastRegister, TRKBuffer *b, size_t *registersLengthPtr, BOOL read)
 
DSError TRKTargetAccessFP (u32 firstRegister, u32 lastRegister, TRKBuffer *b, size_t *registersLengthPtr, BOOL read)
 
DSError TRKTargetAccessExtended1 (u32 firstRegister, u32 lastRegister, TRKBuffer *b, size_t *registersLengthPtr, BOOL read)
 
DSError TRKTargetAccessExtended2 (u32 firstRegister, u32 lastRegister, TRKBuffer *b, size_t *registerStorageSize, BOOL read)
 
void TRKPostInterruptEvent (void)
 
DSError TRKTargetInterrupt (TRKEvent *event)
 
u32ConvertAddress (u32 addr)
 
DSError TRKTargetAddStopInfo (TRKBuffer *b)
 
void TRKTargetAddExceptionInfo (TRKBuffer *b)
 
DSError TRKTargetEnableTrace (BOOL val)
 
BOOL TRKTargetStepDone ()
 
DSError TRKTargetDoStep ()
 
static BOOL TRKTargetCheckStep ()
 
DSError TRKTargetSingleStep (u32 count, BOOL stepOver)
 
DSError TRKTargetStepOutOfRange (u32 rangeStart, u32 rangeEnd, BOOL stepOver)
 
u32 TRKTargetGetPC ()
 
DSError TRKTargetSupportRequest ()
 
BOOL TRKTargetStopped ()
 
void TRKTargetSetStopped (unsigned int stopped)
 
u32 TRKTargetStop ()
 
void TRKTargetSetInputPendingPtr (void *ptr)
 
DSError TRKTargetAccessARAM (u32 p1, u32 p2, u32 *p3, BOOL read)
 
asm void __TRK_set_MSR ()
 
asm void TRKInterruptHandler ()
 
asm void TRKSwapAndGo ()
 

Variables

const memRange gTRKMemMap [1] = {{(u8*)0, (u8*)-1, TRUE, TRUE}}
 
ProcessorRestoreFlags_PPC gTRKRestoreFlags = {FALSE, FALSE}
 
static TRKExceptionStatus gTRKExceptionStatus = {{0, 0, 0}, TRUE, 0}
 
static TRKStepStatus gTRKStepStatus = {FALSE, DSSTEP_IntoCount, 0, 0}
 
static u16 TRK_saved_exceptionID = 0
 
TRKState gTRKState
 
Default_PPC gTRKSaveState
 
ProcessorState_PPC gTRKCPUState
 
u128 TRKvalue128_temp
 

Typedef Documentation

◆ memRange

◆ StopInfo_PPC

◆ TRKExceptionStatus

◆ TRKStepStatus

◆ u128

typedef unsigned char u128[16]

Function Documentation

◆ __TRK_get_MSR()

asm u32 __TRK_get_MSR ( )

◆ __TRK_set_MSR() [1/2]

asm void __TRK_set_MSR ( )

◆ __TRK_set_MSR() [2/2]

void __TRK_set_MSR ( register u32  msr)

◆ ConvertAddress()

u32 * ConvertAddress ( u32  addr)

◆ ReadFPSCR()

asm void ReadFPSCR ( register f64 )

◆ TRK_ppc_memcpy()

static asm void TRK_ppc_memcpy ( register void dest,
register const void src,
register int  n,
register u32  param_4,
register u32  param_5 
)

◆ TRKExceptionHandler()

static asm void TRKExceptionHandler ( u16  )
static

◆ TRKInterruptHandler()

asm void TRKInterruptHandler ( )

◆ TRKInterruptHandlerEnableInterrupts()

asm void TRKInterruptHandlerEnableInterrupts ( void  )

◆ TRKPostInterruptEvent()

void TRKPostInterruptEvent ( void  )

◆ TRKPPCAccessFPRegister()

DSError TRKPPCAccessFPRegister ( void srcDestPtr,
u32  fpr,
BOOL  read 
)

◆ TRKPPCAccessPairedSingleRegister()

DSError TRKPPCAccessPairedSingleRegister ( void srcDestPtr,
u32  psr,
BOOL  read 
)

◆ TRKPPCAccessSpecialReg()

DSError TRKPPCAccessSpecialReg ( void value,
u32 access_func,
BOOL  read 
)

◆ TRKPPCAccessSPR()

DSError TRKPPCAccessSPR ( void value,
u32  spr_register_num,
BOOL  read 
)

◆ TRKRestoreExtended1Block()

void TRKRestoreExtended1Block ( )

◆ TRKSwapAndGo()

asm void TRKSwapAndGo ( )

◆ TRKTargetAccessARAM()

DSError TRKTargetAccessARAM ( u32  p1,
u32  p2,
u32 p3,
BOOL  read 
)

◆ TRKTargetAccessDefault()

DSError TRKTargetAccessDefault ( u32  firstRegister,
u32  lastRegister,
TRKBuffer b,
size_t registersLengthPtr,
BOOL  read 
)

◆ TRKTargetAccessExtended1()

DSError TRKTargetAccessExtended1 ( u32  firstRegister,
u32  lastRegister,
TRKBuffer b,
size_t registersLengthPtr,
BOOL  read 
)

◆ TRKTargetAccessExtended2()

DSError TRKTargetAccessExtended2 ( u32  firstRegister,
u32  lastRegister,
TRKBuffer b,
size_t registerStorageSize,
BOOL  read 
)

◆ TRKTargetAccessFP()

DSError TRKTargetAccessFP ( u32  firstRegister,
u32  lastRegister,
TRKBuffer b,
size_t registersLengthPtr,
BOOL  read 
)

◆ TRKTargetAccessMemory()

DSError TRKTargetAccessMemory ( void data,
u32  start,
size_t length,
MemoryAccessOptions  accessOptions,
BOOL  read 
)

◆ TRKTargetAddExceptionInfo()

void TRKTargetAddExceptionInfo ( TRKBuffer b)

◆ TRKTargetAddStopInfo()

DSError TRKTargetAddStopInfo ( TRKBuffer b)

◆ TRKTargetCheckStep()

static BOOL TRKTargetCheckStep ( )
static

◆ TRKTargetDoStep()

DSError TRKTargetDoStep ( )
inline

◆ TRKTargetEnableTrace()

DSError TRKTargetEnableTrace ( BOOL  val)
inline

◆ TRKTargetGetPC()

u32 TRKTargetGetPC ( )

◆ TRKTargetInterrupt()

DSError TRKTargetInterrupt ( TRKEvent event)

◆ TRKTargetReadInstruction()

DSError TRKTargetReadInstruction ( void data,
u32  start 
)

◆ TRKTargetSetInputPendingPtr()

void TRKTargetSetInputPendingPtr ( void ptr)

◆ TRKTargetSetStopped()

void TRKTargetSetStopped ( unsigned int  stopped)

◆ TRKTargetSingleStep()

DSError TRKTargetSingleStep ( u32  count,
BOOL  stepOver 
)

◆ TRKTargetStepDone()

BOOL TRKTargetStepDone ( )

◆ TRKTargetStepOutOfRange()

DSError TRKTargetStepOutOfRange ( u32  rangeStart,
u32  rangeEnd,
BOOL  stepOver 
)

◆ TRKTargetStop()

u32 TRKTargetStop ( )

◆ TRKTargetStopped()

BOOL TRKTargetStopped ( void  )

◆ TRKTargetSupportRequest()

DSError TRKTargetSupportRequest ( )

◆ TRKUARTInterruptHandler()

void TRKUARTInterruptHandler ( )

◆ TRKValidMemory32()

DSError TRKValidMemory32 ( const void addr,
size_t  length,
ValidMemoryOptions  readWriteable 
)

◆ WriteFPSCR()

asm void WriteFPSCR ( register f64 )

Variable Documentation

◆ gTRKCPUState

ProcessorState_PPC gTRKCPUState

◆ gTRKExceptionStatus

TRKExceptionStatus gTRKExceptionStatus = {{0, 0, 0}, TRUE, 0}
static

◆ gTRKMemMap

const memRange gTRKMemMap[1] = {{(u8*)0, (u8*)-1, TRUE, TRUE}}

◆ gTRKRestoreFlags

ProcessorRestoreFlags_PPC gTRKRestoreFlags = {FALSE, FALSE}

◆ gTRKSaveState

Default_PPC gTRKSaveState

◆ gTRKState

TRKState gTRKState

◆ gTRKStepStatus

TRKStepStatus gTRKStepStatus = {FALSE, DSSTEP_IntoCount, 0, 0}
static

◆ TRK_saved_exceptionID

u16 TRK_saved_exceptionID = 0
static

◆ TRKvalue128_temp

u128 TRKvalue128_temp