[GPU] GP1(0x03)

This commit is contained in:
liuk7071 2023-07-30 01:25:48 +02:00
parent b3a1b8b404
commit bfecc520dd
3 changed files with 9 additions and 0 deletions

View file

@ -19,6 +19,8 @@ void GPUSoftware::beginTextureUpload(u16 x, u16 y, u16 width) {
}
void GPUSoftware::textureUploadData(u16 data) {
if (!uploadingTexture) Helpers::panic("[FATAL] Attempted to upload texture data before starting a texture transfer\n");
writePixel(curX, curY, data);
curX++;

View file

@ -84,6 +84,12 @@ void GPU::writeGp1(u32 data) {
stat |= (data & 3) << 29;
break;
}
case (u32)GP1Command::DisplayEnable: {
// Bits 0 is copied to GPUSTAT.23
stat &= ~(1 << 23);
stat |= (data & 1) << 23;
break;
}
case (u32)GP1Command::StartOfDisplayArea: {
// TODO: Stubbed for now
break;

View file

@ -38,6 +38,7 @@ public:
enum class GP1Command {
ResetGPU = 0x00,
DisplayEnable = 0x03,
DMADirection = 0x04,
StartOfDisplayArea = 0x05,
HorizontalDisplayRange = 0x06,