Javascript Gameboy
See the codeAn emulator for the Gameboy and Gameboy Color written in Javascript.
Nowhere close to working yet and is very much a work in progress. Will keep notes here as necessary
You can view a live demo at http://alexcrichton.com/jba/
You need:
bundler gem
Gemfileclosure command for the google closure compiler
brew install closure-compilerThen, run bundle in the checked out directory
First, make sure the server is running via thor server or
ruby test/server.rb. Then visit http://localhost:4567/roms and the roms
will be available for playing.
Run the thor server command and then visit http://localhost:4567 in a web browser to run all of the tests
Before you run the tests, make sure that you regenerate generated files (see below).
If you have the livereload extension, you can connect to the livereload server (run through thor) and the page will be automatically refreshed whenever a file changes
To optimize slightly, the z80 instruction set is a generated javascript file. To change this, modify one of:
src/z80/templates/instructions.ttlib/jba/generator.rbThe ruby file has the meat of the generation. After modifying the files, file can be regenerated by running
thor jba:gen_z80
Or, if you would like the file automatically regenerated when the above files are modified, you can run
guard
in the root directory
jba.min.jsTo generate the minified form of the javascript (for the main reason of having all of the javascript in one file), run
thor jba:minify
159 commits
JavaScript
86.5%
Ruby
13.5%
Javascript Gameboy
See the codeAn emulator for the Gameboy and Gameboy Color written in Javascript.
Nowhere close to working yet and is very much a work in progress. Will keep notes here as necessary
You can view a live demo at http://alexcrichton.com/jba/
You need:
bundler gem
Gemfileclosure command for the google closure compiler
brew install closure-compilerThen, run bundle in the checked out directory
First, make sure the server is running via thor server or
ruby test/server.rb. Then visit http://localhost:4567/roms and the roms
will be available for playing.
Run the thor server command and then visit http://localhost:4567 in a web browser to run all of the tests
Before you run the tests, make sure that you regenerate generated files (see below).
If you have the livereload extension, you can connect to the livereload server (run through thor) and the page will be automatically refreshed whenever a file changes
To optimize slightly, the z80 instruction set is a generated javascript file. To change this, modify one of:
src/z80/templates/instructions.ttlib/jba/generator.rbThe ruby file has the meat of the generation. After modifying the files, file can be regenerated by running
thor jba:gen_z80
Or, if you would like the file automatically regenerated when the above files are modified, you can run
guard
in the root directory
jba.min.jsTo generate the minified form of the javascript (for the main reason of having all of the javascript in one file), run
thor jba:minify
159 commits
JavaScript
86.5%
Ruby
13.5%