How can I set Tasks > Next value in a !Run file?

discuss general risc os software applications and utilities
Related forum: adventures


Post Reply
User avatar
wmd
Posts: 340
Joined: Wed Feb 03, 2021 10:16 pm
Contact:

How can I set Tasks > Next value in a !Run file?

Post by wmd »

As per title. I'm going to guess that it can be done using MemAlloc. If so, what is the correct syntax?
User avatar
IanJeffray
Posts: 5962
Joined: Sat Jun 06, 2020 3:50 pm
Contact:

Re: How can I set Tasks > Next value in a !Run file?

Post by IanJeffray »

wmd wrote: Wed Nov 29, 2023 8:05 pm As per title. I'm going to guess that it can be done using MemAlloc. If so, what is the correct syntax?
I'm not sure the question really makes sense. The "Next" value is the amount of RAM that will be allocated to the next task that's run WITHOUT it calling *WimpSlot, as well behaved tasks should.

But if you really do want to change the next slot, you can call *WimpSlot -next
eg.

Code: Select all

*WimpSlot -next 1024K
User avatar
wmd
Posts: 340
Joined: Wed Feb 03, 2021 10:16 pm
Contact:

Re: How can I set Tasks > Next value in a !Run file?

Post by wmd »

I am trying to get the Superior re-release of Zelanites to work. If I manually set Next in Tasks to 1088K the game loads fine. Using WinpSlot -next 1088K in the !Run file isn't working.
paintings
Posts: 92
Joined: Mon Jul 13, 2020 7:41 pm
Contact:

Re: How can I set Tasks > Next value in a !Run file?

Post by paintings »

In an application's !Run file, the correct syntax is:

WimpSlot -min 1088K -max 1088K

You would only fiddle with the -Next parameter if you wanted to change things for an application that will be loaded after the current one.
User avatar
wmd
Posts: 340
Joined: Wed Feb 03, 2021 10:16 pm
Contact:

Re: How can I set Tasks > Next value in a !Run file?

Post by wmd »

paintings wrote: Wed Nov 29, 2023 9:43 pmWimpSlot -min 1088K -max 1088K
Thanks, that worked.
Post Reply

Return to “32-bit acorn software: other”