|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.michab.simulator.DefaultChip de.michab.simulator.mos6502.Cia
Represents an instance of the 64's 6526 Complex Input/output Adapter. Represents a facade to the classes implementing the functional components of the chip and is responsible for dispatching the values written into or read from this chip's registers.
Constructor Summary | |
Cia(Cpu6510 cpu,
Clock clock)
Creates a CIA. |
Method Summary | |
void |
connectPortA(Forwarder listener)
Connects IO port A to a bus that is written on each internal write operation on that port. |
void |
connectPortB(Forwarder listener)
Connects IO port B to a bus that is written on each internal write operation on that port. |
Forwarder |
getInputPortA()
Get a writeable reference to port A. |
Forwarder |
getInputPortB()
Get a writeable reference to port B. |
Port[] |
getPorts()
Get an array of the chip's ports. |
byte |
read(int portId)
The central read entry. |
void |
reset()
Resets the Chip. |
void |
write(int portId,
byte value)
This is the common write entry. |
Methods inherited from class de.michab.simulator.DefaultChip |
createPorts |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Cia(Cpu6510 cpu, Clock clock)
cpu
- The CPU receiving the interrupts.Method Detail |
public void connectPortA(Forwarder listener)
public void connectPortB(Forwarder listener)
public Forwarder getInputPortA()
public Forwarder getInputPortB()
public byte read(int portId)
portId
- The source address.
public void write(int portId, byte value)
portId
- The port to write.value
- The value to write.public Port[] getPorts()
Chip
null
if this
chip does not support ports.
public void reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |