home *** CD-ROM | disk | FTP | other *** search
- \ Copyright 1989 NerveWare
- \ No portion of this code may used for commercial purposes,
- \ nor may any executable version of this code be disributed for
- \ commercial purposes without the author's express written permission.
- \ This code is shareware, all rights reserved.
- \ Nick Didkovsky
- \ 2/7/89
- \ create an indexed string for writing out sequential files to volume PIX:
-
- \ NOTE THAT YOU MUST EITHER HAVE A VOLUME NAME PIX: OR HAVE ASSIGNED PIX:
- \ TO AN EXISTING PATHNAME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
- anew task_filenext
-
- variable curr-filename
- variable curr-filecount
-
- : init.file.next ( -- )
- 0 curr-filecount !
- " PIX:Mandelxxx.IFF" curr-filename !
- cr ." filecount initialized to 0" cr
- ;
-
- : number>digits ( number -- hundreds tens ones )
- dup>r 999 > if ." FILENUMBER GREATER THAN 999!!!" ABORT then
- r@ 100 / ascii 0 +
- r@ 100 mod 10 / ascii 0 +
- r> 10 mod ascii 0 +
- ;
-
- : make.next.filename ( -- )
- curr-filecount @ number>digits
- curr-filename @ 13 + c!
- curr-filename @ 12 + c!
- curr-filename @ 11 + c!
- curr-filename @ count type
- 1 curr-filecount +!
- ;
-
-