C# Класс Organic.Assembler

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
FileNames Stack
ForceLongLiterals bool
IfStack Stack
IncludePath string
LabelValues List
LineNumbers Stack
Macros List
NonBasicOpcodeTable byte>.Dictionary
OpcodeTable byte>.Dictionary
PriorGlobalLabel string
ReferencedValues List
RelativeLabels ushort>.Dictionary
ValueTable byte>.Dictionary
Values ushort>.Dictionary
WorkingDirectories Stack
currentAddress ushort
noList bool

Private Properties

Свойство Тип Описание
CreateJson string
DisplayHelp void
DisplaySplash void
EvaluateAssembly List
GetDirectory string
GetRootNumber int
ListPlugins void
LoadTable void
LongHex string
Main int
MatchString StringMatch
ParseDirectives void

Открытые методы

Метод Описание
Assemble ( string code ) : List

Assembles the provided code. This will use the current directory to fetch include files and such.

Assemble ( string code, string FileName ) : List

Assembles the provided code. This will use the current directory to fetch include files and such.

Assembler ( ) : System

Initializes all values for this assembler. Assembler is designed to handle one assembly per instance. If you intend to assemble several times, create new instances of this class each time.

CreateListing ( List output ) : string
DumpArray ( ushort array ) : string

Creates a string of an array's content

Приватные методы

Метод Описание
CreateJson ( List output ) : string
DisplayHelp ( ) : void
DisplaySplash ( ) : void
EvaluateAssembly ( List output ) : List
GetDirectory ( string filePath ) : string
GetRootNumber ( Stack LineNumbers ) : int
ListPlugins ( Assembler assembler ) : void
LoadTable ( ) : void
LongHex ( ushort p ) : string
Main ( string args ) : int
MatchString ( string value, byte>.Dictionary keys ) : StringMatch
ParseDirectives ( List output, string line ) : void

Описание методов

Assemble() публичный Метод

Assembles the provided code. This will use the current directory to fetch include files and such.
public Assemble ( string code ) : List
code string
Результат List

Assemble() публичный Метод

Assembles the provided code. This will use the current directory to fetch include files and such.
public Assemble ( string code, string FileName ) : List
code string
FileName string
Результат List

Assembler() публичный Метод

Initializes all values for this assembler. Assembler is designed to handle one assembly per instance. If you intend to assemble several times, create new instances of this class each time.
public Assembler ( ) : System
Результат System

CreateListing() публичный статический Метод

public static CreateListing ( List output ) : string
output List
Результат string

DumpArray() публичный статический Метод

Creates a string of an array's content
public static DumpArray ( ushort array ) : string
array ushort
Результат string

Описание свойств

FileNames публичное свойство

public Stack FileNames
Результат Stack

ForceLongLiterals публичное свойство

public bool ForceLongLiterals
Результат bool

IfStack публичное свойство

public Stack IfStack
Результат Stack

IncludePath публичное свойство

Path to search for include files in.
public string IncludePath
Результат string

LabelValues публичное свойство

public List LabelValues
Результат List

LineNumbers публичное свойство

public Stack LineNumbers
Результат Stack

Macros публичное свойство

public List Macros
Результат List

NonBasicOpcodeTable публичное свойство

public Dictionary NonBasicOpcodeTable
Результат byte>.Dictionary

OpcodeTable публичное свойство

public Dictionary OpcodeTable
Результат byte>.Dictionary

PriorGlobalLabel публичное свойство

public string PriorGlobalLabel
Результат string

ReferencedValues публичное свойство

public List ReferencedValues
Результат List

RelativeLabels публичное свойство

public Dictionary RelativeLabels
Результат ushort>.Dictionary

ValueTable публичное свойство

public Dictionary ValueTable
Результат byte>.Dictionary

Values публичное свойство

Values (such as labels and equates) found in the code
public Dictionary Values
Результат ushort>.Dictionary

WorkingDirectories публичное свойство

public Stack WorkingDirectories
Результат Stack

currentAddress публичное свойство

public ushort currentAddress
Результат ushort

noList публичное свойство

public bool noList
Результат bool