<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Thu, 10 Jun 1993 16:19:08 +1200
From   : David Andrew Sainty <David.Sainty@...>
Subject: m/c optimisations

     OK, This may seem a silly question. Anyway, here goes...

     I have a piece of machine code, written using the BASIC assembler which JUST
   fits in the memory available to it. I would like to make it smaller if
I can. I
   have made all the size optimisations I can think of. I was wondering if
anyone 
   out there knows of any tips which would help me to reduce the size of my 
   program in memory.
     I am not interested in speed of execution here - only in memory used.

Well, LSR flag, and SEC, ROR flag are pretty compact flag set/clears.
And of course use branches instead of JMPs. But you probably know all
this....

How big a program is it? You could always send it out on the group and
see what people can come up with (It's a little tricky to come up with
"general rules" for size optimisation....

Dave.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>