mirror of
https://github.com/ArthurFerreira2/reinette-IIe.git
synced 2024-12-27 01:30:58 +00:00
Update puce65c02.cpp
This commit is contained in:
parent
250aae9430
commit
ae42248f38
@ -113,8 +113,7 @@ void puce65c02::setPC(uint16_t address) {
|
|||||||
|
|
||||||
uint16_t puce65c02::exec(unsigned long long int cycleCount) {
|
uint16_t puce65c02::exec(unsigned long long int cycleCount) {
|
||||||
cycleCount += ticks; // cycleCount becomes the targeted ticks value8
|
cycleCount += ticks; // cycleCount becomes the targeted ticks value8
|
||||||
while (ticks < cycleCount) {
|
while (ticks < cycleCount && (state == run || state == step)) {
|
||||||
if (state == run || state == step) {
|
|
||||||
|
|
||||||
uint8_t value8;
|
uint8_t value8;
|
||||||
uint16_t value16;
|
uint16_t value16;
|
||||||
@ -2553,7 +2552,6 @@ uint16_t puce65c02::exec(unsigned long long int cycleCount) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
} // end of switch
|
} // end of switch
|
||||||
} // end of if
|
|
||||||
} // end of while
|
} // end of while
|
||||||
return PC;
|
return PC;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user