🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.apple2.programmer
Article #1

Re: Storage buffer for a text file?

#1
From: mpower
Date: Tue, 15 Sep 2026 04:21
28 lines
2338 bytes
I hadn't considered banking, thanks.

---- Original Message ----
Subject: Re: Storage buffer for a text file?
From: John Ames <commodorejohn@gmail.com>
Date: Mon, 14 Sep 2026 08:21:19 -0700
Newsgroups: comp.sys.apple2.programmer
Article: 8261

On Sat, 12 Sep 2026 23:46:13 -0000 (UTC)
mpower <mpower-codeworks@gmail.com> wrote:

> I'm already using a lot of RAM for the MGTK, and 32kb seems like a
> "safe" number. It is working fine, I'm just hesitant about getting
> into the RAM expansion cards because I don't really understand that
> yet.
> 
> Any thoughts?

32KB is reasonable enough for a small editor (worked for Notepad, all
those years!) That said, while I don't know what your internals look
like, any editor with an internal structure more complex than "single
contiguous text buffer" should be pretty straightforward to extend to
arbitrarily large sizes. Banking makes things a little more complex,
but if you're already using something like a linked list of lines or
chunks then you only need to tag the links with a bank #, in addition
to the pointer itself.
Technical Details
Message-ID: <118ah4i$24hiq$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <1184o84$696m$1@dont-email.me> <20260914082119.00003da3@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: mpower <mpower-codeworks@gmail.com>
Newsgroups: comp.sys.apple2.programmer
Subject: Re: Storage buffer for a text file?
Date: Tue, 15 Sep 2026 04:21:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <118ah4i$24hiq$1@dont-email.me>
References: <1184o84$696m$1@dont-email.me> <20260914082119.00003da3@gmail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 15 Sep 2026 04:21:39 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2246234"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+q3cRY+6c6IcehqVUmawrE"; posting-host="9bfe9b0e73eb1dfc4d477134b4782bac"
User-Agent: TUSENET
Cancel-Lock: sha1:4+mHnXxX2qFX1J5B8R6kEWUduWw= sha256:WxtZIwr4m1smsu3qyJNlL2XH8SsQ8/UWHgcy/zekD0g=
	sha1:XRZKYZVNx4y62IPx0Baf/tEzQDU= sha256:qwqA22WMO4iioBYYC3DXzF+/LI8JNGCySMrk3YdrWz4=
In-Reply-To: <20260914082119.00003da3@gmail.com>