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

System Specification for C65Fred BowenMarch 1, 1991

or at the end of the file. The area to be compared must be confined to the indicated memory bank.

    BVERIFY "sprites", P(dec("600")), B0

CATALOG - see DIR (DIRECTORY) command

CHANGE - Find text in a BASIC program and change it.

                CHANGE :stringl: TO :string2: [,line_range]
                CHANGE "stringl" TO "string2" [,line_range]

This is a direct (edit) mode command. CHANGE looks for all occurances of string1 in the program, displays each line containing string1 with the target string highlighted, and prompts the user for one of the following:

    Y<return>           Yes, change it and look for more
    N<return>           No, don't change it, but look for more
    *<return>           Yes, change all occurances from here on
    <return>            Exit command now, don't change anything

Any character can be used for the string delimiter, but there are side effects: see comments at FIND command. If the line number range is not given (see LIST for description of range parameter), the entire program is searched.

CHAR - Draw a character string on a graphic screen

    CHAR column, row, height, width, direction, "string" [,charsetadr]

                  [*** THIS IS SUBJECT TO CHANGE ***]

CHAR displays text on a graphic screen at a given location. The character height, width, and direction are programmable. The parameters are defined as:

    column:       Character position:
                          For 320 wide screens, 0-39
                          For 640 wide screens, 0-79
    row:          Pixel line:
                          For 200 line screens, 0-199
                          For 400 line screens, 0-399
    height:       Multiple of 8-bit character hei4ht:
                          1= 8 pixels high, 2= 16 pixels, etc.
    width:        Multiple of 8-bit character width:
                          1= 8 pixels high, 2= 16 pixels, etc.
    direction:    Bit mask:       B0= up
                                  B1= right
                                  B2= down
                                  B3= left

The string can consist of any printable character, as defined by the VIC character set. Non-text characters are ignored. If the address if the character set is not given, the upper/lower ROM character set is used ($29800).

    CHAR 18,96, 1,1,2, "C64D", DEC("9000-)

The above example will draw the characters "C65D" in the center of a 320x200 pixel screen using the system's uppercase/graphic character set.


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