Download FORTH for NOAA/MLML Instruments

Transcript
FORTH for NOAA/MLML Instruments
MKDIR .
MLML Tech Pub 93-2
( a n -- )
Creates a sub-directory on the DOS disk. A
short form of this word can be used as MD. The
sub-directory name is specified by a and length n,
and the names can be separated by backslashes
(\). Any error will abort with a message.
Related words: CHDIR RMDIR
KEN
( al nl a2 n2 -- )
Renames the source file name, al and length nl,
to the destination file name, a2 and length n2, on
the DOS disk. The fue names may contain
sub-directory names separated with
backslashes (\). If the destination file name
points to a different sub-directory than the source
fue name, the directory entry of the file will be
moved to the new sub-directory.
( n1 -- a n2 )
Example:
Returns an ASCII string a with length n2 from a
numeric month nl which ranges from 1 to 12
In this
(1 = "Jan", 2 = "Feb", etc.).
implementation, n2 will always be 3.
Related word:
COpy
RMDIR
Example:
6 MONTH TYPE fun ok
Related word:
" ML034.DAT" " MLOO34A.DAT" REN ok
(DATE)
PSRAMAUTO
( -- )
Sets the Pseudo-static RAM to Auto-Refresh
mode. Although this consumes slighty more
power, it is used to "turn-on" the RAM for read
and write.
( a n -- )
Removes a sub-directory from the DOS disk. A
short form of this word can be used as RD. The
sub-directory name is specified by a and length n,
and the names can be separated by
backslashes (\).
The contents of the
sub-directory must be empty else returns an error.
Any error will abort with a message.
Related words: CHOIR MKDIR
SCANSCHED
(
-- )
Related words: PSRAMSELF
PSRAMSELF
(
-- )
Sets the Pseudo-static RAM to Self-Refresh
mode. This is used to "turn-off' the RAM to
conserve power. Anything written to the RAM
may not be reliable.
Example:
BEGIN ?ALARM IF SCANSCHED THEN
AGAIN ok
Related words: PSRAMAUTO
RD
Scans the schedule list and executes routines
enabld in the scheule list. Although this may be
executed at any time, this should be executed
when an alarm interrupt occurs using ?ALARM.
( a n -- )
Related words: SCHED SETALARM
A short form of RMDIR. See RMDIR.
July 1993 (Rev. January 1994)
51