public override string GenerateCode() { return(string.Format("sr_bool {0} = {1} > {2};\r\n", ExportVaribleName, Value1.GetValue(), Value2.GetValue())); }
public override string GenerateCode() { return(string.Format("if({0})\r\n{{\r\nint64_t temp = {1} + {2};\r\nif(temp != (int32_t)temp)\r\n{{\r\nMBit[8169] = 1;\r\n}}\r\nelse\r\n{{\r\n{3} = {1} + {2};\r\nif({3} < 0)\r\n{{\r\nMBit[8170] = 1;\r\n}}\r\nelse if({3} == 0)\r\n{{\r\nMBit[8171] = 1;\r\n}}\r\n}}\r\n}}\r\n", ImportVaribleName, InputValue1.GetValue(), InputValue2.GetValue(), OutputValue.GetValue())); }
public override string GenerateCode() { return(string.Format("if({0})\r\n{{\r\nint32_t temp = (int32_t){1};\r\nif(temp + 0.5 > {1})\r\n{{\r\n{2} = temp;\r\n}}\r\nelse\r\n{{\r\n{2} = temp + 1;\r\n}}\r\n}}\r\n", ImportVaribleName, InputValue.GetValue(), OutputValue.GetValue())); }
public override string GenerateCode() { return(string.Format("if({0})\r\n{{\r\n {1} = {2}; \r\n}}\r\n", ImportVaribleName, SourceValue.GetValue(), DestinationValue.GetValue())); }
public override string GenerateCode() { return(string.Format("if({0})\r\n{{\r\n{3} = {1} ^ {2};\r\n}}\r\n", ImportVaribleName, InputValue1.GetValue(), InputValue2.GetValue(), OutputValue.GetValue())); }
public override string GenerateCode() { return(string.Format("if({0})\r\n{{\r\n{1}=(int32_t){2};\r\n}}\r\n", ImportVaribleName, OutputValue.GetValue(), InputValue.GetValue())); }