Skip to content

Commit

Permalink
#1 OAM VRAM Bank take only 0 in DMG
Browse files Browse the repository at this point in the history
  • Loading branch information
akatsuki105 committed May 15, 2020
1 parent b9f441a commit 6baae24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/gpu/gpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ func (g *GPU) setTileLine(entryX, entryY int, lineIndex uint, addr uint16, tileT

// entryX, entryY: 何Pixel目を基準として配置するか
VRAMBankPtr := (attr >> 3) & 0x01
if !isCGB {
VRAMBankPtr = 0
}

lowerByte, upperByte := g.VRAMBank[VRAMBankPtr][addr-0x8000], g.VRAMBank[VRAMBankPtr][addr-0x8000+1]

for j := 0; j < 8; j++ {
Expand Down

0 comments on commit 6baae24

Please sign in to comment.