Skip to content

Commit

Permalink
Fix objPalette reads
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierke committed Jun 28, 2024
1 parent 013fdad commit 7531769
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions devices/ppu.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ func (attrs *objectAttributes) Write(value uint8) {
type objPalette [4]uint8

func (pal *objPalette) Read() uint8 {
return (uint8(pal[2])<<6 |
uint8(pal[1])<<4 |
uint8(pal[0])<<2)
return (uint8(pal[3])<<6 |
uint8(pal[2])<<4 |
uint8(pal[1])<<2)
}

func (pal *objPalette) Write(value uint8) {
Expand Down

0 comments on commit 7531769

Please sign in to comment.