global variable block problem
HI all!
I'm a newbie in spin language.
And have one question.I could not find it become.
For example:
VAR
byte time[7]
PUB clockSecond
return ?? how to return complete time block?
or how to accessing variable block in other object?
thanks to reply
I'm a newbie in spin language.
And have one question.I could not find it become.
For example:
VAR
byte time[7]
PUB clockSecond
return ?? how to return complete time block?
or how to accessing variable block in other object?
thanks to reply

Comments
temp := long[ds1307.getTime] 'get pointer reference and load local variable long vga.dec(temp.byte[1]) '0...7 blockthanks but not working perfectly 0..3 index is ok but 4..7 so no good .. how to access next long ?
i reply:
vga.dec(byte[ds1307.getTime][1]) 'all block accessing
this is ok
This is "temp" variable i do no need.
I close my unit, so they:
vga.dec(byte[ds1307.getTime][N]) /where N is the requested block
But is it too will be so slow?
vga.dec only can use the debugging..
this is an matrix controll program proto version
repeat i from 0 to 7 outa[i + iopincol[i]]~~ 'set colum pins high outa[iopinrow[((byte[timer.getfulltime][1]) / 10 + i)]]~~ 'set row pins high( / 10, one digit) waitcnt(clkfreq / 1000 * MartixMS + cnt 'and set low etc.. etc... dat iopinrow byte 0,1,2,3,4,5,6,7,8,9 'i/o pins directiva for rows iopincol byte 12,13,14,15,16,17 'I/O pins directiva for columsThis is a nixie tube controller colums in anode(six tubes) rows in 0....9 digits katode...First of all welcome to this forum. I struggled for a long time with using global variables and Jonny Mac was very helpfull in extending my understanding of it. For a newbe, there are some great articles about the prop and the latest one is about passing global vars here http://http://www.parallax.com/Resources/NutsVoltsColumns/TheSpinZone/tabid/781/Default.aspxHere is a thread where he shows the passing of some vars to both a spin cog and a pasm cog: http://http://forums.parallax.com/showthread.php?128922-Passing-Memory-Address-I-am-stumped!
Hope this helps.
RS_Jim