Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #1571
| From | Ron <beeb@woosh.co.nz> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Memorymanager &8000 |
| Date | 2012-04-02 21:15 +1200 |
| Organization | - |
| Message-ID | <aa76087a52.beeb@ron1954.woosh.co.nz> (permalink) |
| References | <640f5f7952.beeb@ron1954.woosh.co.nz> <120402015501@arcade.demon.co.uk> |
In message <120402015501@arcade.demon.co.uk>
jgh@arcade.demon.co.uk (Jonathan Graham Harston) wrote:
> beeb@woosh.co.nz wrote:
> > I am using approx 1K of Memory at &8000 from an Obey file, like this:
> > Echo <0><0> { >> <TarControl$Dir>.Files.OK }
> > Load <TarControl$Dir>.Files.OK &8000
>
> I'm surprised that doesn't give an error. Filing commands take
> /hexadecimal/ addresses, to load to 8000 you specify 8000. I've just
> tried *LOAD !Boot &8000 on my A5000 and no error occured, but I have
> no idea what happened.
>
I get an operand error if I dont use the &.
> The Task Manager "Next" size specifies how much memory the next
> task gets. This defaults to 640K or however much is remaining if
> less than 640K.
>
> If it is a single-tasking task (ie you never call Wimp_Init and
> Wimp_Poll) then you can't relinquish any memory you don't need.
>
> You should specify how much memory you want to use with *WimpTask
> which errors if there is less memory in the current task slot than
> you ask for, and increases "Next" if neccessary:
>
> WimpSlot -min 1K -max 1K
> Echo <0><0> { >> <TarControl$Dir>.Files.OK }
> Load <TarControl$Dir>.Files.OK 8000
> Obey -m 8045
>
> WimpSlot uses a grain size of whatever your memory mapping hardware
> uses, usually 32K.
The main obey file already sets a -min 274K -max 274K for the
Confix program.
I guess I can experiment with some sizes and check to see if the
memory is released after the main obey file completes.
I still have a bit to learn about wimpslots. Even though I have a
large enough next slot, When running the secondary obey files
with the actual tar command they ignored the next slot and each
obey file had to have Wimpslot set individually.
I haven't seen that before.
The other thing I have noticed, maybe it is only with some
unixlib ports, is that there is a grey area where the program
errors in a more obscure way than if it is way to low, when
it will plainly say that there is a memory (slot) shortfall.
>
> I'm guessing 'Obey -m' obeys commands in memory. On my system it
> gives "File '-m' not found". How does it know it has come to the
> end of the commands to execute?
>
Yes, it is not on my RiscPC 3.7 either but loading the RISC OS 5.18
Obey module and it works OK.
I dont know when it was introduced or wether RISC OS 4 has it or is
happy running the newer module, so this is a bit of a stickler.
Obey -m would keep trying to execute lines past the file, and that
is why I have to append an <0> to make it exit. (2 aren't necessary)
> > Using
> > *Save Ram:whats_at8000 8000 8214
>
> You will get whatever crap happens to be in the memory that the
> task manager choses to page in.
>
Yes that seems to be happening OK now.
The above is a typo, I have to use &8000 &8214
Thanks,
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Memorymanager &8000 Ron <beeb@woosh.co.nz> - 2012-04-01 15:25 +1300
Re: Memorymanager &8000 jgh@arcade.demon.co.uk (Jonathan Graham Harston) - 2012-04-02 00:53 +0100
Re: Memorymanager &8000 Ron <beeb@woosh.co.nz> - 2012-04-02 21:15 +1200
Re: Memorymanager &8000 Ron <beeb@woosh.co.nz> - 2012-04-04 00:58 +1200
Re: Memorymanager &8000 "Ste (news)" <steve@revi11.plus.com> - 2012-04-05 12:28 +0100
Re: Memorymanager &8000 Ron <beeb@woosh.co.nz> - 2012-04-06 01:27 +1200
Re: Memorymanager &8000 Gerph <gerph@gerph.org> - 2012-04-01 04:41 -0700
Re: Memorymanager &8000 Ron <beeb@woosh.co.nz> - 2012-04-03 09:31 +1200
Re: Memorymanager &8000 Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2012-04-04 06:22 +0200
Re: Memorymanager &8000 Ron <beeb@woosh.co.nz> - 2012-04-05 13:41 +1200
csiph-web