pfe-option-ext ? Option Words For Almost-Non-Volatile Environment
NVRAM,WORDS ( -- ) ?=>? ( | ) ; | ? |
"EXTENSIONS"
;NVRAM,Z@ ( "varname" -- z-str ) ?=>? ( | ) ; | ? |
"EXTENSIONS"
;NVRAM,S@ ( "varname" -- str-ptr str-len ) ?=>? ( | ) ; | ? |
"EXTENSIONS"
;NVRAM,?@ ( number "varname" -- number' ) ?=>? ( | ) ; | ? |
"EXTENSIONS"
;NVRAM,AS ( str-ptr str-len "varname" -- ) ?=>? ( | ) ; | ? |
"EXTENSIONS"
;NVRAM,TO ( number "varname" -- ) ?=>? ( | ) ; | ? |
"EXTENSIONS"
;
NVRAM,WORDS ( -- ) => "EXTENSIONS"
Print a list of WORDS
in the NVRAM buffer. Try to show also the
current value, atleast for NVRAM numbers and strings. Words can be
added or changed with the help of NVRAM
,SET or NVRAM
,USE
Values in the NVRAM buffer will survive a COLD
reboot, in many
hosted environments however the NVRAM will be lost on program exit.
NVRAM,Z@ ( "varname" -- z-str ) => "EXTENSIONS"
Return the string pointer of the NVRAM string item, or null if no such item exists.
NVRAM,S@ ( "varname" -- str-ptr str-len ) => "EXTENSIONS"
Return the string span of the NVRAM string item, or double null if no such item exists.
NVRAM,?@ ( number "varname" -- number' ) => "EXTENSIONS"
Return the value of the NVRAM value item, or leave the original number untouched (i.e. the default value for your option).
NVRAM,AS ( str-ptr str-len "varname" -- ) => "EXTENSIONS"
set the NVRAM variable to the specified string.
Some NVRAM strings do not take effect until next COLD
reboot.
NVRAM,TO ( number "varname" -- ) => "EXTENSIONS"
set the NVRAM variable to the specified number.
Most NVRAM numbers do not take effect until next COLD
reboot.