[x16]
(Defined in x16.bas)
The X16_COPY_MV
subroutine copies an area of RAM to the VRAM.
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 RAMtargetAddr
is a number between 0 and 131071 and denotes the address in VRAM where the area will be copied tocntBytes
is the number of bytes to be copied, a number between 0 and 65535' Copy 1024 bytes from RAM $4000 TO VRAM $12000 CALL X16_COPY_MV ($4000, $12000, 1024)
Note
Interrupts will be disabled during copy.