Keen: Modding Forum Index Keen: Modding
All the modding info you'll ever need
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Free-up ~15 kB of space

 
Post new topic   Reply to topic    Keen: Modding Forum Index -> Patches: Marooned on Mars
View previous topic :: View next topic  
Author Message
lemm



Joined: 05 Jul 2009
Posts: 532

PostPosted: Sat Nov 07, 2009 7:32 pm    Post subject: Free-up ~15 kB of space Reply with quote

By rewriting the procedure that draws tiles into a more compact form, $38C0 = 14528 bytes are freed. Of course the procedure takes marginally longer to execute now, but on DOSBox at 3000 cycles it is not noticeable.

$1940 bytes are freed in the code segment
$1F80 bytes are freed starting at segment 1000:0.

Hope that's enough room to fit your patches in =).

http://files.commanderkeen.org/users/omp/adt.zip


EDIT: The first byte is located at $E6C0.


Last edited by lemm on Mon Nov 09, 2009 12:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
levellass



Joined: 11 Oct 2006
Posts: 2044
Location: Ngaruawahia New Zealand

PostPosted: Mon Nov 09, 2009 10:28 am    Post subject: Reply with quote

I think I shall need to make a new folder in the Patch Index for these sort of things.

So where is the first freed bytes segment located?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Keen: Modding Forum Index -> Patches: Marooned on Mars All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group