Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nippur72/c64-emu
https://github.com/nippur72/c64-emu
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nippur72/c64-emu
- Owner: nippur72
- Created: 2020-11-29T11:31:50.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-21T14:10:21.000Z (about 1 year ago)
- Last Synced: 2024-06-10T19:11:16.221Z (5 months ago)
- Language: C
- Size: 1.88 MB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-commodore-resources - C64 Javascript emulator
README
# 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](https://nippur72.github.io/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)`