Robot Game is a project to compare the performance of several programming languages for the 65C02 processor. The four languages being compared are:
- Traditional assembly
- Assembly optimized with my 65C02 Assembly Optimizer
- C compiled with the CC65 C compiler
- Forth compiled with a modified version of Tali Forth 2
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
The results of the comparison and more information about the project can be found on my website.
- 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.