Difference between revisions of "CALL ABSOLUTE"

From QB64 Wiki
Jump to navigation Jump to search
imported>SMcNeill
(Style guidelines; example doesn't work since version .954 and has been supressed.)
imported>SMcNeill
(style guidelines)
 
Line 4: Line 4:
 
{{PageSyntax}}
 
{{PageSyntax}}
 
: [[CALL ABSOLUTE]]([{{Parameter|argumentList}},] {{Parameter|integerOffset}})
 
: [[CALL ABSOLUTE]]([{{Parameter|argumentList}},] {{Parameter|integerOffset}})
 +
 +
 +
==Legacy support==
 +
* [[CALL ABSOLUTE]] is implemented to support older code and is not recommended practice. To handle mouse input, the '''use [[_MOUSEINPUT]] and related functions'''.
  
  
Line 10: Line 14:
 
* {{Parameter|argumentList}} contains the list of arguments passed to the procedure.
 
* {{Parameter|argumentList}} contains the list of arguments passed to the procedure.
 
* {{Parameter|integerOffset}} contains the offset from the current code segment, set by [[DEF SEG]] and [[SADD]], to the starting location of the called procedure.
 
* {{Parameter|integerOffset}} contains the offset from the current code segment, set by [[DEF SEG]] and [[SADD]], to the starting location of the called procedure.
* Qbasic and '''QB64''' have the ABSOLUTE statement built in and require no library, like QuickBASIC did.
+
* QBasic and '''QB64''' have the ABSOLUTE statement built in and require no library, like QuickBASIC did.
 
* '''NOTE: QB64 does not support INT 33h mouse functions above 3 or [[BYVAL]] in an ABSOLUTE statement. Registers are emulated.'''
 
* '''NOTE: QB64 does not support INT 33h mouse functions above 3 or [[BYVAL]] in an ABSOLUTE statement. Registers are emulated.'''
* To handle mouse input, the '''recommended practice is to use [[_MOUSEINPUT]] and related functions'''.
 
  
  

Latest revision as of 02:50, 10 September 2017

CALL ABSOLUTE is used to access interrupts on the computer or execute assembly type procedures.


Syntax

CALL ABSOLUTE([argumentList,] integerOffset)


Legacy support

  • CALL ABSOLUTE is implemented to support older code and is not recommended practice. To handle mouse input, the use _MOUSEINPUT and related functions.


Description

  • CALL and parameter brackets are required in the statement.
  • argumentList contains the list of arguments passed to the procedure.
  • integerOffset contains the offset from the current code segment, set by DEF SEG and SADD, to the starting location of the called procedure.
  • QBasic and QB64 have the ABSOLUTE statement built in and require no library, like QuickBASIC did.
  • NOTE: QB64 does not support INT 33h mouse functions above 3 or BYVAL in an ABSOLUTE statement. Registers are emulated.


See also



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page