games/nes: it's too late to write code

This commit is contained in:
aiju 2014-02-25 23:25:28 +01:00
parent 1a67cd2c44
commit 1df8b3d2c1

View file

@ -94,11 +94,12 @@ doenv(void)
(*a)--;
}
a = apuctr + TRILIN;
if((apuctr[RELOAD] & (1<<2)) != 0){
*a = mem[0x4008];
apuctr[RELOAD] &= ~(1<<2);
}else if(*a != 0)
if((apuctr[RELOAD] & (1<<2)) != 0)
*a = mem[0x4008] & 0x7f;
else if(*a != 0)
(*a)--;
if((mem[0x4008] & 0x80) == 0)
apuctr[RELOAD] &= ~(1<<2);
}
void