two9a / jsgb Goto Github PK
View Code? Open in Web Editor NEWJavaScript emulation of the GameBoy console
Home Page: http://imrannazar.com/
License: Other
JavaScript emulation of the GameBoy console
Home Page: http://imrannazar.com/
License: Other
jsGB: A GameBoy emulator in JavaScript -------------------------------------- jsGB is an interpretive emulator of the GameBoy, designed to be run from within a web browser. Yes, it's written in JavaScript. Current status: - The emulator is currently hard-coded to load a particular ROM; it should be possible at some point to develop a fancy dialog for display and loading of the ROMs available at the server. - CPU: Emulated, including the CB-page opcodes. There are likely to be opcodes in the standard lists that are missing, and the "undocumented" ops will be missing. - Graphics: Backgrounds and sprites emulated, windows missing. - Keypad: Working. - Timer: Untested. - Interrupts: VBlank and timer emulated. - Sound: Missing. Tested browsers: - FireFox 3.6 - Opera 10 Acknowledgements: - Pan/ATX, nocash et al: Padocs DMG specification document - Sean Young, Vrije University: Z80 opcode map - Mostek Inc: Z80 timings - Pat Fagan: Diffsheet from Z80 to GameBoy Z80 - Kevin Matney, UIUC: Microscopic dump of DMG BIOS - Arvidsson, Eklund, Murphy: ExCanvas for IE - Andy Na: XHR binary file transfer
In z80.js line 669, the opcode 0x08 is mapped to a function "LDmmSP" which doesn't exist.
https://github.com/Two9A/jsGB/blob/master/js/z80.js#L669
The sole 0x4C in _bios should be 0x3C
One of the c's in a 0x3C is lowercase
The second 0xF2 in _bios should be 0xE2
Source: compared with actual game boy bios
(sharing an actual game boy bios is illegal, this disassembly is accurate though to my game boy bios dump)
Hi,
you included a BIOS but do not use it after all.
Is this BIOS somehow needed, and why did you include it but do not use it in your demo?
Thanks in advance :)
есть идея сделать эти кнопки на картинке как раз для задавания кнопок управления, а не для самого управления, соответственно надо будет как-то сопоставлять коды кнопок с названием
LDmmSP appears in _map but doesn't appear to be implemented anywhere.
Windows defender keeps bothering be when i try and download the zip of this repo.
I trust you just putting this out here incase others have the same problem...
On initially downloading this the code does not seem to run at all. It appears that one possible issue is a minor typo in 'index.html'.
It looks like this:
<td class="regname">D</td><td class=reg" rel="d"></td>
There should be a " before reg.
Additionally the presentation of an non-existent '.gb' filename seems to cause the emulator some trouble. In addition to not working at all, it seems to cause all three tabs to show up in a vertical column (with the latter two not getting a header) rather than showing only the selected tab in the designated position. It appears to be a specific problem resulting from a wrong hardcoded value at page load. If you change the input field later to a non-existent file then it simply doesn't load that and retains the previous rom.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.