C# Class NesHd.Core.Memory.Memory

The main class for memory including RAM, IO, SRAM and PRG
Afficher le fichier Open project: afonsof/nes-hd Class Usage Examples

Méthodes publiques

Свойство Type Description
JoyData1 int
JoyData2 int
JoyStrobe byte
WriteOnRam bool
Zapper NesHd.Core.Input.Zapper

Méthodes publiques

Méthode Description
LoadCart ( string romPath ) : bool
Memory ( NesEngine engine ) : NesHd.Core.Debugger
Read ( ushort address ) : byte

Read a value from the memory at a specific address

Read16 ( ushort address ) : ushort

Read an address from the memory

Write ( ushort address, byte value ) : byte

Write a value into the memory at the specific address

Private Methods

Méthode Description
InitializeMemory ( ) : void

Initialize and clear the memory

Method Details

LoadCart() public méthode

public LoadCart ( string romPath ) : bool
romPath string
Résultat bool

Memory() public méthode

public Memory ( NesEngine engine ) : NesHd.Core.Debugger
engine NesEngine
Résultat NesHd.Core.Debugger

Read() public méthode

Read a value from the memory at a specific address
public Read ( ushort address ) : byte
address ushort The address to read from
Résultat byte

Read16() public méthode

Read an address from the memory
public Read16 ( ushort address ) : ushort
address ushort
Résultat ushort

Write() public méthode

Write a value into the memory at the specific address
public Write ( ushort address, byte value ) : byte
address ushort
value byte
Résultat byte

Property Details

JoyData1 public_oe property

public int JoyData1
Résultat int

JoyData2 public_oe property

public int JoyData2
Résultat int

JoyStrobe public_oe property

public byte JoyStrobe
Résultat byte

WriteOnRam public_oe property

public bool WriteOnRam
Résultat bool

Zapper public_oe property

public Zapper,NesHd.Core.Input Zapper
Résultat NesHd.Core.Input.Zapper