GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - EgonOlsen71/basicv2: A Commodore (CBM) BASIC V2 interpreter/compiler written in Java

BranchesTags
Open more actions menu

Latest commit

 

History

2,112 Commits
2,112 Commits

Folders and files

NameName
Last commit message
Last commit date
dist
dist
 
 
python
python
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CONSOLE SUPPORT.txt
CONSOLE SUPPORT.txt
 
 
GRAPHICS BASIC.txt
GRAPHICS BASIC.txt
 
 
LICENSE.txt
LICENSE.txt
 
 
MOSPEED native compiler.txt
MOSPEED native compiler.txt
 
 
README.md
README.md
 
 
affine.png
affine.png
 
 
affine_native.png
affine_native.png
 
 
build.cmd
build.cmd
 
 
build_jar.xml
build_jar.xml
 
 
ellipse.png
ellipse.png
 
 
fractal_hires.png
fractal_hires.png
 
 
fractal_multicolor.png
fractal_multicolor.png
 
 
fractal_multicolor2.png
fractal_multicolor2.png
 
 
fractal_multicolor_native.png
fractal_multicolor_native.png
 
 
fractal_native.png
fractal_native.png
 
 
graphics3d.png
graphics3d.png
 
 
install_mvn.cmd
install_mvn.cmd
 
 
mandelbrot.png
mandelbrot.png
 
 
mospeed.cmd
mospeed.cmd
 
 
plotted.png
plotted.png
 
 
pom.xml
pom.xml
 
 
run_gui.cmd
run_gui.cmd
 
 

Repository files navigation

BasicV2

Overview

BasicV2 is a Java-based interpreter and compiler for Commodore BASIC V2, the dialect used on systems like the C64 and VIC-20.

It allows you to run and compile BASIC V2 and ANSI BASIC programs in a modern Java environment without relying on the original Commodore BASIC implementation. Instead, it is a complete reimplementation written in Java, with additional support for 6502 assembly.

Features

  • Compile and run BASIC V2 and ANSI BASIC programs in Java
  • Cross-compile programs for C64, VIC-20, and Commander X16 using MoSpeed
  • Includes a 6502 assembler and CPU emulator
  • No external Java dependencies (stand-alone project)
  • Can run programs via the command line or within Java applications
  • Includes basic HTML templating support
  • Includes GRAPHICS BASIC extension for enhanced graphics
  • Includes a BASIC shell/editor for writing and running programs (see basicshell-package)
  • Includes compile backends for PowerShell, JavaScript, and Python

Getting Started

You can use BasicV2 in two main ways:

  • Run BASIC programs within a Java application using the provided runtime
  • Use the MoSpeed cross-compiler to compile programs for systems like the C64, VIC-20, or Commander X16 and run them on real hardware or in an emulator

The MoSpeed compiler is available as a command-line tool in the dist directory: https://github.com/EgonOlsen71/basicv2/tree/master/dist

It can be used independently without cloning the full repository.

Links and Resources

  • MoSpeed documentation: https://www.c64-wiki.com/wiki/MOSpeed
  • Online MoSpeed tool: https://jpct.de/mospeed
  • BASIC shell/editor project: https://github.com/nietoperz809/C64Screen
  • Floating point optimizations by Michael Jørgensen: https://github.com/MJoergen
  • Third-party UI (Windows/Linux): https://github.com/Error504TimeOut/MoSpeedUI/releases

About

A Commodore (CBM) BASIC V2 interpreter/compiler written in Java

egonolsen71.github.io/basicv2/

Topics

6502basicc64commandercommodorecompilerinterpreterjavajavascriptmospeedpowershellpythonvc20vic20x16

Resources

Readme
License
Activity

Stars

105 stars

Watchers

11 watching

Forks

19 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.