QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The INTERRUPT statement is an assembly routine for accessing computer information registers.

Legacy Support

Syntax

CALL INTERRUPT(intNum, inRegs, outRegs)

Parameter(s)

QBasic


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 


DIM SHARED inregs AS RegTypeX, outregs AS RegTypeX

QBasic’s RegType.BI $INCLUDE file can be used by INTERRUPT or INTERRUPTX

See Also