mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
Fix compile again
This commit is contained in:
parent
cb34054473
commit
f66b703a81
1 changed files with 3 additions and 3 deletions
|
@ -138,12 +138,12 @@ void d65010g031_write(struct d65010g031_t *d65010g031, const unsigned char a, co
|
|||
d65010g031->ctrl = d;
|
||||
break;
|
||||
default:
|
||||
unsigned char period = ~d & 0x3f;
|
||||
if ((period == 0) && (d65010g031->square[a].period != 0))
|
||||
unsigned char per = (unsigned char)(~d) & 0x3f;
|
||||
if ((per == 0) && (d65010g031->square[a].period != 0))
|
||||
{
|
||||
d65010g031->square[a].out ^= 1;
|
||||
}
|
||||
d65010g031->square[a].period = period;
|
||||
d65010g031->square[a].period = per;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue