CMD COPY
This page was last modified 23:56, 22 June 2022 by Mars2000you.

This instruction is available in Hard Basic and SoftwareMemory Basic.

Contents

CMD COPY in Hard Basic

Effect

Uncompresses graphic data (VDT files) previously loaded in VRAM in their compressed form with BLOAD, S in Girl's Control.

This uncompression is made by using the appropriate protection key previously loaded in VRAM in compressed form with BLOAD, S and uncompressed by CMD GET, before using CMD COPY.

Syntax

CMD COPY

Example

10 CLEAR300,&HAFFF
20 BLOAD"GAL.COM",R
30 SCREEN 7 
40 SETPAGE,0:CLS
50 SETPAGE,1:CLS
60 GOSUB140
70 BLOAD"CHR1.COM",S
80 CMD GET &H4000,&HC00
90 BLOAD"NO1.VDT",S
100 CMD COPY
110 SET PAGE,0
120 CMD END
130 GOTO 130
140 RESTORE 200
150 FOR I=0 TO 15
160 READ B,R,G
170 COLOR=(I,R,G,B)
180 NEXT
190 RETURN
200 DATA 0,0,0
210 DATA 0,0,0
220 DATA 4,4,4
230 DATA 6,6,6
240 DATA 7,1,1
250 DATA 7,2,3
260 DATA 1,5,1
270 DATA 7,2,6
280 DATA 1,7,1
290 DATA 4,7,4
300 DATA 1,6,6
310 DATA 5,7,6
320 DATA 4,7,5
330 DATA 5,6,2
340 DATA 5,5,5
350 DATA 7,7,7

Related to

BLOAD, CMD END, CMD GET

Compatibility

Hard BASIC version 4


CMD COPY in SoftwareMemory Basic

Effect

Make a copy of the current 32kB RAM block in the other 32kB block (only on MSX1 computers with 64kB RAM).

Syntax

CMD SWITCH

Compatibility

SoftwareMemory BASIC only for MSX1 computers with 64kB RAM