Build fix and add comments

This commit is contained in:
retro-wertz
2017-10-17 12:49:12 +08:00
parent c9f255b93c
commit 384d6a98ba
2 changed files with 3 additions and 2 deletions

View File

@@ -42,11 +42,9 @@ static void Sync(void) {
setchr8((regs[0] & 7) | (regs[1] & 7) | ((regs[0] & 0x40) >> 3));
}
#if 0
static DECLFR(M57Read) {
return hrd_flag;
}
#endif
static DECLFW(M57Write) {
switch (A & 0x8800) {

View File

@@ -89,6 +89,9 @@ static DECLFW(M69Write1) {
case 0xA: preg[1] = V; Sync(); break;
case 0xB: preg[2] = V; Sync(); break;
case 0xC: mirr = V & 3; Sync();break;
/* 17/10/17- reg $0D should awknowledge IRQ and no other
* http://forums.nesdev.com/viewtopic.php?f=2&t=12436&start=15
*/
case 0xD: IRQa = V; X6502_IRQEnd(FCEU_IQEXT); break;
case 0xE: IRQCount &= 0xFF00; IRQCount |= V; break;
case 0xF: IRQCount &= 0x00FF; IRQCount |= V << 8; break;