In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: This will do it... [code] DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX FREQ 4_000_000 here VAR Byte (7) there VAR Byte (7) CopyBytes SUB 3 PROGRAM Start NOSTARTUP Start: PUT here, "ABCDEFG" CopyBytes here, there, 7 END CopyBytes: ASM :Again: MOV W,__PARAM1 MOV FSR,W MOV W,IND MOV __PARAM4,W MOV W,__PARAM2 MOV FSR,W MOV W,__PARAM4 MOV IND,W INC __PARAM1 INC __PARAM2 DJNZ __PARAM3, :Again ENDASM RETURN [/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=139735#m139744 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)