home *** CD-ROM | disk | FTP | other *** search
QuickBASIC Tokenized Source | 1991-08-26 | 9.4 KB | 189 lines |
- RegType
- flags
- RegTypeX
- @ INTERRUPT
- intnum
- inregd
- outregt
- InterruptX
- ABSOLUTE
- address
- INT86OLDl
- inarray(
- outarray
- INT86XOLD
- DosVer
- DiskSpace
- Drive{
- Driver
- InRegs
- outregs
- InRegsX
- OutRegsX|
- PrGraph3
- ScrMode\
- Lmargin
- BlinkBar
- InRegs.ax
- InRegs.cx
- InRegs.bx
- InRegsX.ax&
- InRegsX.dx;
- InRegs.dx
- Pixelv
- Density
- Row2b
- Col2S
- PrString
- Window.Stroll
- Window
- linesg
- BackColor
- NumbChar
- outregsX.ax
- outregsX.bx
- outregsX.cx
- NMALLOC]
- DosPr
- DosPrint
- UseDrive
- MuzKey
- MuzUse
- Muzlib
- DefDrive
- SpcDrive
- RollWind
- ResTypeX
- GetFileDta
- FileBufF
- DtaReserved
- FindSpec:
- FindSpecFile
- Regs$
- Regs.ax
- Regs.ds
- BufferT
- Regs.dx)
- FileDta
- FileType
- InRegsX.ds
- Regs.cx
- Operation
- ErrCode
- InRegsX.cx
- InRegs.ds
- Ecode
- DosJunk
- Size7
- FileName
- SpecFound
- FALSE
- PlayOn
- DtaBuf
- Inited
- GetDirSpec
- InRegsX.si
- FileDta.FileName
- Definations from QB.BI
- Define the type needed for INTERRUPTG
- Define the type needed for INTERUPTXE
- Generate a software interrupt, loading all but the segment registersA
- Generate a software interrupt, loading all registerse
- If you prefer to use QB.BI which has the similar definations as above:
- --- Delete above lines, use '$INCLUDE: 'qb.bi' instead.
- << Get current DOS version.>>.
- << Get free space on specified drive >>f
- << Change current default drive. Returns total logical drive Number. >>
- << Get current default drive >>r
- << Plays sound for each key user pressed and returns the key >>>
- << Generate a blinking bar till user press a key. >>
- << Print text$ use DOS function. >>r
- << Stroll window in any mode using a DOS function >>
- << Graphics screen dump to dot-matrix printer in mode 1 or 2 only >>
- << Get file information from disk and store in FileDta >>
- << Get directory information>>
- Define inregs and outregs for INTERRUPT use.t
- Must also copy to the main module if you use this program
- as a secondary module.
- <NOTE
- ABOVE DEFINES MUST BE COPIED TO YOUR MAIN MODULE IF YOURm
- MAIN MODULE IS SEPERATED FROM THIS PROGRAM.
- DosVer
- Comments: Returns an integar which is the dos version
- times 100. (EX: 320 means dos version 3.20)
- SpcDrive
- This function returns free space availiable in select drive
- (BX * CX * AX = total space on disk)i
- <<PARAMETER>> Drive::
- 0 for default
- 1 for a:
- 2 for b:
- 3 for c: etc
- UseDrive
- Comments: Change current drive to given value; And
- returns a integar which is the total number ofl
- logical drives.
- DefDrive
- Comments: DefDrive returns a integer number represents
- the current default drive: 0 for A, 1 for B etc...e
- MuzKey
- Comments: This function waits and returns a key pressed by user.
- Any key pressed, will generate a different sound.
- Get a keyp
- Returns the keyi
- load the music lib if it's not loaded
- |\ZzXxCcVvBbNnMm<,>.?/AaSsDdFfGgHhJjKkLl:;''`~QqWwEeRrTtYyUuIiOoPp{[]}!1@2#3$4%5^6&7*8(9)0_-+=
- find the key in lib
- L16N="
- play sound
- BlinkBar
- Descrp: Rapidly display a blinking bar height defined by ln,,
- blinks untill a key is pressedn
- <<PARAMETERS>>
- NumbChar: Number of characters of length from current postion
- char:
- ASCII code of character to use. (INTEGER: 1 to 255 )
- DosPrint
- Comments: Print text$ use a dos function.
- RollWind
- Comments: Perform scrolling text window use dos call (any mode)
- lines: Number of lines to stroll. If postive, strolls up;;
- if negative, strolls down.
- r1,c1,r2,c2: Window range
- BackColor: Color attri. to fill the background for the new line(s).
- up or down
- /upperleft corner
- /lowerright corner
- /color
- /interrupt 10 not 21
- PrGraph
- Dump graphics screen image enclosed by (c1,r1)-(c2,r2) to
- Epson or compatible DOT-MATRIX printer.
- <<PARAMETERS>>t
- ScrMode:
- Graphics mode. (CGA 1 or 2 only)
- Lmargin:
- left margin (skip spaces)2
- printing range: form (c1,r1) to (c2,r2),)
- Assign pixels per point for mode 1 or 2.)
- Testing range in mode 1 or 2.
- On out of range or mode other than 1 or 2, abort graph printing
- - Get screen mode
- - Data init
- range
- column range
- line length in dots
- 7/72 inch vertical spacing
- - Now dump graphics image to printer
- Value 79
- GetFileDta
- This file returns a file data block contains file informations.
- <see TYPE FileDta for specification>. Calls this sub in a loop.
- until ErrCode <> 0.
- -- PARAMETERS --s
- Spec$ : Passed parameter of path+drive specification;
- DtaBuf : Returned file data block+
- ErrCode : Returns a none zero number when last record is read..
- Set DTA Buffer
- GetDirSpec
-