Difference between revisions of "INTERRUPTX"

From QB64 Wiki
Jump to navigation Jump to search
imported>Stylin
(link fixup from page move)
imported>Clippy
Line 14: Line 14:
  
  
:TYPE RegTypeX
+
''RegType.BI''  '$INCLUDE file
::ax    AS INTEGER
+
{{TextStart}}
::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
 
  
 +
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
+
{{TextEnd}}
 +
{{CodeStart}}
  
 +
{{Cl|REM}} {{Cl|$INCLUDE}}: 'RegType.BI'  'Use only with the RegType or {{Cl|QB.BI}} files
  
 +
{{Cl|DIM}} {{Cl|SHARED}} inregs {{Cl|AS}} RegTypeX, outregs AS RegTypeX
  
 +
{{CodeEnd}}
  
''See also:'' [[$INCLUDE|$INCLUDE:]], [[QB.BI]], [[CALL ABSOLUTE]], [[INTERRUPT]]
 
  
  
''Download Ethan Winer's FREE Qbasic Book and Programs:'' [http://www.ethanwiner.com/fullmoon.html WINER.ZIP]
+
''See also:''  
 +
 
 +
[[$INCLUDE|$INCLUDE:]]
 +
 
 +
[[QB.BI]], [[CALL ABSOLUTE]]
 +
 
 +
[[INTERRUPT]]
  
  
==Navigation:==
+
''Download Ethan Winer's FREE Qbasic Book and Programs:'' [http://www.ethanwiner.com/fullmoon.html WINER.ZIP]
  
[[Keyword_Reference_-_Alphabetical|Go to Keyword Reference - Alphabetical]]
 
  
[[Keyword Reference - By usage|Go to Keyword Reference - By usage]]
+
{{PageNavigation}}

Revision as of 05:49, 3 August 2010

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


Syntax: CALL INTERRUPTX(intnum, inregs, outregs)


  • Available on QuickBasic versions 4 up, it requires the library to be loaded. Command line: QB.EXE /L in QB4.5 .
  • 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.
  • The TYPE definition below will work for both INTERRUPT and INTERRUPTX statement calls:


RegType.BI '$INCLUDE file

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:

$INCLUDE:

QB.BI, CALL ABSOLUTE

INTERRUPT


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



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