Exemple #1
0
 public override string GenerateCode()
 {
     return(string.Format("if({0})\r\n{{\r\n {1} = {2}; \r\n}}\r\n", ImportVaribleName, SourceValue.GetValue(), DestinationValue.GetValue()));
 }
Exemple #2
0
 public override string GenerateCode()
 {
     return(string.Format("if({0})\r\n{{\r\n{3} = {1} - {2};\r\nif({3} == 0)\r\n{{\r\nMBit[8171] = 1;\r\n}}\r\nelse if({3} < 0)\r\n{{\r\nMBit[8170] = 1;\r\n}}\r\n}}\r\n", ImportVaribleName, InputValue1.GetValue(), InputValue2.GetValue(), OutputValue.GetValue()));
 }