C# 클래스 NesHd.Core.CPU.Cpu

The 6502
파일 보기 프로젝트 열기: afonsof/nes-hd 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CycleCounter int
CyclesPerScanline int
Flag_B bool
Flag_C bool
Flag_D bool
Flag_I bool
Flag_N bool
Flag_V bool
Flag_Z bool
IRQNextTime bool
OpCode byte
PrevPc ushort
REG_A byte
REG_PC ushort
REG_S byte
REG_X byte
REG_Y byte

공개 메소드들

메소드 설명
Cpu ( System.Memory memory, TvFormat tvFormat, NesEngine engine ) : System

The 6502

Push16 ( ushort data ) : void
PushStatus ( ) : void
Reset ( ) : void
Run ( ) : void

Run the cpu looping

SetTvFormat ( TvFormat format ) : void
SoftReset ( ) : void
StatusRegister ( ) : byte
TogglePause ( ) : void

Pause the cpu

비공개 메소드들

메소드 설명
AAC ( byte M, int count, ushort bytes ) : void
AAX ( byte M ) : byte
ADC ( byte M, int count, ushort bytes ) : void
AND ( byte M, int count, ushort bytes ) : void
ARR ( byte M ) : void
ASL ( byte M ) : byte
ASR ( byte M ) : void
ATX ( byte M ) : void
AXA ( byte M ) : byte
AXS ( byte M ) : void
Absolute ( byte A, byte B ) : byte
AbsoluteWrite ( byte A, byte B, byte data ) : byte
AbsoluteX ( byte A, byte B, bool CheckPage ) : byte
AbsoluteXWrite ( byte A, byte B, byte data ) : byte
AbsoluteY ( byte A, byte B, bool CheckPage ) : byte
AbsoluteYWrite ( byte A, byte B, byte data ) : byte
BCC ( byte arg1 ) : void
BCS ( byte arg1 ) : void
BEQ ( byte arg1 ) : void
BIT ( byte M, int count, ushort bytes ) : void
BMI ( byte arg1 ) : void
BNE ( byte arg1 ) : void
BPL ( byte arg1 ) : void
BRK ( ) : void
BVC ( byte arg1 ) : void
BVS ( byte arg1 ) : void
CLC ( ) : void
CLD ( ) : void
CLI ( ) : void
CLV ( ) : void
CMP ( byte M, int count, ushort bytes ) : void
CPX ( byte M, int count, ushort bytes ) : void
CPY ( byte M, int count, ushort bytes ) : void
DCP ( byte M, int count, ushort bytes ) : void
DEC ( byte M ) : byte
DEX ( ) : void
DEY ( ) : void
DOP ( int count, ushort bytes ) : void
EOR ( byte M, int count, ushort bytes ) : void
INC ( byte M ) : byte
INX ( ) : void
INY ( ) : void
IRQ ( ) : void
ISC ( byte M, int count, ushort bytes ) : void
IndirectX ( byte A ) : byte
IndirectXWrite ( byte A, byte data ) : byte
IndirectY ( byte A, bool CheckPage ) : byte
IndirectYWrite ( byte A, byte data ) : byte
InitializeCPU ( TvFormat FORMAT ) : void

Initialize and set the timing of the cpu

JSR ( byte arg1, byte arg2 ) : void
KIL ( ) : void
LAR ( byte M, int count, ushort bytes ) : void
LAX ( byte M, int count, ushort bytes ) : void
LDA ( ) : void
LDX ( ) : void
LDY ( ) : void
LSR ( byte M ) : byte
MakeAddress ( byte c, byte d ) : ushort

get two bytes into a correct address

NOP ( ) : void
ORA ( byte M, int count, ushort bytes ) : void
PHA ( ) : void
PHP ( ) : void
PLA ( ) : void
PLP ( ) : void
Pull16 ( ) : ushort
Pull8 ( ) : byte
PullStatus ( ) : void
Push8 ( byte data ) : void
RLA ( byte M, int count, ushort bytes ) : void
ROL ( byte M ) : byte
ROR ( byte M ) : byte
RRA ( byte M, int count, ushort bytes ) : void
RTI ( ) : void
RTS ( ) : void
SBC ( byte M, int count, ushort bytes ) : void
SEC ( ) : void
SED ( ) : void
SEI ( ) : void
SLO ( byte M, int count, ushort bytes ) : void
SRE ( byte M, int count, ushort bytes ) : void
SXA ( byte M ) : byte
SYA ( byte M ) : byte
TAX ( ) : void
TAY ( ) : void
TOP ( int count, ushort bytes ) : void
TSX ( ) : void
TXA ( ) : void
TXS ( ) : void
TYA ( ) : void
XAA ( int count, ushort bytes ) : void
XAS ( byte M, byte arg1 ) : byte
ZeroPage ( ushort A ) : byte
ZeroPageWrite ( ushort A, byte data ) : byte
ZeroPageX ( ushort A ) : byte
ZeroPageXWrite ( ushort A, byte data ) : byte
ZeroPageY ( ushort A ) : byte
ZeroPageYWrite ( ushort A, byte data ) : byte

메소드 상세

Cpu() 공개 메소드

The 6502
public Cpu ( System.Memory memory, TvFormat tvFormat, NesEngine engine ) : System
memory System.Memory The memory
tvFormat TvFormat The TV format
engine NesEngine
리턴 System

Push16() 공개 메소드

public Push16 ( ushort data ) : void
data ushort
리턴 void

PushStatus() 공개 메소드

public PushStatus ( ) : void
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Run() 공개 메소드

Run the cpu looping
public Run ( ) : void
리턴 void

SetTvFormat() 공개 메소드

public SetTvFormat ( TvFormat format ) : void
format TvFormat
리턴 void

SoftReset() 공개 메소드

public SoftReset ( ) : void
리턴 void

StatusRegister() 공개 메소드

public StatusRegister ( ) : byte
리턴 byte

TogglePause() 공개 메소드

Pause the cpu
public TogglePause ( ) : void
리턴 void

프로퍼티 상세

CycleCounter 공개적으로 프로퍼티

public int CycleCounter
리턴 int

CyclesPerScanline 공개적으로 프로퍼티

public int CyclesPerScanline
리턴 int

Flag_B 공개적으로 프로퍼티

public bool Flag_B
리턴 bool

Flag_C 공개적으로 프로퍼티

public bool Flag_C
리턴 bool

Flag_D 공개적으로 프로퍼티

public bool Flag_D
리턴 bool

Flag_I 공개적으로 프로퍼티

public bool Flag_I
리턴 bool

Flag_N 공개적으로 프로퍼티

public bool Flag_N
리턴 bool

Flag_V 공개적으로 프로퍼티

public bool Flag_V
리턴 bool

Flag_Z 공개적으로 프로퍼티

public bool Flag_Z
리턴 bool

IRQNextTime 공개적으로 프로퍼티

public bool IRQNextTime
리턴 bool

OpCode 공개적으로 프로퍼티

public byte OpCode
리턴 byte

PrevPc 공개적으로 프로퍼티

public ushort PrevPc
리턴 ushort

REG_A 공개적으로 프로퍼티

public byte REG_A
리턴 byte

REG_PC 공개적으로 프로퍼티

public ushort REG_PC
리턴 ushort

REG_S 공개적으로 프로퍼티

public byte REG_S
리턴 byte

REG_X 공개적으로 프로퍼티

public byte REG_X
리턴 byte

REG_Y 공개적으로 프로퍼티

public byte REG_Y
리턴 byte