Package server.netsiddev
Klasse SIDWrite
java.lang.Object
server.netsiddev.SIDWrite
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected intgetChip()Gets the SID chip being used in this SIDWrite instance.protected intGets the number of cycles writing will take in this SIDWrite instance.protected byteGets the register being written to in this SIDWrite instance.protected bytegetValue()Gets the value being written to the register in this SIDWrite instance.protected booleanisEnd()Is an "END" command?protected booleanIs command a no-write command?static SIDWritemakeEnd()This command instructs AudioGeneratorThread to exit cleanly.static SIDWritemakePureDelay(int sid, int cycles) This command instructs AudioGeneratorThread about the need to execute a pure delay on specified SID.
-
Felddetails
-
chip
private final int chip -
reg
private final byte reg -
value
private final byte value -
cycles
private final int cycles -
pureDelay
private boolean pureDelay -
end
private boolean end
-
-
Konstruktordetails
-
SIDWrite
This command is a general write command to SID. Reg must be between 0 .. 0x1f and cycles > 0.- Parameter:
chip- The specified SID chip to write to.reg- The SID register to write to.data- The data to write to the specified SID register.cycles- Cycles to spend on writing the data.- Löst aus:
InvalidCommandException
-
SIDWrite
- Löst aus:
InvalidCommandException
-
SIDWrite
private SIDWrite()
-
-
Methodendetails
-
makePureDelay
This command instructs AudioGeneratorThread about the need to execute a pure delay on specified SID. Throws if cycles < 0.- Parameter:
sid- The SID to execute a pure delay on.cycles- Amount of cycles to execute the pure delay for.- Gibt zurück:
- A new SIDWrite instance.
- Löst aus:
InvalidCommandException
-
isPureDelay
protected boolean isPureDelay()Is command a no-write command?- Gibt zurück:
- True if the SIDWrite object is a no-write command; false otherwise.
-
makeEnd
This command instructs AudioGeneratorThread to exit cleanly.- Gibt zurück:
- A new SIDWrite instance.
-
isEnd
protected boolean isEnd()Is an "END" command?- Gibt zurück:
- True if the SIDWrite object is an END command; false otherwise.
-
getChip
protected int getChip()Gets the SID chip being used in this SIDWrite instance.- Gibt zurück:
- The SID chip being used in this SIDWrite instance.
-
getRegister
protected byte getRegister()Gets the register being written to in this SIDWrite instance.- Gibt zurück:
- The register being written to in this SIDWrite instance.
-
getValue
protected byte getValue()Gets the value being written to the register in this SIDWrite instance.- Gibt zurück:
- The value being written to the register in this SIDWrite instance.
-
getCycles
protected int getCycles()Gets the number of cycles writing will take in this SIDWrite instance.- Gibt zurück:
- The number of cycles writing will take in this SIDWrite instance.
-