示例#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
示例#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();
示例#3
0
 public WarnLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     Warning = Parser.GetStrings(codeLine.Code).Single().TrimStart('"').TrimEnd('"');
 }
示例#4
0
 public OptionLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     var options = codeLine.Code["OPT".Length..].Trim().Split(',');
示例#5
0
 public PurgeLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     Purge = codeLine.Code.Split().Last();
 }
示例#6
0
 public ElseLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
 }
示例#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(',');
示例#9
0
 public SubtractCompareLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     var values = codeLine.Code.Trim()["CP".Length..].Trim();
示例#10
0
 public CharMapLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     var values     = codeLine.Code.Trim()["CHARMAP".Length..].Trim();
示例#11
0
 public JumpLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     JumpDestination = base.Code[(base.Code.IndexOf("JP", StringComparison.OrdinalIgnoreCase) + "JP".Length)..]
示例#12
0
 public EndMacroLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
 }
示例#13
0
 public FailLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     FailMessage = Parser.GetStrings(codeLine.Code).Single().TrimStart('"').TrimEnd('"');
 }
示例#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..];
示例#15
0
 public ShiftLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
 }
示例#16
0
 public ResetByteLine(CodeLine codeLine) : base(codeLine.Code, codeLine, codeLine.Strings)
 {
     SetBit = codeLine.Code["RES".Length..].Split(',')[0].Trim();