mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-27 16:21:53 +00:00
added more register to the write fct of PPU
This commit is contained in:
@@ -56,6 +56,13 @@ namespace ComSquare::PPU
|
||||
case 0x0A:
|
||||
this->bg4sc.raw = data;
|
||||
break;
|
||||
case 0x0B:
|
||||
this->bg12nba.raw = data;
|
||||
break;
|
||||
case 0x0C:
|
||||
this->bg34nba.raw = data;
|
||||
break;
|
||||
//TODO adding the rest of the registers. ooof !
|
||||
default:
|
||||
throw InvalidAddress("PPU Internal Registers write", addr);
|
||||
}
|
||||
|
||||
+1
-1
@@ -128,7 +128,7 @@ namespace ComSquare::PPU
|
||||
uint8_t _ : 6;
|
||||
uint32_t offsetBg: 10;
|
||||
};
|
||||
uint8_t raw;
|
||||
uint16_t raw;
|
||||
} bg1ofs;
|
||||
//! @brief M7HOFS Register (Mode 7 BG Horizontal Scroll)
|
||||
//! @brief M7VOFS Register (Mode 7 BG Vertical Scroll)
|
||||
|
||||
Reference in New Issue
Block a user