[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]

System Specification for C65Fred BowenMarch 1, 1991

be restarted. Any error condition that occurs since the program was halted will prevent it from being restarted. Programs that cannot be restarted via CONT can be restarted with a GOTO, as long as you don't need to resume execution in the middle of a line of commands and you recall where the halt occurred.

Note that the STOP key can interrupt some commands in mid-execution, such as file I/O, drawing commands, etc. In such cases, programs may not run correctly after a CONTinue.

COPY - Copy disk files

          COPY ("file1"][,Dd1] To ("file2"1[,Dd2] [<ON|,>Udevice]

COPYs a disk file to another disk file. On single drive units, the filenames must be different. On dual drive units, copying can be done between two drives on the same unit, and the filenames can be the same or different. Pattern matching an be used.. Copying files from one unit to a different unit cannot be done; use a copy utility program in such cases. Only legal type files can be copied; direct access data, boot sectors, and partitions cannot be copied.

Refer to the DOS manual for your disk drive for specific details.

        COPY "file1" TO (f2$)           Copies "file1" to another file
                                        whose name is in F2$ on the
                                        same drive. Names must differ.
        COPY "file1",D0 TO D1,D9        Copies "file1" from unit 9
                                        drive-0 to unit 9 drive-1.
        COPY D0 TO D1                   Copies all files from drive-0
                                        to drive-1 on the same unit.
        COPY "???.src",D0 TO "*",D1     Copies all files on drive-0
                                        matching the pattern to a file
                                        of the same name on drive-1.

COS - Cosine function

                              COS (expression)

This function returns the cosine of X, where X is an angle measured in radians. The result is in the range -1 to 1.

             X = COS(pi)        Result is X-l

To get the cosine of an angle measured in degrees, multiply the numeric expression by pi/180.

CUT - Cut a graphic area into a temporary structure

                               CUT xoy,dx,dy
    
                       [*** NOT YET IMPLEMENTED ***]

DATA - Define program constant data to be accessed by READ command

                         DATA   [list of constants]

DATA statements store lists of data that will be accessed during program execution by a READ statement. The DATA statement can appear anywhere in the program, and it is never executed. BASIC keeps a pointer to the earliest un-READ DATA statement, and data is read sequentially from first item in a DATA statement to the last item,


[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]
This page has been created by Sami Rautiainen.
Read the small print. Last updated April 11, 2006.