Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #2428

Re: AppleSoft free memory without using FRE(0)

From Benoit0123 <bgilon@free.fr>
Newsgroups comp.sys.apple2.programmer
Subject Re: AppleSoft free memory without using FRE(0)
Date 2016-03-04 13:19 +0000
Organization Mac GUI
Message-ID <benoit0123-1457097726@macgui.com> (permalink)
References <naukga$n3q$1@gioia.aioe.org> <m3egbuiwcu.fsf@gmail.com>

Show all headers | View raw


awanderin wrote:
> Brian Patrie <bpatrie@bellsouth.spamisicky.net> writes:
> 
>> On 2016-02-28 22:58, awanderin wrote:
>>> You could also do a ProDOS "FRE" followed by the applesloth FRE(0) and
>>> get your number fairly quickly.  If you don't have much string action in
>>> your program, the Applesoft FRE(0) is not going to take long anyhow.
>>
>> I'd tried that; FRE(0) still took ever. (The immediately relevant
>> program is a catalog browser, that uses several large arrays.)
> 
> Oh right, I forgot that BASIC.SYSTEM actually turns on TRACE mode and
> hides the output, so that it can spy on variable use after each
> statement.  I believe that is how it auto-issues the FRE command.
> 
> --
> Jerry    awanderin at gmail dot com
>
IMHO the intercept at this level only serves as being able to parse command
texts from the Applesoft main loop (starting at $D7D2) to properly render
the TRACE output on screen/printer while parsing a ProDOS BI command or
writing to a file;
I don't think that such hook serves as automatic garbage collection (based
on BASIC SYSTEM 1.1 listing study by M. Mossberg) which still needs to be
manually triggered by using the PRINT CHR$(4);"FRE" sequence from a BASIC
program, unlike the Applesoft internal FRE(0) which remains automatic.
Has this state evolved in subsequent BASIC.SYSTEM release (from 1.3 to
1.5).. I do not know..



-- 
Growing old is mandatory..
growing up is optional..
But the other way round is as true.

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

AppleSoft free memory without using FRE(0) Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2016-02-28 05:08 -0600
  Re: AppleSoft free memory without using FRE(0) gids.rs@sasktel.net - 2016-02-28 07:16 -0800
    Re: AppleSoft free memory without using FRE(0) Michael J. Mahon <mjmahon@aol.com> - 2016-02-28 17:19 -0600
    Re: AppleSoft free memory without using FRE(0) Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2016-02-28 22:20 -0600
      Re: AppleSoft free memory without using FRE(0) awanderin <awanderin@gmail.com> - 2016-02-28 21:58 -0700
        Re: AppleSoft free memory without using FRE(0) Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-02-29 12:48 -0800
        Re: AppleSoft free memory without using FRE(0) Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2016-02-29 19:18 -0600
          Re: AppleSoft free memory without using FRE(0) gids.rs@sasktel.net - 2016-02-29 17:53 -0800
            Re: AppleSoft free memory without using FRE(0) Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2016-02-29 23:07 -0600
          Re: AppleSoft free memory without using FRE(0) awanderin <awanderin@gmail.com> - 2016-02-29 22:46 -0700
            Re: AppleSoft free memory without using FRE(0) Benoit0123 <bgilon@free.fr> - 2016-03-04 13:19 +0000
              Re: AppleSoft free memory without using FRE(0) gids.rs@sasktel.net - 2016-03-04 07:48 -0800

csiph-web