|
||||||||||
| 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 Hardwarepublic int getNumberOfBits()
getNumberOfBits in interface Hardwarepublic int getNumberOfUnits()
getNumberOfUnits in interface Devicepublic int getValue(int address)
DevicegetByte should be
supported.getValue in interface Devicejfrace.Deviceaddress - Memory address.
public void setValue(int address,
int value)
DevicesetByte should be
supported.setValue in interface Devicejfrace.Deviceaddress - Memory address.value - the new value.public byte getByte(int address)
DevicegetValue but has a better performance.
getByte in interface Devicejfrace.Deviceaddress - Memory address.address.
public void setByte(int address,
byte value)
DevicesetValue but has a better performance.
setByte in interface Devicejfrace.Deviceaddress - 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 | |||||||||