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

System Specification for C65Fred BowenMarch 1, 1991

respond to interrupts. Use the BUMP and RSPPOS functions to evaluate. the results of sprite collisions, and the LPEN function to evaluate the position of a light pen.

    10 COLLISION 1,90
    20 SPRITE1,1:MOVSPRI,100,100:MOVSPRI,0#5
    30 SPRITE2,1:MOVSPR2,100,150:MOVSPR2,180#5
    40 DO:PRINT:LOOP
    50 END
    90 PRINT"BUMP! ";:RETURN

In this example, sprite-to-sprite collisions are enabled (line 10), and two sprites are turned on, positioned, and made to move (lines 20 & 30). One sprite moves up and the other moves down while the program does nothing other than print blank lines to the screen (line 40). When the sprite collide, the subroutine at line 90 is called, it prints "BUMP!", and the computer goes back to printing blank lines.

COLOR - Enable or disable screen color (character attribute) control

                               COLOR <ON|OFF>

COLOR turns on or turns off the screen editor's attribute handler. When colors are turned off, whatever character attributes are being currently displayed (text color, underline, flash, etc.) are "stuck". The main purpose for doing this is to speed up screen handling (writing to the screen or scrolling the screen) about two times, since the screen editor no longer has to manipulate the attibutes. Note that only FOREGROUND colors (and special VIC attributes) are affected. To change screen colors, use the following commands:

    FOREGROUND color#       Set Foreground color (text)
    HIGHLIGHT color#        Set Highlight color (text)
    BACKGROUND color#       Set VIC Background color
    BORDER color#           Set VIC Border color

CONCAT - Concatenate (merge) two sequential disk files

       CONCAT "file1"[,Ddrive1] TO "file2"[,Ddrive2] [<ON|,>Udevice]

CONCAT merges two SEQuential files, appending the contents of "filel" to "file2". Upon completion, 'file2' contains the data of both files, and "filel" is unchanged. Both files muqt exist on drives of the the same unit, and pattern matching is not allowed.

Some disk drives handle CONCAT differently; refer to the DOS manual for specific details.

CONT - Continue program execution

                                    CONT

CONTinue is used to re-start a BASIC program that was halted by a STOP or END statement, or interrupted by the STOP key. The program will resume at the statement following the STOP or END instruction, or at the statement after the one that-was interrupted by the STOP key. CONT is typically used during program debugging. You can look at and alter variables while the program is halted.

Programs halted as a result of an untrapped error condition cannot be CONTinued. Programs that have been edited in any way cannot


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