Skip to content
Repl icon
C64
mattiselin
mattiselin
Published on Jan 20, 2022
#nix#vintage#commodore64#assembly#c

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
Similar repls
pokeemerald
pokeemerald
demcrepl
demcrepl
Decompilation of Pokémon Emerald https://github.com/pret/pokeemerald
#nix
+3
TRABAJO LISTADO DE PERSONAS
TRABAJO LISTADO DE PERSONASSe ordena alfabéticamente un listado de personas, la información se ingresa por teclado, y se puede buscar datos de una persona por apellido o por documento.
#c
+1
kaboom
kaboomKaboom is a super game
3comments
mattiselin
mattiselin6 months ago

Update! This is now available in template form here: https://replit.com/@mattiselin/Commodore-64?v=1 - including code intelligence for C code and some other cleanups.

gbraad
gbraad6 months ago

Also have a look at the README.md as this offers a build toolchain to deal with asm and and cfiles that get compiled and inserted in a virtual disk.

You can load the programs with

LOAD "ASMPROG",8 or LOAD "CPROG",8 followed by RUN to start them...

... and all of this without

READY. LOAD PRESS PLAY ON TAPE LOADING... READY. RUN

Thanks!

amasad
amasad6 months ago

My favorite program to run is the maze: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10

Screen Shot 2021-11-23 at 10.50.40 AM

p.s. don't forget to type RUN after you're done.