From assembly to spin
Princ
Posts: 12
Hi,
I would like to ask you how can i write from assembly to VAR blok (spin)
I made a field for example
long color[253]
i want to write from assembly to spin
I know that i can send address for cognew like cognew(@writetospin,@colors[253])
or i can write to it with wrlong from assembly
but if i want to write for example to position 143 i don´t know any easy trick how to do it beacause i know that assembly doesn´t have anything like arrrays
So i would be really happy if you could help me
thanks a lot for help
I would like to ask you how can i write from assembly to VAR blok (spin)
I made a field for example
long color[253]
i want to write from assembly to spin
I know that i can send address for cognew like cognew(@writetospin,@colors[253])
or i can write to it with wrlong from assembly
but if i want to write for example to position 143 i don´t know any easy trick how to do it beacause i know that assembly doesn´t have anything like arrrays
So i would be really happy if you could help me
thanks a lot for help
Comments
org
writetospin mov t1,par
add t1,#143
wrbyte mydata,t1 ; t1 = address in hub