In SX Microcontrollers, SX/B Compiler and SX-Key Tool, johncouture wrote: I think I'm just getting tired. What I want to do is call a function that will copy 8 bytes from one ram variable to another. Something like: '------------------------ ' variable declarations DSTemp var byte(8) DSDir var byte(8) DSSpeed var byte(8) SerialNum var byte(8) . . '------------------------------ 'subroutine call in main program ' program figures out the serial number and stores ' it in SerialNum array copySerialNumber DSTemp '---------------------- ' subroutine definition copySerialNumber: temp1 = __Param1 for temp2 = 0 to 7 temp1(temp2) = SerialNum(temp2) next return P.S. YEA! I FINALLY figured out the 1Wire protocol and have got the AAG weather station talking to the SX18. The above is so that I can optimize the code and be able to fit all four routines (search,temp,speed,dir) into one program (however I'll probably have to use an SX48/52 for the additional memory. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=109681 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)