CALL MRING
This page was last modified 21:46, 17 August 2021 by Mars2000you.

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

Contents

Effect

Checks whether the phone rings and returns the result in a variable.

This instruction must be in a "loop" repeatedly called to see which code is returned.

Syntax

CALL MRING(<Variable>)

Parameter

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

  • if value=0 the phone rings
  • if value=1 the phone does not ring or there is no telephone
  • if value=2 the routine is interrupted because the user has pressed down the break key
    • with MDM-Basic, it's the key defined with CALL SET
    • with NewModem Basic, it can only be the CODE key - see CALL BREAK

Example

CALL CHKMDM(R%): PRINT R%

Related to

Compatibility

MDM-BASIC, NewModem BASIC