LONGMOVE vs. Repeat for RAM to DAT
UltraLazer
Posts: 30
I seem to be having an issue when trying to use LONGMOVE. A dedicated repeat seems to have no problem writing a buffer_array[noparse][[/noparse]96] from RAM to some predefined long space in DAT which is later accessed by a PASM cog.
When I try to employ LOMGMOVE for this same purpose it writes 96 * $0000_0000 at SEQ. This distilled code may help clarify. Either/Or - LONGMOVE/repeat, not both as below.
LONGMOVE may be a dead end in this application, but it is far more likely that I am missing something. Any ideads?
When I try to employ LOMGMOVE for this same purpose it writes 96 * $0000_0000 at SEQ. This distilled code may help clarify. Either/Or - LONGMOVE/repeat, not both as below.
VAR long SEQ_buffer[noparse][[/noparse]96] PUB repeat i from 0 to 95 <----------- This stuff works SEQ[i] := SEQ_buff <------------- this too... LONGMOVE(@SEQ_buffer,@SEQ,96) ' <------ This is not ok... COGINIT (SEQ_cog,@Step000,@SEQ) DAT SEQ long 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 long 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 long 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 long 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 long 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 long 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 [/i]
LONGMOVE may be a dead end in this application, but it is far more likely that I am missing something. Any ideads?
Comments
LONGMOVE( @SEQ, @SEQ_buffer, 96)