prof-braino / propforth

Automatically exported from code.google.com/p/propforth
3 stars 0 forks source link

onreset and onboot usuage #197

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
onreset and onboot have no explaination within the PropForth.htm.

My first impression was that I had to have 64k eeprom to use these.. 32k might 
be unsupported. But now I am thinking that they might not be dependent on extra 
eeprom. That they just might refer to another word previously defined in 
dictionary.

Having said that I need to run some tests to verify. Something like the 
following...

: blinky 7 pinout 5 0 do 250 delms 7 pinhi 250 delms 7 pinlo loop ." ready " ;

: onreset blinky ;

Is the above well-formed? Or is it off in the weeds? 

Original issue reported on code.google.com by prof.bra...@gmail.com on 20 Jun 2013 at 2:14

GoogleCodeExporter commented 8 years ago
from loopy's post in the forums

http://forums.parallax.com/showthread.php/146693-Propforth-v5.5-is-available-for
-download?p=1190654&viewfull=1#post1190654

Original comment by prof.bra...@gmail.com on 20 Jun 2013 at 2:15

GoogleCodeExporter commented 8 years ago
The concept is correct, but this will run on every cog that gets reset, 
probably not what you want.

: onreset3 onreset blinky ;

Will only run on cog3 (change 3 to whatever cog number) run the original reset 
and then run blinky.

Original comment by salsa...@gmail.com on 20 Jun 2013 at 4:37

GoogleCodeExporter commented 8 years ago
created a wiki page for onreset

Original comment by prof.bra...@gmail.com on 24 Jun 2013 at 6:47