Update puce6502.c

This commit is contained in:
ArthurFerreira2 2021-06-25 09:25:07 +02:00 committed by GitHub
parent 5485d8ca88
commit 356f430ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }