C# 클래스 Assembler.Assembler.SectionCode

Deals with the sections of assembly which are "code" ie any "rstXX" section, any interrupt and the "text" section
파일 보기 프로젝트 열기: CRogers/GbcEmulator

공개 메소드들

메소드 설명
AssembleCode ( string[]>.Dictionary sections, int offset, ushort>.Dictionary constants, int>.Dictionary data ) : byte[]>.Dictionary

비공개 메소드들

메소드 설명
ChangeFromHex ( string strs ) : string[]

Search through the entire section, change each hex value to an ordinary one then return the changed lines of code

GetCode ( string code, ushort>.Dictionary labelDict, RegexOpcode regexOpcodes ) : byte[]

Gets the assembled machine code for section of code

GetLabels ( string[]>.IList sections, RegexOpcode[]>.Dictionary regexOpcodeDict, int offset ) : ushort>.Dictionary

Gets the labels' positions for every section of the code.

GetRegexOpcodes ( string code ) : RegexOpcode[]

Goes through each line of code - if it is a valid opcode, it assigns a RegexOpcode to it.

ReplaceAllConstantsData ( string strs, ushort>.Dictionary constants, int>.Dictionary data ) : string[]

Replaces all constants/(reserved/declared data) with the number representing their offset.

메소드 상세

AssembleCode() 공개 정적인 메소드

public static AssembleCode ( string[]>.Dictionary sections, int offset, ushort>.Dictionary constants, int>.Dictionary data ) : byte[]>.Dictionary
sections string[]>.Dictionary
offset int
constants ushort>.Dictionary
data int>.Dictionary
리턴 byte[]>.Dictionary