C# Class CSPspEmu.Core.Cpu.CpuThreadState

Show file Open project: soywiz/cspspemu Class Usage Examples

Public Properties

Property Type Description
BranchFlag bool
C0R C0rList
C0R0 uint
CallStack uint[]
CallStackCount int
CallerModule object
CpuProcessor CpuProcessor
EnableYielding bool
FPR FprList
FPR0 float
FPR_I FprListInteger
Fcr31 FCR31
GPR GprList
GPR0 uint
IC uint
LO int
LastValidPC uint
MethodCache MethodCache
Methods CpuThreadState
PC uint
PrefixDestination VfpuDestinationPrefix
PrefixNone VfpuPrefix
PrefixSource VfpuPrefix
PrefixTarget VfpuPrefix
Random Random
StepInstructionCount int
TotalInstructionCount long
VFR0 float
VFR_CC_0 bool
Vfpr VfprList

Public Methods

Method Description
CallStackPop ( ) : void
CallStackPush ( uint PC ) : void
CopyRegistersFrom ( CpuThreadState that ) : void

CpuThreadState ( CpuProcessor Processor ) : System

DumpRegisters ( ) : void

DumpRegisters ( TextWriter TextWriter ) : void

DumpRegistersCpu ( TextWriter TextWriter ) : void

DumpRegistersFpu ( TextWriter TextWriter ) : void
DumpRegistersVFpu ( TextWriter TextWriter ) : void
DumpVfpuRegisters ( TextWriter TextWriter ) : void

ExecuteAT ( uint PC ) : void
ExecuteFunctionAndReturn ( uint PC ) : void
GPRList ( ) : IEnumerable

GetCurrentCallStack ( ) : uint[]
GetFuncAtPC ( uint PC ) : Action

GetMemoryPtr ( uint Address ) : void*
GetMemoryPtrNotNull ( uint Address ) : void*
GetMemoryPtrSafe ( uint Address ) : void*
GetMemoryPtrSafeWithError ( uint Address, String ErrorDescription, bool CanBeNull, InvalidAddressAsEnum Invalid ) : void*
Reschedule ( ) : void
SetPCWriteAddress ( uint Address, uint PC ) : void

Syscall ( int Code ) : void

Calls a syscall.

SyscallNative ( uint DelegateId ) : void

Trace ( uint PC ) : void

Yield ( ) : void

_MethodCacheInfo_SetInternal ( MethodCacheInfo MethodCacheInfo, uint PC ) : void

Private Methods

Method Description
CpuThreadState ( ) : System
Tick ( ) : void
Tick2 ( ) : void

Method Details

CallStackPop() public method

public CallStackPop ( ) : void
return void

CallStackPush() public method

public CallStackPush ( uint PC ) : void
PC uint
return void

CopyRegistersFrom() public method

public CopyRegistersFrom ( CpuThreadState that ) : void
that CpuThreadState
return void

CpuThreadState() public method

public CpuThreadState ( CpuProcessor Processor ) : System
Processor CpuProcessor
return System

DumpRegisters() public method

public DumpRegisters ( ) : void
return void

DumpRegisters() public method

public DumpRegisters ( TextWriter TextWriter ) : void
TextWriter System.IO.TextWriter
return void

DumpRegistersCpu() public method

public DumpRegistersCpu ( TextWriter TextWriter ) : void
TextWriter System.IO.TextWriter
return void

DumpRegistersFpu() public method

public DumpRegistersFpu ( TextWriter TextWriter ) : void
TextWriter System.IO.TextWriter
return void

DumpRegistersVFpu() public method

public DumpRegistersVFpu ( TextWriter TextWriter ) : void
TextWriter System.IO.TextWriter
return void

DumpVfpuRegisters() public method

public DumpVfpuRegisters ( TextWriter TextWriter ) : void
TextWriter System.IO.TextWriter
return void

ExecuteAT() public method

public ExecuteAT ( uint PC ) : void
PC uint
return void

ExecuteFunctionAndReturn() public method

public ExecuteFunctionAndReturn ( uint PC ) : void
PC uint
return void

GPRList() public method

public GPRList ( ) : IEnumerable
return IEnumerable

GetCurrentCallStack() public method

public GetCurrentCallStack ( ) : uint[]
return uint[]

GetFuncAtPC() public method

public GetFuncAtPC ( uint PC ) : Action
PC uint
return Action

GetMemoryPtr() public method

public GetMemoryPtr ( uint Address ) : void*
Address uint
return void*

GetMemoryPtrNotNull() public method

public GetMemoryPtrNotNull ( uint Address ) : void*
Address uint
return void*

GetMemoryPtrSafe() public method

public GetMemoryPtrSafe ( uint Address ) : void*
Address uint
return void*

GetMemoryPtrSafeWithError() public method

public GetMemoryPtrSafeWithError ( uint Address, String ErrorDescription, bool CanBeNull, InvalidAddressAsEnum Invalid ) : void*
Address uint
ErrorDescription String
CanBeNull bool
Invalid InvalidAddressAsEnum
return void*

Reschedule() public method

public Reschedule ( ) : void
return void

SetPCWriteAddress() public method

public SetPCWriteAddress ( uint Address, uint PC ) : void
Address uint
PC uint
return void

Syscall() public method

Calls a syscall.
public Syscall ( int Code ) : void
Code int
return void

SyscallNative() public method

public SyscallNative ( uint DelegateId ) : void
DelegateId uint
return void

Trace() public method

public Trace ( uint PC ) : void
PC uint
return void

Yield() public method

public Yield ( ) : void
return void

_MethodCacheInfo_SetInternal() public method

public _MethodCacheInfo_SetInternal ( MethodCacheInfo MethodCacheInfo, uint PC ) : void
MethodCacheInfo MethodCacheInfo
PC uint
return void

Property Details

BranchFlag public property

public bool BranchFlag
return bool

C0R public property

public C0rList C0R
return C0rList

C0R0 public property

public uint C0R0
return uint

CallStack public property

public uint[] CallStack
return uint[]

CallStackCount public property

public int CallStackCount
return int

CallerModule public property

public object CallerModule
return object

CpuProcessor public property

public CpuProcessor,CSPspEmu.Core.Cpu CpuProcessor
return CpuProcessor

EnableYielding public property

public bool EnableYielding
return bool

FPR public property

public FprList FPR
return FprList

FPR0 public property

public float FPR0
return float

FPR_I public property

public FprListInteger FPR_I
return FprListInteger

Fcr31 public property

public FCR31 Fcr31
return FCR31

GPR public property

public GprList GPR
return GprList

GPR0 public property

public uint GPR0
return uint

IC public property

public uint IC
return uint

LO public property

LOw, HIgh registers. Used for mult/div.
public int LO
return int

LastValidPC public property

Las Valid Registered PC
public uint LastValidPC
return uint

MethodCache public property

public MethodCache MethodCache
return MethodCache

Methods public static property

public static CpuThreadState Methods
return CpuThreadState

PC public property

Current PC
public uint PC
return uint

PrefixDestination public property

public VfpuDestinationPrefix PrefixDestination
return VfpuDestinationPrefix

PrefixNone public property

public VfpuPrefix PrefixNone
return VfpuPrefix

PrefixSource public property

public VfpuPrefix PrefixSource
return VfpuPrefix

PrefixTarget public property

public VfpuPrefix PrefixTarget
return VfpuPrefix

Random public property

public Random Random
return Random

StepInstructionCount public property

public int StepInstructionCount
return int

TotalInstructionCount public property

public long TotalInstructionCount
return long

VFR0 public property

public float VFR0
return float

VFR_CC_0 public property

public bool VFR_CC_0
return bool

Vfpr public property

public VfprList Vfpr
return VfprList