English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 13 April 2017, 11:53   #1
earok
Registered User
 
Join Date: Dec 2013
Location: Auckland
Posts: 3,541
Possible to kill the background OS with Blitz?

Basically, if I have a game where quitting back to the OS is unnecessary (such as one that boots from floppy or on CD32), is there a way to kill the background OS to free up a bit more memory?
earok is online now  
Old 13 April 2017, 12:21   #2
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
Not really (I presume you mean as distinct from suspending it with Blitz mode), but if you boot directly from floppy there's very little of the OS actually in RAM. How much memory are you stuck for? Just about the only thing I can think of that might take a chunk of RAM is disk caches for any attached hard drives, which is why you had to disable partitions in the early startup to get some games to run from floppy.
Daedalus is offline  
Old 13 April 2017, 12:34   #3
earok
Registered User
 
Join Date: Dec 2013
Location: Auckland
Posts: 3,541
Quote:
Originally Posted by Daedalus View Post
Not really (I presume you mean as distinct from suspending it with Blitz mode), but if you boot directly from floppy there's very little of the OS actually in RAM. How much memory are you stuck for? Just about the only thing I can think of that might take a chunk of RAM is disk caches for any attached hard drives, which is why you had to disable partitions in the early startup to get some games to run from floppy.
Cheers, I was really just hoping to squeeze out anything I could get - if it was fairly easy to do so. I didn't even think about the fact that I switch in and out of Blitz mode during the game (for loading etc) so it'd be more trouble than it's worth
earok is online now  
Old 13 April 2017, 14:13   #4
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
Yeah - you'd most likely need to write your own custom loaders in that case - not impossible of course, many games do that, but you'd really need a good reason to do it that way IMHO.
Daedalus is offline  
Old 13 April 2017, 16:56   #5
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
Isn't there a CloseWB command or am I thinking of AMOS?
idrougge is offline  
Old 13 April 2017, 17:28   #6
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
Yep, there is indeed, but if you're booting from floppy you're probably not going to bother opening the WB screen in the first place. Good point though - that'll free up a screen's worth of chip RAM if it does open - about 41KB.
Daedalus is offline  
Old 13 April 2017, 23:18   #7
Coagulus
Gets there in the end...
 
Coagulus's Avatar
 
Join Date: Sep 2005
Location: Wales
Posts: 862
There used to be a startup-sequence command (add44k?) which used to help i think.
Coagulus is offline  
Old 14 April 2017, 09:43   #8
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
Quote:
Originally Posted by Coagulus View Post
There used to be a startup-sequence command (add44k?) which used to help i think.
Indeed there was, Birds of Prey used it during loading/decrunching. It appears to add the Workbench screen's memory to the memory pool, because as it loaded, it would gradually corrupt the screen from the top down. Interesting technique - I thought it was something they'd written especially for BoP, but maybe it's available elsewhere too...

Edit: Reading about it now, I see that it removes a bitplane from the screen and frees up that memory, so maybe the corruption is something else related to the BoP unpacker. Anyway, worth a look if you're super tight on RAM.
Daedalus is offline  
Old 14 April 2017, 12:39   #9
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
If I remember right there also exist add36k and there were some more commands that do similar things. My 25 years old Protracker floppy disk starts a command called "moremem" to get as much chipram as possible.
daxb is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[blitz basic] How much amiga-blitz friendly is this? saimon69 Coders. Blitz Basic 105 21 April 2022 19:45
License to kill slk486 support.Games 6 24 January 2018 20:09
Can you kill an app? videofx support.Apps 2 22 July 2014 21:02
Thrill Kill again... fuzzylogic support.WinUAE 9 28 December 2013 13:49
If M$ did all this to kill Quicktime, God only knows what they did to kill Amiga! Pyromania Amiga scene 47 28 September 2007 11:01

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:13.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07652 seconds with 15 queries