The original project has come back up and the customer required a small change to the code. When I compile the old code with the newer compiler I get some strange results. A good deal of the code works OK but I copied one small example of a problem area here:
Code: Select all
Sub VerifyRamVar(ByRef pValue As Word)
Dim tempx As Word
//Check the 'temp' local variable
tempx = 43690
//////tempx = %1010101010101010
Debug(DecToStr(tempx),CR,LF) <<-- Prints out 14250
If tempx <> 43690 Then
//////If tempx <> %1010101010101010 Then
Fault = 8
Exit
EndIf
tempx = %0101010101010101
If tempx <> %0101010101010101 Then
Fault = 9
Exit
EndIf
Do I need to upgrade the compiler again? Or am I doing something wrong?
Any help would be welcome.
Mark