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

Contents

Effect

This instruction allows to execute easily the command LMMM (Logical Move to Memory from memory) of VDP in Basic. It makes a copy of an rectangular area to another area in the VRAM with logical operator. The advantage over the basic instruction standard is that the coordinates are not clipped. Any VRAM area is usable regardless of the pages.

Note: This instruction is not available in SCREEN 0 to 4. It is available in SCREEN 9 but requires advanced knowledge of this mode to use.

Syntax

CALL LMMM (<X0>,<Y0>)-STEP(<X1>,<Y1>) TO (<X2>,<Y2>),<LO>

The last parameter is optional. Parameters can not end with a comma alone.

Parameters

<X0> and <Y0> are coordinates of first corner of source area (X0=0~255/511, Y0=0~511/1023).

<X1> and <Y1> are coordinates of the opposite corner of source area (X0=0~255/511, Y0=0~511/1023).

STEP parameter changes X1 and Y1 coordinates to relative coordinates (and therefore allows the use of negative values) when specified.

<X2> and <Y2> are coordinates of the upper-left corner of destination area (X0=0~255/511, Y0=0~511/1023).

<LO> is the logical operator that you want use. (PSET (default), AND, OR, XOR, NOT, TPSET, TAND, TOR, TXOR, TNOT)

Related to

CALL CELLO, CALL HMMV, CALL HMMM, CALL LMMV, CALL YMMM, CALL VCOPY

Compatibility

DM-System2 BASIC