In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: For just holding onto values you can use a two-byte array like a word and move data back and forth between the array and Word variables. For example, you could define these variables: [code]gWord1 VAR Word ' part of globals gWord2 VAR Word wTest VAR Byte (2) ' in banked array wTest_LSB VAR wTest(0) wTest_MSB VAR wTest(1)[/code] ... and then do this: [code]Start: gWord1 = 3546 gWord2 = 0 wTest = gWord1 ' SX/B copies both bytes gWord2 = wTest WATCH wTest, 16, udec BREAK ' use Debug --> Run Main: GOTO Main[/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=272861#m272870 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)