In message <
120402...@arcade.demon.co.uk>
j...@arcade.demon.co.uk (Jonathan Graham Harston) wrote:
>
be...@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,