Well everything is good except for compare 0x1 0x0, just change it to compare 0x800D 0x1, as ASH493 said LASTRESULT is not anymore recognized in the latest version of XSE, it has now been changed to 0x800DHope this helps... xD