Contents |
Effect
Copies a block of the RAM to the VRAM.
It can be used in any RAM page, also pages 0 and 1.
Syntax
CALL MEMVRM(<RAM-StartAddress>,<VRAM-DestinationAddress>,<Bytes>,<VblankFlag>)
Parameters
<RAM-StartAddress> can vary between &H0000 and &HFFFF.
<VRAM-DestinationAddress> can vary between &H0000 and &H3FFF. It is recommended to use the BASE instruction for specific data of a VRAM table.
<Bytes> is a number to specify how many bytes need to be copied, starting at the specified <RAM-StartAddress> and being copied with beginning at the specified <VRAM-DestinationAddress>.
<VblankFlag> is a number to indicate if it is required to wait for vblank before data copy (what corresponds to an assembler HALT command). 0 = no wait, other numbers = wait.
Example
_MEMVRM(&H100,BASE(12),6144,0)
Related to
BASE, CALL BOXMEMCPY, CALL BOXMEMVRM, CALL FILRAM, CALL FILVRM, CALL MEMCPY, CALL TILERAM, CALL TILEVRM, CALL VRMMEM, PEEK, VPOKE
