Constants
A constant is a number that you would not want to change during a program's execution.
The addresses of the microcontroller's special-function registers are a good example
of use and, because the constant numbers are stored in nonvolatile Flash memory, they are
available even after a power cycle.
The result of executing the word associated with a constant is the data value being left on the stack.
$ff93 con trisb ok<$,ram>
$ff8a con latb ok<$,ram>
%11111110 trisb c! ok<$,ram>
0 latb c! ok<$,ram>
1 latb c! ok<$,ram>
0 latb c! ok<$,ram>
FlashForth V3.8
trisb ok<$,ram>ff93
%11111110 trisb c! ok<$,ram>ff93
0 latb c! ok<$,ram>ff93
1 latb c! ok<$,ram>ff93
Peter Jacobs
2013-06-12