├── .gitignore ├── src ├── ui │ ├── style │ │ ├── media │ │ │ └── gameboy.png │ │ └── index.scss │ ├── flag.jsx │ ├── register.jsx │ ├── disassemble.jsx │ ├── screen.jsx │ └── index.jsx ├── core │ ├── mappers │ │ ├── flags.js │ │ ├── rom.js │ │ ├── mbc2.js │ │ ├── mbc3.js │ │ ├── mbc5.js │ │ ├── mbc1.js │ │ └── mapper.js │ ├── consts.js │ ├── misc │ │ ├── workram.js │ │ ├── timer.js │ │ ├── joypad.js │ │ └── bios.js │ ├── index.js │ ├── registers.js │ ├── audio │ │ ├── waveform.js │ │ ├── noise.js │ │ ├── square.js │ │ └── audio.js │ ├── video │ │ ├── dma.js │ │ ├── palette.js │ │ ├── lcd.js │ │ └── gpu.js │ ├── core.js │ └── ops │ │ ├── shift.js │ │ └── index.js ├── index.jsx ├── util │ ├── polyfills.js │ ├── memory.js │ └── keyboard.js └── debugger │ └── disassemble.js ├── public └── index.html ├── README.md ├── package.json └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .sass-cache 3 | .DS_Store 4 | public/* 5 | !public/index.html 6 | -------------------------------------------------------------------------------- /src/ui/style/media/gameboy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asterick/JSBoy/HEAD/src/ui/style/media/gameboy.png -------------------------------------------------------------------------------- /src/core/mappers/flags.js: -------------------------------------------------------------------------------- 1 | export const NONE = 0; 2 | export const RAM = 1; 3 | export const BATTERY = 2; 4 | export const TIMER = 4; 5 | export const RUMBLE = 8; 6 | -------------------------------------------------------------------------------- /src/core/consts.js: -------------------------------------------------------------------------------- 1 | export const IRQ_VBLANK = 1; 2 | export const IRQ_LCD_STAT = 2; 3 | export const IRQ_TIMER = 4; 4 | export const IRQ_SERIAL = 8; 5 | export const IRQ_JOYSTICK = 16; 6 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |