mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-08 04:00:38 +00:00
Fixing APU's padding cycles
This commit is contained in:
@@ -706,6 +706,10 @@ namespace ComSquare::APU
|
|||||||
{
|
{
|
||||||
unsigned total = 0;
|
unsigned total = 0;
|
||||||
|
|
||||||
|
if (this->_paddingCycles > cycles) {
|
||||||
|
this->_paddingCycles -= cycles;
|
||||||
|
return;
|
||||||
|
}
|
||||||
cycles -= this->_paddingCycles;
|
cycles -= this->_paddingCycles;
|
||||||
while (total < cycles && this->_state == Running)
|
while (total < cycles && this->_state == Running)
|
||||||
total += this->_executeInstruction();
|
total += this->_executeInstruction();
|
||||||
|
|||||||
Reference in New Issue
Block a user