CALL SET
This page was last modified 18:16, 17 August 2021 by Mars2000you.

Contents

Effect

Selects the mode (CALL or LOCAL) and sets the break keys, that can be detected with CALL MRING.

Notes:

  • The LOCAL mode allows to log in yourself.
  • A break key will allow to interrupt RING and DIAL routines, just by pressing it. Without break key, the interruption of these routines can only happen with CTRL+STOP. It's not recommended, as this key combo will break a BASIC program without ON STOP GOSUB routine.

Syntax

CALL SET(<String>)

Parameter

<String> is a string of minimum 3 characters and maximum 4 characters, with using of CHR$(), juste like for the SPRITE$() instruction.

Position Meaning Characters
1 Mode CHR$(0) = CALL mode - all is sent over the phone and printed on the screen
CHR$(1) = LOCAL mode - all is only printed on the screen
2 Row of 2 break keys
in keyboard matrix
1st number is for 2nd break key (F when no 2nd break key)
2nd number is for 1st break key
3 Binary code in matrix
for 1st break key
Decimal conversion of the binary code
4 Binary code in matrix
for 2nd break key
Decimal conversion of the binary code


It is recommended to choose the break keys in the rows 6 to 8 of the keyboard matrix. See Keyboard Matrices for more info.

Example

Local mode + CODE key as break key + no 2nd break key (on an European machine):

CALL SET(CHR$(1)+CHR$(F6)+CHR$(16))

Explanations:

  • the CODE key is in row 6 of the keyboard matrix ----> F6 because no 2nd break key
  • the CODE key is in column 4 of the keyboard matrix --->in binary, we have 00010000 = 16 in decimal

Related to

CALL DIAL, CALL MRING, CALL TTYT

Compatibility

MDM-BASIC