C# Class Ypsilon.Emulation.Processor.YBUS

A representation of a address/data bus that has 16 generic slots. Device in slot zero is YCPU. Other slots can hold devices that inherit from ADevice.
Afficher le fichier Open project: ZaneDubya/YCPU Class Usage Examples

Méthodes publiques

Свойство Type Description
CPU YCPU

Méthodes publiques

Méthode Description
AcknowledgeIRQ ( ushort deviceIndex ) : void
AddDevice ( ADevice device, ushort index ) : void

Adds a device to specified slot index. INDEX MUST BE 1 - 16.

Display ( List textures ) : void
FillROM ( byte rom ) : void
QueryDevice ( ushort deviceIndex ) : ushort[]
RemoveDevice ( ushort index ) : void

Adds a device in the specified slot index. INDEX MUST BE 1 - 16.

Reset ( ) : void

Removes all RAM, ROM, Devices, and any segment references to the same.

SendDeviceMessage ( ushort deviceIndex, ushort param_0, ushort param_1 ) : ushort
SetProviders ( IDisplayProvider display, IInputProvider input ) : void
SetRAM ( uint ramSize ) : void
SetROM ( uint romSize ) : void
Update ( ) : void
YBUS ( YCPU cpu ) : System.Collections.Generic

Private Methods

Méthode Description
AddSegmentToReferences ( Segment segment ) : void
Device_RaiseIRQ ( ADevice device ) : void
GetDeviceMemoryReference ( Segment segment, ushort deviceIndex ) : void

Returns the byte array of memory attached to the device. Accepts values from 0 - 16. Device 0 is ROM.

GetRAMReference ( Segment segment ) : void
GetROMReference ( Segment segment ) : void

Method Details

AcknowledgeIRQ() public méthode

public AcknowledgeIRQ ( ushort deviceIndex ) : void
deviceIndex ushort
Résultat void

AddDevice() public méthode

Adds a device to specified slot index. INDEX MUST BE 1 - 16.
public AddDevice ( ADevice device, ushort index ) : void
device ADevice
index ushort
Résultat void

Display() public méthode

public Display ( List textures ) : void
textures List
Résultat void

FillROM() public méthode

public FillROM ( byte rom ) : void
rom byte
Résultat void

QueryDevice() public méthode

public QueryDevice ( ushort deviceIndex ) : ushort[]
deviceIndex ushort
Résultat ushort[]

RemoveDevice() public méthode

Adds a device in the specified slot index. INDEX MUST BE 1 - 16.
public RemoveDevice ( ushort index ) : void
index ushort
Résultat void

Reset() public méthode

Removes all RAM, ROM, Devices, and any segment references to the same.
public Reset ( ) : void
Résultat void

SendDeviceMessage() public méthode

public SendDeviceMessage ( ushort deviceIndex, ushort param_0, ushort param_1 ) : ushort
deviceIndex ushort
param_0 ushort
param_1 ushort
Résultat ushort

SetProviders() public méthode

public SetProviders ( IDisplayProvider display, IInputProvider input ) : void
display IDisplayProvider
input IInputProvider
Résultat void

SetRAM() public méthode

public SetRAM ( uint ramSize ) : void
ramSize uint
Résultat void

SetROM() public méthode

public SetROM ( uint romSize ) : void
romSize uint
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

YBUS() public méthode

public YBUS ( YCPU cpu ) : System.Collections.Generic
cpu YCPU
Résultat System.Collections.Generic

Property Details

CPU public_oe property

public YCPU,Ypsilon.Emulation.Processor CPU
Résultat YCPU