2 x12_getcmdparaptr function call – Sensoray 512 DOS User Manual
Page 17

17
6.2 X12_GETCMDPARAPTR function call
The X12_GETCMDPARAPTR function obtains a real mode far pointer to the parameter data structure.
A far pointer to the data permits the sending and returning of values to and from the driver pertinent to a
particular command.
Entry:
Register Description Value
SI Function number X11_ GETCMDPARAPTR + either CARD0 for the first
card or CARD1 for the second card.
Exit:
Register Description Value
DX:AX Segment-offset pair
pointer to parameter data.
Example:
#include “x12.h” //Included for 512 dos driver support
#include “dos.h” //Included for software interrupt support
.
.
.
X12PARAM _far *Param; //Declare a pointer to an X12PARAM object
union REGS regs;
.
.
.
regs.x.si = X12_GETCMDPARAPTR + CARD0; //Select the driver function
int86(X12INT,®s,®s); //Call the driver
Param = (X12PARAM _far *) MK_FP(regs.x.dx, regs.x.ax); //Make a pointer from the returned register values
- 2226 (15 pages)
- 2253 (19 pages)
- 616 (8 pages)
- 516 AVStream DirectShow (10 pages)
- 2246 (42 pages)
- 2246 (50 pages)
- 2255 (33 pages)
- 614 (17 pages)
- 611 (7 pages)
- 314 (14 pages)
- 614 Caption Overlay (18 pages)
- 311 (9 pages)
- 314 Quick Start (14 pages)
- 1012 (12 pages)
- 810 Quick Start (7 pages)
- 953-ET (17 pages)
- 911 (17 pages)
- 812 (16 pages)
- 810 (15 pages)
- 615 (8 pages)
- 615 (15 pages)
- 711 (36 pages)
- 609 (17 pages)
- 817 (11 pages)
- 817 (18 pages)
- 2411 (11 pages)
- 2250 (6 pages)
- 2263 (12 pages)
- 2263 (25 pages)
- 2480 (10 pages)
- 2453 (27 pages)
- 819 (11 pages)
- 516 (8 pages)
- 3011S (29 pages)
- 2444 (19 pages)
- 7429 (48 pages)
- 718 (22 pages)
- 518 (57 pages)
- 526 (29 pages)
- 526 (7 pages)
- 826 (76 pages)
- 2426 (17 pages)
- 721 (13 pages)
- 2410 (9 pages)
- 2600 (80 pages)