-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit Message: "Major updates to README and versioning, addition of …
…new gif and enhancements to various windows" Added: - New gif file 'bgb.gif' in docs. - New constant for versioning in 'internal/root.go'. - New sections in README for future features, installation, usage, and key bindings. Changed: - Updated the versioning in the title of various windows including 'cartview.go', 'cpuview.go', 'ioview.go', 'memoryview.go', and 'vramview.go'. - Updated the game loop GUI title in 'gobc.go'. - Updated the README with changes in the supported features and installation sections. Removed: - Removed the old versioning from the title of various windows.
- Loading branch information
duysqubix
committed
Oct 2, 2023
1 parent
f73d02b
commit 5391c18
Showing
9 changed files
with
143 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,40 +19,45 @@ Generate GIF with the layout and captions | |
<td align="center"> | ||
<img src="docs/blue.gif" width="200"> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<td align="center"> | ||
<img src="docs/tetris.gif" width="200"> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<img src="docs/dr_mario.png" width="200"> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<img src="docs/cpu_instrs.png" width="200"> | ||
<td align="center"> | ||
<img src="docs/bgb.gif" width="200"> | ||
</td> | ||
<td align="center"> | ||
<img src="docs/instr_timing.png" width="200"> | ||
</td> | ||
</tr> | ||
<tr> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<img src="docs/dmg-acid2.png" width="200"> | ||
</td> | ||
<td align="center"> | ||
<img src="docs/cgb-acid2.png" width="200"> | ||
</td> | ||
</td> | ||
<td align="center"> | ||
<img src="docs/cpu_instrs.png" width="200"> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
Supported Features | ||
================== | ||
- [x] Emulated CPU (LR35902) | ||
- [x] CPU | ||
- [ ] Double Speed Mode | ||
- [ ] Sound | ||
- [x] Interrupts | ||
- [ ] Joypad | ||
- [x] Joypad | ||
- [ ] Serial | ||
- [ ] Cartridges | ||
- [x] Cartridge RAM_ONLY | ||
|
@@ -68,19 +73,134 @@ Supported Features | |
- [ ] Cartridge Hudson HuC-1 | ||
- [ ] Cartridge Hudson HuC-3 | ||
- [x] Graphics | ||
- [ ] FIFO | ||
- [x] Timers | ||
- [x] CGB Mode | ||
|
||
Future Features | ||
================== | ||
List is in no particular order and is subject to change. Take a stab at any of them if you feel like it. | ||
|
||
- [ ] Sound | ||
- [ ] Use real Cartridges (via Arduino) | ||
- [ ] Implement all MBCs | ||
- [ ] Fix Links Awakening DMG (Menu is broken) | ||
|
||
|
||
Installation | ||
|
||
Installing GoBC | ||
============ | ||
Compiled on Go 1.21.1, build each binary with | ||
You need the following dependencies installed: | ||
- [Go](https://golang.org/doc/install) | ||
- [OpenGL](https://github.com/faiface/pixel#requirements) | ||
|
||
Building from source | ||
```bash | ||
go build -o bin/cartdump cmd/cartdump/main.go && \ # Disassemble a ROM | ||
go build -o bin/gobc cmd/gobc/main.go && \ # Main GoBC Emulator | ||
go build -o bin/opbenchmark cmd/opbenchmark/main.go # Benchmark the CPU on current system | ||
go build -o bin/gobc cmd/gobc/gobc.go | ||
``` | ||
|
||
Or Install latest binary | ||
```bash | ||
go install github.com/duysqubix/gobc/cmd/gobc@latest | ||
``` | ||
|
||
Usage | ||
======== | ||
|
||
```bash | ||
NAME: | ||
gobc - A Gameboy emulator written in Go | ||
|
||
USAGE: | ||
gobc ROM_File [options] | ||
|
||
VERSION: | ||
0.0.1 | ||
|
||
AUTHOR: | ||
duys <[email protected]> | ||
|
||
COMMANDS: | ||
help, h Shows a list of commands or help for one command | ||
|
||
GLOBAL OPTIONS: | ||
--debug Enable debug mode (default: false) | ||
--breakpoints value Define breakpoints | ||
--force-cgb Force CGB mode (default: false) | ||
--force-dmg Force DMG mode (default: false) | ||
--no-gui Run without GUI (default: false) | ||
--panic-on-stuck Panic when CPU is stuck (default: false) | ||
--randomize Randomize RAM on startup (default: false) | ||
--help, -h show help | ||
--version, -v print the version | ||
|
||
|
||
Examples: | ||
|
||
gobc roms/cpu_instrs.gb --debug --breakpoints 0x100,0x200,0x300 # Run with debug mode and breakpoints | ||
gobc roms/cpu_instrs.gb --force-cgb # Force CGB mode on DMG rom | ||
gobc roms/cpu_instrs.gb --force-dmg # Force DMG mode on CGB rom | ||
LOG_LEVEL=debug gobc roms/cpu_instrs.gb # Set Log level to debug | ||
LOG_LEVEL=info gobc roms/cpu_instrs.gb # Set Log level to info | ||
``` | ||
|
||
Key Bindings | ||
============ | ||
Main Window | ||
----------- | ||
| Key | Description | | ||
| --- | ----------- | | ||
| `F1` | Toggle Grid | | ||
| `F2` | Toggle Debug Information | | ||
| `F3` | Change Pallete (DMG Only) | | ||
| `F4` | Save Cartridge SRAM | | ||
| `F5` | Save State | | ||
| `F6` | Load State | | ||
| `A` | Button B | | ||
| `S` | Button A | | ||
| `Enter` | Start | | ||
| `Shift` | Select | | ||
| `Up` | D-Pad Up | | ||
| `Down` | D-Pad Down | | ||
| `Left` | D-Pad Left | | ||
| `Right` | D-Pad Right | | ||
| `DEBUG ON - Space Bar` | Game Pause | | ||
| `DEBUG ON - N` | Step N Cycles | | ||
| `DEBUG ON - M` | Increase Cycles Per Frame 10x | | ||
| `DEBUG ON - B` | Decrease Cycles Per Frame 10x | | ||
| `DEBUG ON - F` | Step Frame | | ||
|
||
VRAM Window | ||
----------- | ||
| Key | Description | | ||
| --- | ----------- | | ||
| `T` | Toggle Tile Addressing Mode| | ||
| `B` | Toggle TileMap Addressing Mode| | ||
| `G` | Toggle Grid | | ||
| `V` | Toggle VRAM bank 0/1 | | ||
|
||
Memory Window | ||
----------- | ||
| Key | Description | | ||
| --- | ----------- | | ||
| `Right` | Page Down | | ||
| `Left` | Page Up | | ||
| `Up` | Scroll Up | | ||
| `Down` | Scroll Down | | ||
| `Mouse Wheel Up` | Scroll Up | | ||
| `Mouse Wheel Down` | Scroll Down | | ||
|
||
Cart Window | ||
----------- | ||
| Key | Description | | ||
| --- | ----------- | | ||
| `Right` | Page Down | | ||
| `Left` | Page Up | | ||
| `Up` | Scroll Up | | ||
| `Down` | Scroll Down | | ||
| `Mouse Wheel Up` | Scroll Up | | ||
| `Mouse Wheel Down` | Scroll Down | | ||
|
||
|
||
Contributors | ||
============ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters