Skip to content

Example game to compare performance of C, assembly, and Forth that runs on 65C02 emulator in browser

Notifications You must be signed in to change notification settings

JoeyShepard/RobotGame

Repository files navigation

Screenshot of Robot Game

Overview

Robot Game is a project to compare the performance of several programming languages for the 65C02 processor. The four languages being compared are:

Each version of the game runs on a JavaScript-based 65C02 simulator in the browser:

Play Robot Game - Traditional assembly
Play Robot Game - Optimized assembly
Play Robot Game - CC65 version
Play Robot Game - Tali Forth 2 version

Results

The results of the comparison and more information about the project can be found on my website.

Directories

  • python - The original version of the game in Python. Requires Python 3 and PyGame 1.9.6.
  • asset_extraction - A modified version of the original game in Python that outputs game data in text format for porting to other versions.
  • traditional_assembly - Port of the game from Python to 65C02 assembly. Assembled with Macroassembler AS 1.42.
  • optimized_assembly - Port of the game from Python to 65C02 assembly optimized with my 65C02 Assembly Optimizer. Relies on NASM for macro expansion before optimizing and Macroassembler AS 1.42 to assemble after optmizing.
  • c - Port of the game from Python to C. Compiled with CC65 C compiler.
  • forth - Port of the game from Python to Tali Forth 2. This folder also contains a reduced version of Tali Forth 2 that is small enough to fit in the memory of the simulator.

About

Example game to compare performance of C, assembly, and Forth that runs on 65C02 emulator in browser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published