[futurebasic] Re: [FB] Blockmove

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

From: Rich Love <richlove@...>
Date: Mon, 31 May 2004 07:30:03 -0500
I am using an integer array. The characters are decimal values (65 = 
the letter A etc...)
I did not know about subtracting 2 from the blockmove.
Thanks for pointing that out. That should prevent bytes from being 
shifted into invalid memory space.


Rich Love - Carnation Software
MacWise Terminal emulation for Macintosh
richlove@...
http://www.carnation-software.com
512 858-9234

On May 30, 2004, at 7:07 PM, Jay Reeve wrote:

>
> 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@...

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