C# Class NES.CPU

显示文件 Open project: mrmikey/nes Class Usage Examples

Public Properties

Property Type Description
ChangedPC bool
CurrentOpCode byte
CurrentOpCodeLength int
Cycles int
Debug Tracelogger
Flags CPUFlags
IRQ bool
NMI bool
PC ushort
SinceLastVBlank int
Stack Stack
X byte

Public Methods

Method Description
Absolute ( byte lower, byte upper ) : byte
AbsoluteX ( byte lower, byte upper ) : byte
AbsoluteY ( byte lower, byte upper ) : byte
CPU ( Engine engine ) : System
Indirect ( byte lower, byte upper ) : ushort
IndirectX ( byte addr ) : byte
IndirectXAddr ( byte addr ) : ushort
IndirectY ( byte addr ) : byte
IndirectYAddr ( byte addr ) : ushort
Reset ( ) : void
Run ( ) : int
ZeroPage ( byte addr ) : byte
ZeroPageX ( byte addr ) : byte
ZeroPageY ( byte addr ) : byte

Private Methods

Method Description
branch ( bool test ) : void
getValues ( byte &val1, byte &val2 ) : void
isNegative ( byte val ) : bool
opADC ( ) : void
opAND ( ) : void
opASL ( ) : void
opASXu ( ) : void
opBCC ( ) : void
opBCS ( ) : void
opBEQ ( ) : void
opBIT ( ) : void
opBMI ( ) : void
opBNE ( ) : void
opBPL ( ) : void
opBRK ( ) : void
opBVC ( ) : void
opBVS ( ) : void
opCLC ( ) : void
opCLD ( ) : void
opCLI ( ) : void
opCLV ( ) : void
opCMP ( ) : void
opCPX ( ) : void
opCPY ( ) : void
opDCPu ( ) : void
opDEC ( ) : void
opDEX ( ) : void
opDEY ( ) : void
opEOR ( ) : void
opINC ( ) : void
opINX ( ) : void
opINY ( ) : void
opISBu ( ) : void
opJMP ( ) : void
opJSR ( ) : void
opLAXu ( ) : void
opLDA ( ) : void
opLDX ( ) : void
opLDY ( ) : void
opLSR ( ) : void
opNOP ( ) : void
opNOPu ( ) : void
opORA ( ) : void
opPHA ( ) : void
opPHP ( ) : void
opPLA ( ) : void
opPLP ( ) : void
opRLAu ( ) : void
opROL ( ) : void
opROR ( ) : void
opRRAu ( ) : void
opRTI ( ) : void
opRTS ( ) : void
opSBC ( ) : void
opSEC ( ) : void
opSED ( ) : void
opSEI ( ) : void
opSLOu ( ) : void
opSREu ( ) : void
opSTA ( ) : void
opSTX ( ) : void
opSTY ( ) : void
opTAX ( ) : void
opTAY ( ) : void
opTSX ( ) : void
opTXA ( ) : void
opTXS ( ) : void
opTYA ( ) : void
setZeroNegFlags ( byte val ) : void
sortEndian ( byte lower, byte upper ) : ushort

Method Details

Absolute() public method

public Absolute ( byte lower, byte upper ) : byte
lower byte
upper byte
return byte

AbsoluteX() public method

public AbsoluteX ( byte lower, byte upper ) : byte
lower byte
upper byte
return byte

AbsoluteY() public method

public AbsoluteY ( byte lower, byte upper ) : byte
lower byte
upper byte
return byte

CPU() public method

public CPU ( Engine engine ) : System
engine Engine
return System

Indirect() public method

public Indirect ( byte lower, byte upper ) : ushort
lower byte
upper byte
return ushort

IndirectX() public method

public IndirectX ( byte addr ) : byte
addr byte
return byte

IndirectXAddr() public method

public IndirectXAddr ( byte addr ) : ushort
addr byte
return ushort

IndirectY() public method

public IndirectY ( byte addr ) : byte
addr byte
return byte

IndirectYAddr() public method

public IndirectYAddr ( byte addr ) : ushort
addr byte
return ushort

Reset() public method

public Reset ( ) : void
return void

Run() public method

public Run ( ) : int
return int

ZeroPage() public method

public ZeroPage ( byte addr ) : byte
addr byte
return byte

ZeroPageX() public method

public ZeroPageX ( byte addr ) : byte
addr byte
return byte

ZeroPageY() public method

public ZeroPageY ( byte addr ) : byte
addr byte
return byte

Property Details

ChangedPC public_oe property

public bool ChangedPC
return bool

CurrentOpCode public_oe property

public byte CurrentOpCode
return byte

CurrentOpCodeLength public_oe property

public int CurrentOpCodeLength
return int

Cycles public_oe property

public int Cycles
return int

Debug public_oe property

public Tracelogger,NES Debug
return Tracelogger

Flags public_oe property

public CPUFlags,NES Flags
return CPUFlags

IRQ public_oe property

public bool IRQ
return bool

NMI public_oe property

public bool NMI
return bool

PC public_oe property

public ushort PC
return ushort

SinceLastVBlank public_oe property

public int SinceLastVBlank
return int

Stack public_oe property

public Stack,NES Stack
return Stack

X public_oe property

public byte X
return byte