Contents |
Effect
This instruction allows to execute easily the command LMMV (Logical Move to Memory from VDP) of VDP in Basic. It fills an rectangular area in the VRAM with a value using a 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 LMMV (<X0>,<Y0>)-STEP(<X1>,<Y1>),<V>,<LO>
The last parameter is optional. Parameters can not end with a comma alone.
Parameters
<X0> and <Y0> are coordinates of first corner (X0=0~255/511, Y0=0~511/1023).
<X1> and <Y1> are coordinates of the opposite 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.
<V> is a value between 0 and 255. Value for 2 pixels in SCREEN 5/7 and 4 pixels in SCREEN6. (See example)
<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 LMMM, CALL YMMM, CALL VCOPY