GithubHelp home page GithubHelp logo

sblendorio / c64-emu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nippur72/c64-emu

0.0 1.0 0.0 1.93 MB

JavaScript 0.53% HTML 0.11% Batchfile 0.06% Assembly 0.23% C 92.01% TypeScript 7.06%

c64-emu's Introduction

C64 Javascript emulator

A JavaScript emulator for the Commodore 64 computer.

This emulator is based on the amazing work of Andre Weissflog

https://github.com/floooh/chips-test

Copyright (c) 2017 Andre Weissflog

Open the emulator directly in your browser: c64-emu

QUERYSTRING OPTIONS

  • wstcp=address:port websocket address and port of the websocket tcp tunnel service
  • joy=3 emulates joystick
  • load=program.prg loads and exectutes a program
  • b=<....> loads the specified string as a base64 binary encoded file (created with the function makeBase64())

LOADING AND SAVING FILES

  • prg files (.prg) are common C64 program files that are loaded in memory. The first two bytes contain the loading address.

Dragging & dropping a ".prg" file on the emulator's window causes the file to be loaded.

Once a file is loaded, it's also stored on the browser cache so that you don't have to drag&drop it again; you can use the load() function from the JavaScript console.

These are the commands you can type from the JavaScript console (F12 key):

  • load("file.prg" [,start]) loads a file at the specified address
  • save("file.prg" [,start, end]) saves a file
  • download("file.prg") gets the file as a browser download
  • remove("file.prg") remove file from browser's cache
  • dir() lists files on browser's cache
  • paste(text) paste a string of text (e.g. containing a BASIC program)
  • makeBase64("file.prg") encodes the file for use with the b= query string parameter (see)

MISC

  • c64.config(n) configures memory (n from 0 to 5)
  • c64.reset() resets the c64 (also via CTRL+ALT+BREAK keys)
  • c64.peek(address)
  • c64.poke(address, data)

c64-emu's People

Contributors

nippur72 avatar sblendorio avatar

Watchers

 avatar

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.