◆ Comp()
byte [] vmasm.Assembler.Comp |
( |
| ) |
|
53 m_pLabels =
new System.Collections.Generic.Dictionary<string,
int> ();
54 m_pDefines =
new DefinesDef();
55 MemoryStream Stream =
new MemoryStream ();
57 var writer =
new BinaryWriter (Stream);
59 for (
int i = 0; i <
l.Length; i++) {
61 string l1 = l0.Split (
';') [0].Trim();
63 if (l1 ==
string.Empty)
66 if (m_pDefines.isLineADefine (l1))
69 if (l1.ToUpper ().Contains (
"ORG")) {
70 int Org = this.ParseNumber(l1.Split (
' ')[1] );
71 Console.WriteLine (
"[ORG] {0}", Org);
72 writer.BaseStream.Seek (Org, SeekOrigin.Begin);
74 }
else if (l1.Contains (
":")) {
78 }
else if (l1[0] ==
'L' && l1[1] ==
'B') {
80 string ll = l1.Split(
' ')[1];
81 if (!m_pLabels.ContainsKey (
"." + ll)) {
82 m_pLabels.Add (
"." + ll,
int.Parse (l1.Split (
' ') [2]));
86 else if (l1.Contains(
".dim")) {
88 CompVariable(l1,
false, writer);
91 if (!CompLine (l1, writer))
100 byte[] date =
new byte[Stream.Length];
101 Stream.Read (date, 0, date.Length);
string [] l
Definition: Assembler.cs:39
◆ InstructionsList
string vmasm.Assembler.InstructionsList |
|
get |
string [] vmasm.Assembler.l |
|
getset |
The documentation for this class was generated from the following file: