public override string GenerateCode() { return(string.Format("if({0})\r\n{{\r\nif({2} == 0)\r\n{{\r\nMBit[8172] = 1;\r\n}}\r\nelse\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}}\r\n", ImportVaribleName, InputValue1.GetValue(), InputValue2.GetValue(), OutputValue.GetValue())); }
public override string GenerateCode() { return(string.Format("if({0})\r\n{{\r\nint32_t temp = {1} + {2};\r\nif(temp != (int16_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\n{3} = {1} ^ {2};\r\n}}\r\n", ImportVaribleName, InputValue1.GetValue(), InputValue2.GetValue(), OutputValue.GetValue())); }