home *** CD-ROM | disk | FTP | other *** search
- MX5 Extended FOSSIL Functions (Int 14h)
- (Also see FOSSIL.DOC for complete list of supported functions.)
-
- AH = 0E0h (MX5 Extended FOSSIL Functions)
- AL = Subfunction as Follows:
-
- -------------------------------------------------------------
- 00h Return MNP Status Block
- -------------------------------------------------------------
-
- Purpose: Returns MNP related information.
-
-
- On Entry Register Contents
- -------- -----------------
- AH E0h
- AL 00h
- DX Port (0-3)
-
- On Return Register Contents
- --------- -----------------
- ES:BX pointer to a structure as follows:
-
- mnp_active db ? ;0=no, 1=yes
- level db ? ;MNP level (2,4,5)
- series_id db ? ;from other MNP entity
- tot_tx dd ? ;total packets
- dup_tx dd ? ;number of duplicates
- max_tx dd ? ;max speed
- tot_rx dd ? ;total packets
- dup_rx dd ? ;number of duplicates
- max_rx dd ? ;max speed
-
- -------------------------------------------------------------
- 01h Get/Set MNP Level
- -------------------------------------------------------------
-
- Purpose: Gets or Sets the Maximum MNP level.
-
- On Entry Register Contents
- -------- -----------------
- AH E0h
- AL 01h
- BL MNP Level
- 00h; None
- 02h; Level 2
- 04h; Level 4
- 05h; Level 5 (default)
- BH 00h; Get MNP Level
- 01h; Set MNP Level
- DX Port (0-3)
-
- On Return Register Contents
- --------- -----------------
- BL MNP Level (see BL above)
-
- -------------------------------------------------------------
- 02h Get/Set MNP Orig/Ans Mode
- -------------------------------------------------------------
-
- Purpose: Gets or Sets Originate or Answer mode for
- an MNP connection.
-
- On Entry Register Contents
- -------- -----------------
- AH E0h
- AL 02h
- BL Orig/Ans Mode
- 00h; Orig Mode (default)
- 01h; Answer Mode
- BH 00h; Get Mode
- 01h; Set Mode
- DX Port (0-3)
-
- On Return Register Contents
- --------- -----------------
- BL Mode (see BL above)
-
- -------------------------------------------------------------
- 03h Get/Set MNP Wait Tics
- -------------------------------------------------------------
-
- Purpose: Gets or Sets number of tics (55 msecs/tic)
- after Carrier Detect raises until an MNP
- connection is attempted.
-
- On Entry Register Contents
- -------- -----------------
- AH E0h
- AL 03h
- BL MNP Wait Tics (default=14)
- BH 0h; Get MNP Wait Tics
- 1h; Set MNP Wait Tics
- DX Port (0-3)
-
- On Return Register Contents
- --------- -----------------
- BL MNP Wait Tics (see BL above)
-
- -------------------------------------------------------------
- 04h Get/Set MNP Connect Sound Level
- -------------------------------------------------------------
-
- Purpose: Gets or Sets wether MX5 will "play"
- a tune after an MNP connection. If an
- MNP connection is successful, 3 high
- beeps are played. If the MNP connection
- is not successful, a high/low beep is
- played.
-
- On Entry Register Contents
- -------- -----------------
- AH E0h
- AL 03h
- BL MNP Sound
- 00h; Sounds are not played
- 01h; Sounds are played (default)
- BH 00h; Get Sound state
- 01h; Set Sound state
- DX Port (0-3)
-
- On Return Register Contents
- --------- -----------------
- BL MNP Sound state (see BL above)
-
- -------------------------------------------------------------
- 05h Remove MX5 from Memory
- -------------------------------------------------------------
-
- Purpose: Requests MX5 to remove itself from memory.
- MX5 will de-initalize the current com port
- (hanging up if online), restore all hooked
- interupt vectors, and return it's MCB
- address so it may be freed.
-
- **** Note: Place the value returned in BX into ES and
- **** call DOS function 49h to release MX5's MCB
- **** (see example below).
-
- On Entry Register Contents
- -------- -----------------
- AH E0h
- AL 05h
-
- On Return Register Contents
- --------- -----------------
- BX MCB segment address or 0 if unsuccessful
-
-
- Example: mov ah,0e0h ;tell MX5 to uninstall
- mov al,5
- int 14h
- cmp bx,0
- je cant_uninstall ;jump if unsuccessful
- mov es,bx
- mov ah,49h ;free MX5's memory
- int 21h
-
- -------------------------------------------------------------
- 06h Return MX5 Version Number
- -------------------------------------------------------------
-
- Purpose: Returns the major and minor version of MX5
-
- On Entry Register Contents
- -------- -----------------
- AH E0h
- AL 06h
- BX 00h
-
- On Return Register Contents
- --------- -----------------
- AH Major version number
- AL Minor version number
- BX "MX" (4D58h)
-
- Example: mov ah,0e0h ;see if MX5 is installed
- mov al,6
- int 14h
- cmp bx,'MX'
- jne not_installed ;jump if MX5 not installed
-
- -------------------------------------------------------------
- 07h Wait CX Tics
- -------------------------------------------------------------
-
- Purpose: Waits the number of tics specified in CX
-
- On Entry Register Contents
- -------- -----------------
- AH E0h
- AL 07h
- CX Tics to Wait
-
- On Return Register Contents
- --------- -----------------
- nothing
-
-
-
-