62 Pamux User’s Guide
Call the Pamux Driver
The driver subroutine can be called from any place in your program any number of times. The CALL
statement is used to call machine language subroutines. The following is a sample statement that calls
the driver from Interpreted BASIC:
CALL Pamux (ERRCOD%,ADDRESS%,COMMAND%,POSITION%,VALUE%(0))
The equivalent call in QBasic is slightly different:
CALL ABSOLUTE (ERRCOD%,ADDRESS%,COMMAND%,POSITION%,VALUE%(0),0)
Note: that the VALUE% array is passed by including the first element of the array in the CALL statement.
The variables included in the CALL statement must be included in the statement in the order indicated
above. The actual name of the variables can be different as long as the variables are the correct type
(16-bit integers) and size. For example, the fifth parameter must be an eight-element integer array.
HINT: Placing the CALL statement within a subroutine in your program produces much more readable code and
reduces the chance for errors.
PROGRAMING WITH THE PAMUX DRIVER