get rid of some warnings

This commit is contained in:
zeromus 2012-09-22 05:01:04 +00:00
parent 64a04fd672
commit a45c1f60bc
2 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,8 @@ namespace BizHawk.Emulation.CPUs.CP1610
private const ushort RESET = 0x1000;
private const ushort INTERRUPT = 0x1004;
private bool FlagS, FlagC, FlagZ, FlagO, FlagI, FlagD, IntRM, BusRq, BusAk, MSync, Interruptible, Interrupted;
private bool FlagS, FlagC, FlagZ, FlagO, FlagI, FlagD, IntRM, BusRq, BusAk, Interruptible, Interrupted;
//private bool MSync;
private ushort[] Register = new ushort[8];
private ushort RegisterSP { get { return Register[6]; } set { Register[6] = value; } }
private ushort RegisterPC { get { return Register[7]; } set { Register[7] = value; } }
@ -80,7 +81,7 @@ namespace BizHawk.Emulation.CPUs.CP1610
Log.WriteLine("INTRM = {0}", IntRM);
Log.WriteLine("BUSRQ = {0}", BusRq);
Log.WriteLine("BUSAK = {0}", BusAk);
Log.WriteLine("MSYNC = {0}", MSync);
//Log.WriteLine("MSYNC = {0}", MSync);
Log.Flush();
}
}

View File

@ -115,7 +115,8 @@ namespace BizHawk.Emulation.CPUs.CP1610
}
byte dest, src, mem;
ushort dest_value, src_value, mem_read, addr, addr_read, offset;
int cycles = 0, decle2, decle3, result = 0, ones, twos, carry, status_word, lower, sign, cond, ext;
int cycles = 0, decle2, decle3, result = 0, twos, status_word, lower, sign, cond, ext;
//int ones, carry;
bool branch = false;
bool FlagD_prev = FlagD;
int opcode = ReadMemory(RegisterPC++) & 0x3FF;