mirror of
https://github.com/ArthurFerreira2/puce6502.git
synced 2024-11-21 17:33:37 +00:00
Update puce6502.c
This commit is contained in:
parent
5485d8ca88
commit
356f430ffe
@ -698,13 +698,12 @@ uint16_t getPC(){
|
|||||||
oldticks = ticks;
|
oldticks = ticks;
|
||||||
|
|
||||||
if (newPC == 0x3469){ // 6502_functional_test SUCCESS
|
if (newPC == 0x3469){ // 6502_functional_test SUCCESS
|
||||||
printf("\nReached end of 6502_functional_test @ %04X : SUCCESS !\n", newPC);
|
printf("\nReached end of 6502_functional_test @ 0x3469 : SUCCESS !\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newPC == oldPC ) {
|
if (newPC == oldPC ) {
|
||||||
printf("\n\nLoop detected @ %04X - Press ENTER to proceed with next test or CTRL<C> to stop\n\n", newPC);
|
printf("\n\nLoop detected @ %04X - Press ENTER to proceed with next test or CTRL<C> to stop\n\n", newPC);
|
||||||
return(-1);
|
|
||||||
getchar();
|
getchar();
|
||||||
reg.PC = newPC + 2;
|
reg.PC = newPC + 2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user