public final class SIDWrite extends Object
Constructor and Description |
---|
SIDWrite(int chip,
byte reg,
byte data,
int cycles)
This command is a general write command to SID.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getChip()
Gets the SID chip being used in this SIDWrite instance.
|
protected int |
getCycles()
Gets the number of cycles writing will take in this SIDWrite instance.
|
protected byte |
getRegister()
Gets the register being written to in this SIDWrite instance.
|
protected byte |
getValue()
Gets the value being written to the register in this SIDWrite instance.
|
protected boolean |
isEnd()
Is an "END" command?
|
protected boolean |
isPureDelay()
Is command a no-write command?
|
static SIDWrite |
makeEnd()
This command instructs AudioGeneratorThread to exit cleanly.
|
static SIDWrite |
makePureDelay(int sid,
int cycles)
This command instructs AudioGeneratorThread about the need to execute a
pure delay on specified SID.
|
public SIDWrite(int chip, byte reg, byte data, int cycles) throws InvalidCommandException
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.InvalidCommandException
public static SIDWrite makePureDelay(int sid, int cycles) throws InvalidCommandException
sid
- The SID to execute a pure delay on.cycles
- Amount of cycles to execute the pure delay for.InvalidCommandException
protected boolean isPureDelay()
public static SIDWrite makeEnd()
protected boolean isEnd()
protected int getChip()
protected byte getRegister()
protected byte getValue()
protected int getCycles()
Copyright © 2018 Ken Händel. All rights reserved.