home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
forth
/
compiler
/
fpc
/
source
/
thand1.seq
< prev
next >
Wrap
Text File
|
1989-12-19
|
685b
|
20 lines
\ THANDLES.SEQ Handle impementation file by Tom Zimmer
\ This file contains some handle manipulation primitives
FORTH DECIMAL TARGET >LIBRARY \ A library file
70 CONSTANT B/HCB
VARIABLE RWERR
\ Attrib is normally zero (0) for Read/Write.
\ Attrib may be set to one (1) for Write ONLY.
\ Attrib may be set to two (2) for Read ONLY.
: >ATTRIB ( handle --- attrib-addr ) 66 + ;
: >HNDLE ( handle --- handle-addr ) 68 + ;
: >NAM ( handle --- name-string-addr ) 1+ ;
: CLR-HCB ( HANDLE - ) DUP B/HCB ERASE -1 SWAP >HNDLE ! ;
FORTH DECIMAL TARGET >TARGET