|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jfrace.device.GI_AY_3_8910
This class emulates General Instrument's AY-3-8910 Programmble Sound Generator. Clock rate is assumed to be 4MHz. Note: Noise is not implemented. It uses the undocumented sun.audio package which is a part of any JDK.
Constructor Summary | |
GI_AY_3_8910()
Creates a new instance. |
Method Summary | |
byte |
getByte(int address)
Get the byte at the given address. |
int |
getNumberOfBits()
Return 8. |
int |
getNumberOfUnits()
Return 2. |
int |
getValue(int address)
Get the value of the addressable unit at the given address. |
void |
reset()
Reset the sound generator. |
void |
setByte(int address,
byte value)
Set the byte at the given address. |
void |
setValue(int address,
int value)
Set the value of the addressable unit at the given address. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GI_AY_3_8910()
Method Detail |
public void reset()
reset
in interface Hardware
public int getNumberOfBits()
getNumberOfBits
in interface Hardware
public int getNumberOfUnits()
getNumberOfUnits
in interface Device
public int getValue(int address)
Device
getByte
should be
supported.getValue
in interface Device
jfrace.Device
address
- Memory address.public void setValue(int address, int value)
Device
setByte
should be
supported.setValue
in interface Device
jfrace.Device
address
- Memory address.value
- the new value.public byte getByte(int address)
Device
getValue
but has a better performance.
getByte
in interface Device
jfrace.Device
address
- Memory address.address
.public void setByte(int address, byte value)
Device
setValue
but has a better performance.
setByte
in interface Device
jfrace.Device
address
- Memory address.value
- new value of the byte at address
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |