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


Groups > comp.sys.acorn.programmer > #6651

Temporary memory

From Bob Latham <bob@sick-of-spam.invalid>
Newsgroups comp.sys.acorn.programmer
Subject Temporary memory
Date 2026-06-14 09:56 +0100
Organization None
Message-ID <5ce8bbe2c2bob@sick-of-spam.invalid> (permalink)

Show all headers | View raw


I could use some advice on obtaining and using temporary extra memory
from within a program. I do recall that at one time there was a way
to claim some temp memory but I also recall that the method changed
for some reason. I can't remember how/why to be honest.  

I need probably no more than 2M byte, a few 100k more the normal.
I'm using OS5.31 but only have a set of RO3 PRMs.

Essentially, I need to move a few blocks of data up or down within
the file. Read blocks of bytes using OS_GBPB 3 and write them back
either higher or lower with OS_GBPB 1. The size of the ram buffer
determines if I have to do this in chunks or all in one go.

Thanks for any advice.


Background.
I'm writing a FLAC (music file) tag editor for doing mass changes
across a large library. Flac files have several blocks of data before
the music in the file. Two of those blocks are the tagging area and
the padding area. The padding area is there to give spare bytes
within a fixed size file that you can use if you need them for
tagging changes but you need to move the data between them to do that.

Cheers,

Bob.

Back to comp.sys.acorn.programmer | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Temporary memory Bob Latham <bob@sick-of-spam.invalid> - 2026-06-14 09:56 +0100
  Re: Temporary memory Martin <News04@avisoft.f9.co.uk> - 2026-06-14 11:24 +0100
    Re: Temporary memory Bob Latham <bob@sick-of-spam.invalid> - 2026-06-14 12:41 +0100
      Re: Temporary memory Martin <News04@avisoft.f9.co.uk> - 2026-06-14 13:13 +0100
        Re: Temporary memory Bob Latham <bob@sick-of-spam.invalid> - 2026-06-14 14:51 +0100
          Re: Temporary memory Martin <News04@avisoft.f9.co.uk> - 2026-06-14 15:28 +0100

csiph-web