| SecureUser |
| VERBatim - V25 |
| @ATTACK - @Files.System |
| Advanced Revelation Initialisation Sequence (Overview) by Mike Pope |
| REVMEDIA Revisted |
| Reader's Forum - Mark Hirst Revelation C Interface - Part 1 |
| Reader's Forum The C Interface Part 2 - Mark Hirst (Senior Techie - ICS) Reader's Clinic |
| Reader's Clinic - Functions and Subroutines |
| Argument passing - Subroutines and Functions - Mike Pope |
| VERBatim - V119 |
| VERBatim - V125 |
| VERBatim - V118 |
| Advanced Revelation Assembler Interface Module - Yves Pattyn, Technical Manager, Distribase, France |
| Reader's Clinic - Functions and Subroutines |
| Reader's Letters - Jim Owen |
| Playing with Scan Codes |
| Argument passing - Subroutines and Functions - Mike Pope |
| Argument passing - Subroutines and Functions - Mike Pope |
| Caching in on the Frames Array - Mike Pope |
| QTIPS - Fast Dynamic Array Building |
| QTIPS - @Date.Format |
| @ATTACK - @Date.Format |
| QTIPS - Short Cut Implicit Formatting |
| Utility Diskette # 4 |
| Creating Your Own Background Processes |
| @ATTACK - @Last.Select.Process |
| Reader's Forum |
| QTIPS - Menu Item Pre-Processing |
| QTIPS - DOSTime |
| VERBatim - V11 |
| @ATTACK - @Backgrnd.Time |
| @ATTACK - @Index.Time |
| QTIPS - Time-outs in Windows |
| Reader's Clinic - Different Id Same Record |
| RTP Series - RTP25 |
| QTIPS - String Space |
| Reader's Letters - Jim Owen |
| QTIPS - Finding/Replacing Spaces With The Editor |
| Vroom |
| QTIPS - Replacing GAS.BAR routine during PERFORM "SELECT" |
| QTIPS - Extended Select BY |
| QTIPS - PERFORM Arguments and FMT Specifications |
| What's New (and un(der)documented!) In 2.12 |
| RTP Series - RTP50 |
| @ATTACK - @Messages |
| Advanced Revelation Initialisation Sequence (Overview) by Mike Pope |
| Caching in on the Frames Array - Mike Pope |
| Reader's Clinic - Line Length > 256 Characters |
| QTIPS - String Space |
| QTIPS - String Space Format Errors |
| Reader's Forum - Numeric Precision in R/Basic - Hal Wyman |
| Playing with Scan Codes |
| QTIPS - Compiling Protection Code |
| QTIPS - Invalid Code and Command |
| QTIPS - Code/Command Help |
| Compiling 64K on a Shoestring by Blaise Wrenn (LexStat Systems Ltd) |
RevMedia FKB
| Document | V1I4A7 |
| Title | DOS Interfacing (Part I) |
| Keywords | DOS DIR DIRLIST DISKSIZE DOSTIME DSPACE INITDIR MEMSPACE MONITOR PRNSTAT |
| Text | The system contains many COMMANDS which can be used both to query the DOS environment for information and to interface WITH it In this the first article of a two part series we consider those AREV routines which can be used to query the environment NB V124 is not documented here as it is a higher level subroutine If wanted this routine (an assembler routine to manipulate the serial port) can be addressed in a later issue DIR Internal function that returns a dynamic array WITH three parts part 1 the file size in bytes part 2 the date in internal format and part 3 the time in internal format Usage is x = DIR(Filename) where Filename includes the path DIRLIST Internal function When there is a requirement to process the DOS files on a drive INITDIR is used to establish the file SPEC to use and then DIRLIST() returns filenames matching the SPEC in blocks of approximately 1160 bytes with the NAMES @FM delimited DIRLIST should be used in a LOOP looping until DIRLIST returns null CALLING syntax x = DIRLIST() DISKSIZE Younger brother of DSPACE (q v ) Function WITH one passed parameter (the drive letter) Returns a dynamic array WITH two values the first the disk size the second the bytes free CALLING syntax INFO = DISKSIZE("C") DOSTIME Subroutine WITH one passed parameter Returns clock time in eighteenths of a second CALLING syntax CALL DOSTIME DSPACE Subroutine WITH six passed parameters Given the DRIVE id (A) it returns the free space (B) the amount of free clusters (C) the sectors per cluster (D) the bytes per sector (E) and the total number of clusters (F) Calling syntax CALL DSPACE(A B C D E F) INITDIR Internal STATEMENT that initialises a FILTER to apply to subsequent DIRLISTs Any valid DOS DRIVE spec/file wildcards can be used Calling syntax INITDIR (Filespec) MEMSPACE Function WITH one passed parameter MEMSPACE will perform various garbagecollects and flushes to free up the amount of memory you requested in the passed parameter The amount of memory freed up will be returned as the result of the function It is used to call MEMSPACE WITH a very large number (E g 999999) as this will then clear up ALL available string space and report back how much is available Your routine can then decide if there is enough memory to proceed The less usual method of CALLING MEMSPACE WITH the amount of memory required is used where speed is absolutely critical and extra flushes are to be avoided AFTER declaring as a function calling syntax is FREE SPACE = MEMSPACE(x) MONITOR Subroutine WITH one passed parameter Returns a code of 3 for a colour monitor all other codes probably meaning mono CALLING syntax CALL MONITOR(X) PRNSTAT Subroutine WITH one passed parameter Checks the parallel port and returns a code indicating port status Useful for avoiding "Abort Retry Ignore" messages Code of 0 means PRINTER OK 1 No Printer 2 Paper Out 3 Printer Off LINE CALLING syntax CALL PRNSTAT(X) (Volume 1 Issue 4 Pages 4 9) |
Page last modified: 08/02/03