Video games are meant to be just one thing. Fun. Fun for everyone.
Satoru Iwata
Halken is a Game Boy emulator written in Go being developed during my time at the Recurse Center. The name is one used by HAL Laboratories for a time. HAL was the first company where Satoru Iwata was a video game programmer.
I intend to have lots of comments as well as a document regarding the process. Once I am happy with 32KB games generally working I'll be cleaning the code and writing documentation for others who want to tackle the same project.
Usage: halken /path/to/rom
- Tetris
- Dr. Mario
- Flipull
- World Bowling
- Minesweeper
- Motorcross Maniacs
- Hyper Lode Runner
- Battlecity
- LCD STAT interrupt is only partially correct - need to make sure all cases are covered
- Breaks certain games like Game of Harmony, which gets weird graphics due to it not firing when it should
- Sprite color palettes besides default are unimplemented
- 8x16 sprites aren't drawn properly, get cut off
Implement CPU opcodesNon-CB opcodes implementedWrite dispatch loop- Use blargg's test output to fix instructions
01 - special- 02 - interrupts
03 - op sp,hl04 - op r,imm05 - op rp06 - ld r,r07 - jr,jp,call,ret,rst08 - misc instrs09 - op r,r10 - bit ops11 - op a,(hl)
Implement memoryTest GB bootstrap ROMDraw tilesDraw backgroundGraphics loop- Interrupts
VBlankLCDTimerSerialJoypad
TimerRefactor (direct memory access vs. abstractions), lower LOC, comment- Document process for learners