Skip to content

Commit

Permalink
Add CGB WRAM bank register
Browse files Browse the repository at this point in the history
  • Loading branch information
ekimekim committed Jan 14, 2018
1 parent a4d9078 commit f6aed58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/ioregs.asm
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ CGBDMAControl EQU $ff55
; Bit 1 will be unset when a signal is detected, and set otherwise.
CGBInfrared EQU $ff56

; "SVBK" Game Boy Color WRAM Bank select
; Write to bits 0-2 of this register to pick WRAMX banks 1-7 (writing 0 also picks bank 1)
CGBWRAMBank EQU $ff70

; "IE" Interrupt Enable flags. Write to this register to selectively disable interrupts.
; Bits 0-4 control off/on for respectively: VBlank, LCDC, Timer, Serial, Joypad
InterruptsEnabled EQU $ffff
Expand Down

0 comments on commit f6aed58

Please sign in to comment.