advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Interrupt[X] Routine Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 CALL Interrupt[X] (interruptnum%, inregs, outregs)
 
 Usage Notes
   ■ The Interrupt and InterruptX routines replace the INT86 and INT86X
     routines used in earlier versions of Microsoft QuickBasic. They provide
     a more convenient way for Visual Basic programs to use MS-DOS interrupts
     and services.
 
   ■ The register values before and after the interrupt are passed in
     variables declared as type RegType or type RegTypeX. Each element of the
     type corresponds to a CPU element.
 
   ■ The following statement defines RegType, available through Interrupt
     (the DS and ES registers are not included):
 
         TYPE RegType
              AX AS INTEGER
              BX AS INTEGER
              CX AS INTEGER
              DX AS INTEGER
              BP AS INTEGER
              SI AS INTEGER
              DI AS INTEGER
              FLAGS AS INTEGER
         END TYPE
 
   ■ The following statement defines RegTypeX, available through InterruptX:
 
         TYPE RegTypeX
              AX AS INTEGER
              BX AS INTEGER
              CX AS INTEGER
              DX AS INTEGER
              BP AS INTEGER
              SI AS INTEGER
              DI AS INTEGER
              FLAGS AS INTEGER
              DS AS INTEGER
              ES AS INTEGER
         END TYPE
 
   ■ InterruptX uses the values in the DS and ES registers. To use the
     current values of these registers, set the record elements to -1.