[futurebasic] Re: [FB] Blockmove

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2004 : Group Archive : Group : All Groups

From: Jay Reeve <jayreeve@...>
Date: Sun, 30 May 2004 19:07:36 -0500
On Sunday, May 30, 2004, at 03:31  PM, Rich Love wrote:

> Those are great suggestions. I will try each and see which is best for 
> me.
> The purpose for doing this is to shift a character array used as a 
> scroll buffer.
> XREF@ Array% (960, 207).....  960 is the number of rows in the buffer 
> and 207 is the number of columns.
> I want to shift the rows back one row.

>> DYNAMIC Array%(960, 207)
>> BLOCKMOVE @ Array%(2,0),@ Array%(1,0), 397490 - (([[@Array] + 
>> _AutoXREFCurr]-2) *207* sizeof(int))

When you're ready to try this one, please note that the move should 
actually be--

BLOCKMOVE @ Array%(2,0),@ Array%(1,0), ( [@Array  + _AutoXREFCurr] - 2 
) * 207 * sizeof(int)

You say it's a character array, but you are using an integer array, 
meaning you can't draw a liine at a time unless you're actually using 
the 2-byte chars, which I've not yet figured out. I would be tempted to 
make it a byte array and save half the mem and half the time required 
to move it, even though I  realize neither is very significant.

  e-e
  =J= a  y
   "

--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@...