COPY_B

Syntax

COPY_B adr1, adr2, n or

COPY_B adr1, n TO adr2

Location BTool

The command COPY_B copies n bytes from the memory address adr1 to adr2 without any restrictions. The programmer has to ensure that there is sufficient room at the specified destination memory location (which must be free useable memory).

Example

100 RANDOMISE: n=10
110 a1=ALCHP(6*n): a2=ALCHP(6*n)
120 FOR i=0 TO 6*(n-1) STEP 6: POKE_F a1+i,RND
130 COPY_B a1,6*n TO a2
140 FOR i=0 TO 6*(n-1) STEP 6: PRINT PEEK_F(a2+i)
150 RECHP a1: RECHP a2

CROSS-REFERENCE

COPY_W, COPY_L, TTPOKEM and XCHANGE