|
|||||||||||
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.Sid
The MOS 6581 Sound Interface Device.
Voice
Constructor Summary | |
Sid()
Create an instance. |
Method Summary | |
Port[] |
getPorts()
Get an array of the chip's ports. |
boolean |
isSoundOn()
Check whether sound is active. |
byte |
read(int portId)
Read a byte from the given address. |
void |
reset()
Reset the chip to a defined state. |
void |
setSoundOn(boolean what)
Activate or deactivate sound. |
void |
write(int portId,
byte value)
Write a byte into the given address. |
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 Sid()
Method Detail |
public byte read(int portId)
Addressable
portId
- The source address.
public void write(int portId, byte value)
Addressable
portId
- The target address.value
- The value to be written.public Port[] getPorts()
Chip
null
if this
chip does not support ports.
public void reset()
Chip
public boolean isSoundOn()
true
if the sound is switched on.setSoundOn(boolean)
public void setSoundOn(boolean what)
what
- True
if the sound is to be switched on,
false
to switch sound off.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |