November 23, 2024, 06:13:49 AM

News:

Got VSA?  Want to use your Prop-SX?  Now you can!  See the VSA section of the Library forum for Prop-SX code that works with VSA.


Pushing the limits of the prop-1 with Beast program

Started by BigRez, October 05, 2009, 05:14:11 PM

Previous topic - Next topic

JonnyMac

I found a way to recover one more byte which gives you just enough space to turn the eyes on.  Change...

  PINS = %00000000
  DIRS = %00000111


to:

  PORT = %0000011100000000

I think this is the first time I've ever used that variable (PORT) -- and I've been programming the BS1 micro since 1994!
Jon McPhalen
EFX-TEK Hollywood Office

JonnyMac

October 26, 2009, 12:23:47 PM #16 Last Edit: October 26, 2009, 12:26:21 PM by JonnyMac
Using that same scheme I just recovered 3 more bytes (with eyes on!).

I reorganized a few variable definitions -- to this:

SYMBOL  delayMin        = B1

SYMBOL  event           = B2
SYMBOL  mp3             = B3


Now, instead of:

  event = 0
 mp3 = 0
 


... use this:

  W1 = 0                                       ' reset event and mp3

Of course, this requires some understanding that W1 covers B2 and B3, but you're at a point where you do understand that and take advantage of the code savings.
Jon McPhalen
EFX-TEK Hollywood Office

BigRez

W00t!  Yep - do understand that B2 and B3 are the upper and lower bytes of W1.  (Same with DIRS/PINS vs. PORT )  Very nice!

I have my eyes and now three more bytes to use for something else ;)

Thanks so much!