peterz
02-05-2007, 05:08 PM
I have three objects: A,B,C
Object A is the main object, which contains the starting Spin code. Lets say it is running in COG0.
When it starts·it calls object C, which in place launches a new ASM routine in COG1.
Then object A initializes object B which in place launches a new SPIN routine in·COG2.
Threafter·COG0 and COG2 keep calling routines in object C·which communicates with ASM code running in COG1 by means of a buffer.
In object C·this buffer is declared as LONG Buffer[32] in the SPIN section. The buffer is passed to ASM code by means of 'par'.
Would this buffer be shared among COG0 and COG2· ?
·
Object A is the main object, which contains the starting Spin code. Lets say it is running in COG0.
When it starts·it calls object C, which in place launches a new ASM routine in COG1.
Then object A initializes object B which in place launches a new SPIN routine in·COG2.
Threafter·COG0 and COG2 keep calling routines in object C·which communicates with ASM code running in COG1 by means of a buffer.
In object C·this buffer is declared as LONG Buffer[32] in the SPIN section. The buffer is passed to ASM code by means of 'par'.
Would this buffer be shared among COG0 and COG2· ?
·