Esempio n. 1
0
 public SubtractLine(CodeLine codeLine, bool carryFlag) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     CarryFlag = carryFlag;
     var split = codeLine.Code["SUB".Length..].Trim().Split(','); //SUB or SBC
Esempio n. 2
0
        public RotateLeftLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
        {
            base.Comment = codeLine.Comment;
            base.Raw     = codeLine.Raw;

            Rotate = base.Code[(base.Code.IndexOf("RL", StringComparison.OrdinalIgnoreCase) + "RL".Length)..].Trim();
Esempio n. 3
0
 public WarnLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     Warning = Parser.GetStrings(codeLine.Code).Single().TrimStart('"').TrimEnd('"');
 }
Esempio n. 4
0
 public OptionLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     var options = codeLine.Code["OPT".Length..].Trim().Split(',');
Esempio n. 5
0
 public PurgeLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     Purge = codeLine.Code.Split().Last();
 }
Esempio n. 6
0
 public ElseLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
 }
Esempio n. 7
0
        public IncrementLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
        {
            base.Comment = codeLine.Comment;
            base.Raw     = codeLine.Raw;

            Increment = base.Code[(base.Code.IndexOf("INC", StringComparison.OrdinalIgnoreCase) + "INC".Length)..]
        public RelativeJumpLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
        {
            base.Comment = codeLine.Comment;
            base.Raw     = codeLine.Raw;

            var parameters = codeLine.Code["JR".Length..].Split(',');
Esempio n. 9
0
 public SubtractCompareLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     var values = codeLine.Code.Trim()["CP".Length..].Trim();
Esempio n. 10
0
 public CharMapLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     var values     = codeLine.Code.Trim()["CHARMAP".Length..].Trim();
Esempio n. 11
0
 public JumpLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     JumpDestination = base.Code[(base.Code.IndexOf("JP", StringComparison.OrdinalIgnoreCase) + "JP".Length)..]
Esempio n. 12
0
 public EndMacroLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
 }
Esempio n. 13
0
 public FailLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     FailMessage = Parser.GetStrings(codeLine.Code).Single().TrimStart('"').TrimEnd('"');
 }
Esempio n. 14
0
        public CharMapLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
        {
            base.Comment = codeLine.Comment;
            base.Raw     = codeLine.Raw;

            var values = codeLine.Code.Trim()["CHARMAP".Length..];
Esempio n. 15
0
 public ShiftLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
 }
Esempio n. 16
0
 public ResetByteLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     SetBit = codeLine.Code["RES".Length..].Split(',')[0].Trim();