CALL CHGCPU
This page was last modified 10:44, 29 July 2021 by Mars2000you. Based on work by Gdx.

Contents

Effect

Sets the CPU mode on MSX Turbo R.

Syntax

CALL CHGCPU(<CpuMode>,<Variable>)

At least one parameter needs to be specified. Parameters can not end with a comma alone.

Parameters

<CpuMode> is the CPU mode you want to select.

<Variable> is the variable that take the value of current CPU mode (before switching when parameter <Mode> used).

The format of these two parameters is:

  • bit0~1 are used for CPU mode (0 for Z80, 1 for R800-ROM and 2 for R800-RAM)
  • bit2~6 are not used
  • bit7 is the status of CPU LED (0 for OFF and 1 for ON)

Note: If DM-System2 has been installed in R800-ROM mode, switching to R800-RAM mode is not possible due to reserved Memory Mapper pages.

Compatibility

DM-System2 BASIC