In SX Microcontrollers, SX/B Compiler and SX-Key Tool, RS_Jim wrote: I have been running the TX_HEX2 subroutine that is in the example programs and had it work successfully. Now all of a sudden it prints $E for the second digit regardless of what the input is. Watching it in single step mode, what is happening, no matter what the character stored in the tmpB2 register the W register is getting loaded with $FE. I put in a \ Mov W,#0 command prior to loading the tmpB2 but to no avail. It loads $FE in the W regester. I tried moving the Subroutine code to another page, again the same problem. Anyone have any ideas? Jim :roll: ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=284621 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)