Skip to content

Commit

Permalink
gpu: fixed busy flag calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Sep 2, 2020
1 parent 3497b7c commit d224545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/device/gpu/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@ uint32_t GPU::getStat() {
GPUSTAT |= displayDisable << 23;
GPUSTAT |= irqRequest << 24;
GPUSTAT |= dataRequest << 25;
GPUSTAT |= 1 << 26; // Ready for DMA command
GPUSTAT |= (cmd != Command::CopyCpuToVram2) << 27;
GPUSTAT |= (cmd == Command::None) << 26; // Ready for DMA command
GPUSTAT |= (readMode == ReadMode::Vram) << 27;
GPUSTAT |= 1 << 28; // Ready for receive DMA block
GPUSTAT |= (dmaDirection & 3) << 29;
GPUSTAT |= odd << 31;
Expand Down

0 comments on commit d224545

Please sign in to comment.