C# Class CSPspEmu.Core.Cpu.Assembler.MipsAssembler

Datei anzeigen Open project: soywiz/cspspemu Class Usage Examples

Protected Properties

Property Type Description
BinaryReader BinaryReader
BinaryWriter BinaryWriter
Instructions InstructionInfo>.Dictionary
OutputStream System.Stream

Public Methods

Method Description
Assemble ( String Lines, AssemblerResult AssemblerResult = null ) : void
AssembleInstruction ( String Line ) : Instruction
AssembleInstructions ( String Line ) : Instruction[]
AssembleInstructions ( uint &PC, String Line, List Patches ) : Instruction[]
MipsAssembler ( System.Stream OutputStream ) : System
ParseAndUpdateVfprDestinationPrefix ( int Index, string RegisterName, VfpuDestinationPrefix &VfpuPrefix ) : void
ParseAndUpdateVfprSourceTargetPrefix ( int Index, string RegisterName, VfpuPrefix &VfpuPrefix ) : void
ParseFprName ( string RegisterName ) : int
ParseGprName ( string RegisterName ) : int
ParseIntegerConstant ( String Value ) : int
ParseVfprConstantName ( string RegisterName ) : uint
ParseVfprName ( int VfpuSize, string RegisterName ) : int
ParseVfprOffset ( int VfpuSize, string Str ) : ParseVfprOffsetInfo
ParseVfprRotate ( string Format ) : uint
StaticAssembleInstructions ( string Program ) : AssemblerResult

Method Details

Assemble() public method

public Assemble ( String Lines, AssemblerResult AssemblerResult = null ) : void
Lines String
AssemblerResult AssemblerResult
return void

AssembleInstruction() public method

public AssembleInstruction ( String Line ) : Instruction
Line String
return Instruction

AssembleInstructions() public method

public AssembleInstructions ( String Line ) : Instruction[]
Line String
return Instruction[]

AssembleInstructions() public method

public AssembleInstructions ( uint &PC, String Line, List Patches ) : Instruction[]
PC uint
Line String
Patches List
return Instruction[]

MipsAssembler() public method

public MipsAssembler ( System.Stream OutputStream ) : System
OutputStream System.Stream
return System

ParseAndUpdateVfprDestinationPrefix() public static method

public static ParseAndUpdateVfprDestinationPrefix ( int Index, string RegisterName, VfpuDestinationPrefix &VfpuPrefix ) : void
Index int
RegisterName string
VfpuPrefix VfpuDestinationPrefix
return void

ParseAndUpdateVfprSourceTargetPrefix() public static method

public static ParseAndUpdateVfprSourceTargetPrefix ( int Index, string RegisterName, VfpuPrefix &VfpuPrefix ) : void
Index int
RegisterName string
VfpuPrefix VfpuPrefix
return void

ParseFprName() public static method

public static ParseFprName ( string RegisterName ) : int
RegisterName string
return int

ParseGprName() public static method

public static ParseGprName ( string RegisterName ) : int
RegisterName string
return int

ParseIntegerConstant() public static method

public static ParseIntegerConstant ( String Value ) : int
Value String
return int

ParseVfprConstantName() public static method

public static ParseVfprConstantName ( string RegisterName ) : uint
RegisterName string
return uint

ParseVfprName() public static method

public static ParseVfprName ( int VfpuSize, string RegisterName ) : int
VfpuSize int
RegisterName string
return int

ParseVfprOffset() public static method

public static ParseVfprOffset ( int VfpuSize, string Str ) : ParseVfprOffsetInfo
VfpuSize int
Str string
return ParseVfprOffsetInfo

ParseVfprRotate() public static method

public static ParseVfprRotate ( string Format ) : uint
Format string
return uint

StaticAssembleInstructions() public static method

public static StaticAssembleInstructions ( string Program ) : AssemblerResult
Program string
return AssemblerResult

Property Details

BinaryReader protected_oe property

protected BinaryReader BinaryReader
return BinaryReader

BinaryWriter protected_oe property

protected BinaryWriter BinaryWriter
return BinaryWriter

Instructions protected_oe property

protected Dictionary Instructions
return InstructionInfo>.Dictionary

OutputStream protected_oe property

protected Stream,System OutputStream
return System.Stream