break;
case 0x57:
#ifdef HAS_AUXSRV
- cycles=aux.Map(0x57,data,0x60,0x40);
- if(cycles>0) { cycles-=6; break; }
+ int c=aux.Map(0x57,data,0x60,0x40);
+ if(c>0) { cycles=c-6; break; }
#endif
{
cBN a, b, x, y, scalar;
cycles=0; ctrl=0; divisor=1; remainder=-1; latch=0xFF;
}
-void cN2Timer::AddCycles(int count)
+void cN2Timer::AddCycles(unsigned int count)
{
if(Running()) {
remainder+=count;
void Stop(void);
public:
cN2Timer(void);
- void AddCycles(int count);
- unsigned int Cycles(void) { return (unsigned int)cycles; }
+ void AddCycles(unsigned int count);
+ unsigned int Cycles(void) { return cycles; }
unsigned char Ctrl(void) { return ctrl&tmMASK; }
void Ctrl(unsigned char c);
unsigned char Latch(void) { return latch&0xFF; }