DEF USR
This page was last modified 21:00, 29 May 2023 by Mars2000you. Based on work by Gdx 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