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.
Free-up ~15 kB of space
Free-up ~15 kB of space
Last edited by lemm on Mon Nov 09, 2009 12:18 pm, edited 1 time in total.