In SX Microcontrollers, SX/B Compiler and SX-Key Tool, GKCS wrote: Hi all, I am just playing around with the fantastic MMVGD system. This system can be used for much much more than only writing games. For different cases, it is great to have a more user-controled numbers output. For this case, I just did a little replacement of the ValueDec and ValueInc sub's. SetText can handle a 5 digits number in the range of a word variable. SetText Col,Val 0<=Col<=15 0<=Val<=65535 The output is at row 0 and uses the Row0 TileSet This sub can easily be modified, to output numbers also at row 1 to 10 st_tmp1 var word st_tmp2 var byte st_tmp3 var word st_x var byte SetText sub 3 SetText: st_x = __Param1 st_tmp1 = __WPARAM23 for st_tmp2=0 to 4 lookup st_tmp2,10000,1000,100,10,1,st_tmp3 st_tmp1 = st_tmp1/st_tmp3 st_tmp3 = __wremainder PutTile st_x,0,st_tmp1_LSB st_tmp1 = st_tmp3 inc st_x next st_tmp2 Return Have fun with this lil code Gerry ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=144587 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)