Package libsidplay.common
Klasse SIDEmu
java.lang.Object
libsidplay.common.SIDEmu
Base class for hardware or software based SID emulation. All register write
access is recorded and can be read by
readInternalRegister(int)
(side-effect free).- Autor:
- ken
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract voidclock()abstract voidinput(int input) abstract byteread(int addr) bytereadInternalRegister(int addr) Side effect free read access.abstract voidreset(byte volume) abstract voidsetChipModel(ChipModel model) abstract voidsetClockFrequency(double cpuFrequency) abstract voidsetDigiBoost(boolean digiBoost) abstract voidabstract voidsetFilterEnable(IEmulationSection emulation, int sidNum) abstract voidsetVoiceMute(int num, boolean mute) voidwrite(int addr, byte data)
-
Felddetails
-
NONE
no SID chip -
registers
private final byte[] registersInternal cache of SID register state, used for GUI feedback.
-
-
Konstruktordetails
-
SIDEmu
public SIDEmu()
-
-
Methodendetails
-
readInternalRegister
public byte readInternalRegister(int addr) Side effect free read access.- Parameter:
addr- address to read- Gibt zurück:
- register value recorded since last write access
-
write
public void write(int addr, byte data) -
reset
public abstract void reset(byte volume) -
read
public abstract byte read(int addr) -
clock
public abstract void clock() -
setChipModel
-
setClockFrequency
public abstract void setClockFrequency(double cpuFrequency) -
input
public abstract void input(int input) -
setDigiBoost
public abstract void setDigiBoost(boolean digiBoost) -
setVoiceMute
public abstract void setVoiceMute(int num, boolean mute) -
setFilter
-
setFilterEnable
-