Exemple #1
0
 public bool CheckRegisterWidth(Addressing addressing, int width)
 {
     if (opcode.GetRegisterWidth(addressing) != width)
     {
         Error("inst expect register width is " + width.ToString() + " but " + opcode.GetRegisterWidth(addressing).ToString() + " found");
         lex.SkipLine();
         return(false);
     }
     else
     {
         return(true);
     }
 }