Skip to content

    C64

    Created by
    mattatreplit
    mattatreplit

    This is a functional Commodore 64 development environment with demonstration C and ASM programs. A Makefile is provided and the VICE emulator is used to run the system for testing.

    How to Run Programs

    Once VICE loads, at the BASIC prompt:

    LOAD "ASMPROG",8

    Once the program loads, you can type:

    RUN

    to run the program.

    To load the C program, replace the first LOAD with this:

    LOAD "CPROG",8

    Writing BASIC

    You can also type your BASIC programs directly into the emulator, for example:

    10 PRINT "HELLO WORLD"
    20 GOTO 10
    RUN

    Hit the Escape key to stop the program running.

    Save & Load (requires fork!)

    Once you have written a BASIC program in the emulator, you may want to save it.

    The myprogs.d64 disk is loaded as drive 9 in the emulator for this purpose.

    Let's take this BASIC program:

    10 PRINT "HELLO WORLD"

    To save,

    SAVE "HELLO",9

    Once saved, you can load the program again after a restart:

    LOAD "HELLO",9
    LIST
    Preview