CALL CALL
This page was last modified 23:33, 17 May 2020 by Mars2000you. Based on work by Gdx.

Contents

Effect

Calls a machine language routine in Main-RAM unless the address is less than 2000h, in that case the call is in the Main-ROM to allow you to call the BIOS routines.

Syntax

CALL CALL (<Address><AF>,<HL>,<DE>,<BC>,<IX>,<IY>)

At least <Address> and another parameter need to be specified. Parameters can not end with a comma alone.

Parameters

<Address> is the start address of the routine in RAM (8000h~FFFFh) or in Main-ROM (0~7FFFH).

The parameters <AF>,<HL>,<DE>,<BC>,<IX> and <IY> are values to be put in corresponding registers of Z80/R800 to execute the routine. If <AF> is less than 256, the value will be loaded only in register A, F will not change.

Related to

DEF USR, USR()

Compatibility

DM-System2 BASIC