MVP 2014 Simon Posted August 18, 2010 MVP 2014 Report Share Posted August 18, 2010 In debugging some odd behaviour of the "Long Int" function in u90Ladder, I found that the use of constants as operands is a no-no. Even though SB82 is set prior to the function, if a constant is used as one of the operands, the result is only a 16-bit value. So, you must use MI values even if the value isn't gouing to change, and make sure that two MIs per value are allocated, even if the upper MI is zero. It would be handly if this could be fixed, so a 16-bit constant was automatically padded with zeros to become a 32-bit value; but knowing the workaround is OK. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.