jonathanpenn / pce

PCE.js emulator for Mac Plus, IBM PC, & Atari ST in the browser (and PCE repo mirror)

Home Page:http://jamesfriend.com.au/pce-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PCE.js

PCE.js runs classic computers in the browser. It's a port of Hampa Hug's excellent PCE emulator, put together by James Friend.

PCE.js currently emulates Mac Plus, IBM PC/XT and Atari ST functionally in recent versions of Chrome and Firefox.

More info:

PCE.js Mac Plus

Installing from npm

PCE.js is available from npm as a set of browserify compatible node packages.

There is one for each emulator build:

See each of the above links for install and usage instructions

How to build PCE.js from source

Note: This is a bit complicated. I recommend instead just using the npm packages listed above, unless you really want to hack on the C source of the emulators themselves (which is not necessary if you just want to get them running on a page).

Make sure you've installed node.js

Run npm install in this directory (the source root). This should install the required node.js pacakges. Install the required command line tools with

npm install -g grunt coffee-script browserify@4.x http-server

Clone my fork of Emscripten and checkout the pcejs-fastcomp branch. Set it up according to the directions for running emscripten-fastcomp. Add the path to the emscripten fork repo to your $PATH so you can run emcc.

Similarly you should be working with my fork of PCE on the pcejs branch, but presumably that's where you're reading this right now.

Most of the build process involves running Grunt tasks. Run grunt --help for a list of possiblities.

Run grunt build:[target] to build the emulator, where [target] is macplus, ibmpc or atarist. This will output a pce-[target].js file to dist/.

Once the output file for the target you're interested in has been built, you can:

  • run the examples in the example/ directory with example/run_example.sh [target]
  • build the npm packages in the commonjs/[target]/ directories using their respective prepublish.sh scripts

About

PCE.js emulator for Mac Plus, IBM PC, & Atari ST in the browser (and PCE repo mirror)

http://jamesfriend.com.au/pce-js

License:GNU General Public License v2.0


Languages

Language:C 72.0%Language:JavaScript 26.4%Language:Assembly 0.9%Language:Shell 0.3%Language:C++ 0.2%Language:CoffeeScript 0.1%Language:Objective-C 0.0%