From cdc753c10c29dcb965258cfb6f266748a0b26c80 Mon Sep 17 00:00:00 2001 From: goyuken Date: Mon, 11 Nov 2013 17:39:01 +0000 Subject: [PATCH] 7800: expose the cpu flags. also fix the postbuild event in the csproj to copy emu7800.dll to the correct folder. --- EMU7800/Core/M6502.cs | 28 ++++++++++++++-------------- EMU7800/EMU7800.csproj | 2 +- output/dll/EMU7800.dll | Bin 138240 -> 138240 bytes 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/EMU7800/Core/M6502.cs b/EMU7800/Core/M6502.cs index 53df83446d..a8fb28db38 100644 --- a/EMU7800/Core/M6502.cs +++ b/EMU7800/Core/M6502.cs @@ -151,55 +151,55 @@ namespace EMU7800.Core // Carry: set if the add produced a carry, if the subtraction // produced a borrow. Also used in shift instructions. - bool fC + public bool fC { get { return fget(1 << 0); } - set { fset(1 << 0, value); } + private set { fset(1 << 0, value); } } // Zero: set if the result of the last operation was zero - bool fZ + public bool fZ { get { return fget(1 << 1); } - set { fset(1 << 1, value); } + private set { fset(1 << 1, value); } } // Irq Disable: set if maskable interrupts are disabled - bool fI + public bool fI { get { return fget(1 << 2); } - set { fset(1 << 2, value); } + private set { fset(1 << 2, value); } } // Decimal Mode: set if decimal mode active - bool fD + public bool fD { get { return fget(1 << 3); } - set { fset(1 << 3, value); } + private set { fset(1 << 3, value); } } // Brk: set if an interrupt caused by a BRK instruction, // reset if caused by an internal interrupt - bool fB + public bool fB { get { return fget(1 << 4); } - set { fset(1 << 4, value); } + private set { fset(1 << 4, value); } } // Overflow: set if the addition of two-like-signed numbers // or the subtraction of two unlike-signed numbers // produces a result greater than +127 or less than -128. - bool fV + public bool fV { get { return fget(1 << 6); } - set { fset(1 << 6, value); } + private set { fset(1 << 6, value); } } // Negative: set if bit 7 of the accumulator is set - bool fN + public bool fN { get { return fget(1 << 7); } - set { fset(1 << 7, value); } + private set { fset(1 << 7, value); } } void set_fNZ(byte u8) diff --git a/EMU7800/EMU7800.csproj b/EMU7800/EMU7800.csproj index 000b40745f..987d0828c6 100644 --- a/EMU7800/EMU7800.csproj +++ b/EMU7800/EMU7800.csproj @@ -114,7 +114,7 @@ - copy /y $(TargetDir)$(TargetFileName) $(ProjectDir)..\Bizhawk.MultiClient\output\dll\$(TargetFileName) + copy /y $(TargetDir)$(TargetFileName) $(ProjectDir)..\output\dll\$(TargetFileName)