In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Because READINC will increment the pointer, you will need to subtract from the pointer the value of the number of bytes read. Something like this: [code] SUB DRAW_SCROLL_LEFT tmpW1 = __WPARAM12 ' start of label cs = __PARAM3 FOR tmpB2 = 0 TO 64 STEP 2 tmpW1 = tmpW1 + tmpB2 FOR addr = 0 TO 63 READINC tmpW1, tmpB1 ' read picture data SENDDATA addr, tmpB1, cs NEXT addr tmpW1 = tmpW1 - 64 tmpW1 = tmpW1 - tmpB2 DELAY_MS 50 NEXT tmpB2 ENDSUB [/code] Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=377424#m377447 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)