Example #1
0
        public void Emit(Format11OpCode opCode, LowRegister rd, uint unsigned10BitOffset)
        {
            CheckRange((int)unsigned10BitOffset, 0, 1023, 3);
            var fluentComment = opCode.ToHumanReadable().MyConcat(" ", rd, ",[SP,#", unsigned10BitOffset, "]");
            var offsetBits    = (unsigned10BitOffset >> 2) & 0xff;

            EmitHelper(rd, 11, fluentComment, 9, 4, (int)opCode, 1, rd.Index, 3, (int)offsetBits, 8);
        }
Example #2
0
 public void Emit(Format11OpCode opCode, LowRegister rd, uint unsigned10BitOffset)
 {
     CheckRange((int)unsigned10BitOffset, 0, 1023, 3);
       var fluentComment=opCode.ToHumanReadable().MyConcat(" ", rd, ",[SP,#", unsigned10BitOffset, "]");
       var offsetBits=(unsigned10BitOffset>>2)&0xff;
       EmitHelper(rd, 11, fluentComment, 9, 4, (int)opCode, 1, rd.Index, 3, (int)offsetBits, 8);
 }
Example #3
0
 public static string ToHumanReadable(this Format11OpCode opCode)
 {
     return("STRLDR".Substring((int)opCode * 3, 3));
 }