DEF USR
This page was last modified 11:46, 19 May 2020 by Gdx. Based on work by Mars2000you and Rderooy and others.

Contents

Effect

Defines the start address of a machine-language routine for later use in MSX-BASIC. Up to 10 different routines can be used.

Syntax

DEF USR <Number>=<Address>

Parameters

<Number> can range from 0 to 9. When omitted, 0 is assumed.

<Address> is the start address of the machine-language routine.

Example

10 DEF USR1=&H156:A=USR1(0) ' To clear keyboard buffer

Related to

USR()

Compatibility

MSX-BASIC 1.0 or higher