https://gbdev.io/pandocs/ 1. Foreword 2. Acknowledgements 3. History 4. 5. 6. Overview 7. 1. Specifications 8. 2. Memory Map 9. 10. I/O Ports 11. 3. Summary 12. 4. Graphics 13. 1. 4.1. Tile Data 2. 4.2. Tile Maps 3. 4.3. OAM 4. 1. 4.3.1. OAM DMA Transfer 5. 4.4. LCD Control 6. 4.5. LCD Status Registers 7. 4.6. Scrolling 8. 4.7. Palettes 9. 4.8. Rendering 10. 1. 4.8.1. Pixel FIFO 14. 5. Audio 15. 1. 5.1. Audio Registers 2. 5.2. Audio Details 16. 6. Joypad Input 17. 7. Serial Data Transfer 18. 8. Timer and Divider Registers 19. 1. 8.1. Timer Obscure Behaviour 20. 9. Interrupts 21. 1. 9.1. Interrupt Sources 2. 9.2. HALT 22. 10. CGB Registers 23. 11. Infrared Communication 24. 12. SGB Functions 25. 1. 12.1. Unlocking and Detecting SGB Functions 2. 12.2. Command Packet Transfers 3. 12.3. VRAM Transfers 4. 12.4. Color Palettes Overview 5. 12.5. Command Summary 6. 1. 12.5.1. Palette Commands 2. 12.5.2. Color Attribute Commands 3. 12.5.3. Sound Functions 4. 12.5.4. System Control Commands 5. 12.5.5. Multiplayer Command 6. 12.5.6. Border and OBJ Commands 7. 12.5.7. Undocumented SGB commands 26. 27. CPU Specifications 28. 13. CPU Registers and Flags 29. 14. CPU Instruction Set 30. 15. CPU Comparison with Z80 31. 32. Cartridges 33. 16. The Cartridge Header 34. 17. MBCs 35. 1. 17.1. No MBC 2. 17.2. MBC1 3. 17.3. MBC2 4. 17.4. MBC3 5. 17.5. MBC5 6. 17.6. MBC6 7. 17.7. MBC7 8. 17.8. MMM01 9. 17.9. M161 10. 17.10. HuC1 11. 17.11. HuC-3 12. 17.12. Other MBCs 36. 37. Accessories 38. 18. Game Boy Printer 39. 19. Game Boy Camera 40. 20. 4-Player Adapter 41. 21. Game Genie/Shark Cheats 42. 43. Other 44. 22. Power-Up Sequence 45. 23. Reducing Power Consumption 46. 24. Accessing VRAM and OAM 47. 25. OAM Corruption Bug 48. 26. External Connectors 49. 27. GBC Approval Process 50. 51. References * Light * Rust * Coal * Navy * Ayu Pan Docs [ ] Foreword This document, started in early 1995, is considered the single most comprehensive technical reference to Game Boy available to the public. You are reading a new version of it, maintained in the Markdown format and enjoying renewed community attention, correcting and updating it with recent findings. To learn more about the legacy and the mission of this initiative, check History. SCOPE The information here is targeted at homebrew development. Emulator developers may be also interested in the Game Boy: Complete Technical Reference document. Contributing This project is open source, released under the CC0 license. Everyone is welcome to help, provide feedback and propose additions or improvements. The git repository is hosted at github.com/gbdev/ pandocs, where you can learn more about how you can contribute, find detailed contribution guidelines and procedures, file Issues and send Pull Requests. There is a Discord chat dedicated to the gbdev community. Finally, you can also contact us and send patches via email: pandocs (at) gbdev.io. Using this document In the top navigation bar, you will find a series of icons. By clicking on the icon you will toggle an interactive table of contents to navigate the document. You can also use - and - keys on your keyboard to go to the following and previous page. The lets you choose among 5 different themes and color schemes to please your reading experience. You can search anywhere by pressing s on your keyboard or clicking the icon. The icon allows you to suggest an edit on the current page by directly opening the source file in the git repository. One-page and printable versions of this document are also available. This document version was produced from git commit 8eb65d5 (2023-10-27 11:22:19 +0200).