Giter Club home page Giter Club logo

joeyshepard / robotgame Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 2.0 12.87 MB

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

Home Page: http://calc6502.com/RobotGame/summary.html

Assembly 34.67% Python 47.45% C 1.75% Objective-C 0.04% HTML 6.96% Java 0.03% PowerShell 0.10% Batchfile 0.03% Forth 7.13% Makefile 0.02% Shell 0.01% AGS Script 0.01% TeX 0.49% SWIG 1.34%
forth c 6502 65c02 assembly javascript python cc65 taliforth2

robotgame's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.