Use proper bit index for 6502 Interrupt flag.

This commit is contained in:
Alessandro Gatti 2019-04-19 17:04:28 +02:00
parent 030cf8e96f
commit 48150b1870

View File

@ -36,7 +36,7 @@ macro popSR() {
V = ccr[6,1]; V = ccr[6,1];
B = ccr[4,1]; B = ccr[4,1];
D = ccr[3,1]; D = ccr[3,1];
I = ccr[3,1]; I = ccr[2,1];
Z = ccr[1,1]; Z = ccr[1,1];
C = ccr[0,1]; C = ccr[0,1];
} }
@ -47,7 +47,7 @@ macro pushSR() {
ccr[6,1] = V; ccr[6,1] = V;
ccr[4,1] = B; ccr[4,1] = B;
ccr[3,1] = D; ccr[3,1] = D;
ccr[3,1] = I; ccr[2,1] = I;
ccr[1,1] = Z; ccr[1,1] = Z;
ccr[0,1] = C; ccr[0,1] = C;
*:1 (SP) = ccr; *:1 (SP) = ccr;