CALL CHKMDM
This page was last modified 21:41, 17 August 2021 by Mars2000you.

This instruction is available in MDM-Basic and NewModem Basic.

Contents

Effect

Checks the presence of a modem and returns the result in a variable.

Note: Always use this instruction before any other one, so you will avoid problems with the BASIC extension.

Syntax

CALL CHKMDM(<Variable>)

Parameter

<Variable> stores the result of the detection. It must be an integer variable.

If value=0 then modem is present otherwise there is no modem.

Example

CALL CHKMDM(T%): PRINT T%

Related to

CALL MSTART, CALL MSTOP

Compatibility

MDM-BASIC, NewModem BASIC