DPRG
DPRG List  



DPRG: HC11 Code

Subject: DPRG: HC11 Code
From: Wade Maxfield maxfield at one.ctelcom.net
Date: Wed Aug 11 19:59:17 CDT 1999

  If you can do right shifts rather than divides, it will unbloat the
code.

  a >> 1  (a shifted right 1 will divide by 2)

  a >> 2 ( " by 4)

  a >> 3 ( " by 8)

  you can do other tricks to approximate what you want

On Wed, 11 Aug 1999, barry jordan wrote:

> Some helpful advise would be appreciated,
> 
> What do you do when the *.s19 file is bigger than your EEPROM.
> I have some multiply and divide code so that I can ramp the motors up and
> down.
> I assume this bloats the code.
> Do I, make a lookup table, use a shift statement or what?
> 
> Barry Jordan
> Happy Trails To You
> 
> 
> 
> 
> 

------------------------------

More information about the DPRG mailing list