X16_COPY_MV

[x16]

(Defined in x16.bas)

The X16_COPY_MV subroutine copies an area of RAM to the VRAM.

Subroutine header

  SUB X16_COPY_MV (srcAddr AS WORD, targetAddr AS LONG, cntBytes AS WORD) _
  SHARED STATIC

Where

  • scrAddr is a number between 0 and 65535 and denotes the start of the memory area in RAM
  • targetAddr is a number between 0 and 131071 and denotes the address in VRAM where the area will be copied to
  • cntBytes is the number of bytes to be copied, a number between 0 and 65535

Example

  ' Copy 1024 bytes from RAM $4000 TO VRAM $12000
  CALL X16_COPY_MV ($4000, $12000, 1024)

Note

Interrupts will be disabled during copy.