More opcodes, some helpers

This commit is contained in:
2020-05-27 23:48:53 -06:00
parent 718ea88dea
commit bff3bc6546
4 changed files with 578 additions and 282 deletions

View File

@@ -241,7 +241,7 @@ namespace MCEmuCore.GBMonolith
{
Console.WriteLine("Flag status:");
Console.WriteLine($"Zero:\t\t{Flags.Zero}");
Console.WriteLine($"Subtract:\t{Flags.Subtract}");
Console.WriteLine($"Subtract:\t{Flags.N_Subtract}");
Console.WriteLine($"Half Carry:\t{Flags.HalfCarry}");
Console.WriteLine($"Carry:\t\t{Flags.Carry}");
Console.WriteLine($"Raw Register:\t{Convert.ToString(Flags.Value, 2)}");
@@ -269,7 +269,7 @@ namespace MCEmuCore.GBMonolith
register &= 0b0111_0000;
}
}
public bool Subtract
public bool N_Subtract
{
get { return (Value & 0b0100_0000) != 0; }
set