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