Difference between revisions of "INTERRUPTX"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
imported>SMcNeill
(Using "currently" implies work is being done to emulate more legacy registers when that is not true. New functionality has already been coded using _MOUSE functions.)
Line 11: Line 11:
 
* Inregs are the values placed into the call and outregs are the register return values.
 
* Inregs are the values placed into the call and outregs are the register return values.
 
* INTERRUPTX can use all of the TYPE values when they are required.
 
* INTERRUPTX can use all of the TYPE values when they are required.
* '''NOTE: QB64 does not currently support INT 33h mouse functions above 3 or INT requests other than 33'''
+
* '''NOTE: Registers are emulated in QB64; there is no support for INT 33h mouse functions above 3 or INT requests other than 33'''
  
  

Revision as of 15:35, 31 August 2017

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


Syntax

CALL INTERRUPTX(intnum, inregs, outregs)


  • Interrupt number is the interrupt reference vector table address. See: Ralf Brown's Interrupt List
  • Inregs are the values placed into the call and outregs are the register return values.
  • INTERRUPTX can use all of the TYPE values when they are required.
  • NOTE: Registers are emulated in QB64; there is no support for INT 33h mouse functions above 3 or INT requests other than 33


QuickBasic:

  • Available on QuickBasic versions 4 up, it requires the library to be loaded. Command line: QB.EXE /L in QB4.5 .


  • The TYPE definition below will work for both INTERRUPT and INTERRUPTX statement calls

RegType.BI  '$INCLUDE file can be used by INTERRUPT or 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

REM $INCLUDE: 'RegType.BI' 'Use only with the RegType or QB.BI files DIM SHARED inregs AS RegTypeX, outregs AS RegTypeX


See also:


Download Ethan Winer's FREE Qbasic Book and Programs: WINER.ZIP



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page