[Coco] Minted buffer size
Luis Antoniosi (CoCoDemus)
retrocanada76 at gmail.com
Thu Mar 5 09:07:58 EST 2015
The internal malloc system implemented does not compute free space. It's a
costly operation to run through all free memory chunks computing them. It
never does that except where the memory is over.
If you want to play, in the @input loop, create a counter variable, and
when it reaches 10 keystrokes call this method:
_mcheck
ldx #1024
lbsr __malloc
lbcs @error
lbsr _free
rts
@error
ldb #E$MemFul
lbra _error
But it should count only edit keystrokes, not navigational. So increment
the counter in each of the: @enter, @delete, @backspace, @char, @ctrl_k,
@ctrl_d, @ctrl_u
This would make it :)
Luis Felipe Antoniosi
On Thu, Mar 5, 2015 at 8:40 AM, Luis Antoniosi (CoCoDemus) <
retrocanada76 at gmail.com> wrote:
> It's me.
>
> RIght now there is no such feature. It must be implemented.
>
>
> Luis Felipe Antoniosi
>
>
>
> On Wed, Mar 4, 2015 at 10:41 PM, Gene Heskett <gheskett at wdtv.com> wrote:
>
>> A question for the minted author;
>>
>> Is there a way to ascertain when I am within nominally 1 kilobyte of
>> being out of working memory?
>>
>> Cheers, Gene Heskett
>> --
>> "There are four boxes to be used in defense of liberty:
>> soap, ballot, jury, and ammo. Please use in that order."
>> -Ed Howdershelt (Author)
>> Genes Web page <http://geneslinuxbox.net:6309/gene>
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>>
>
>
More information about the Coco
mailing list