|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmce.sim.AbstractHardware
jmce.sim.AbstractPeripheral
jmce.mos.VIC6561
public class VIC6561
VIC6561
Video Interface controller based over MOS 6561.
00 - Control register 00 BIT 7 Interlaced BIT 6-0 Screen origin X - Coordinate 01 - Control register 01 Screen origin Y - Coordinate 02 - Control register 02 Bit 7 Bit 9 of video/colour ram address. Bit 6-0 Number of columns 03 - Control register 03 Bit 7 User for light pen Bit 6-1 Number of rows Bit 0 Font size 0=8x8 , 1=8x16 0A - Control register 0A Frequence channel 0 x 16 0B - Control register 0B Frequence channel 1 x 8 0C - Control register 0C Frequence channel 2 x 4 0D - Control register 0D Frequence noise generator x 16 0E - Control register 0E Volume 0 .. 15 0F - Control register 0F Bit 7-4 Background color 0-15. Bit 3 Reverse screen when 0. BIT 2-0 Border color.
Field Summary | |
---|---|
static int |
CR2
Control register 2 number of columns |
static int |
CR3
Control register 3 number of rows |
static int |
CR5
Control register 5 memory address |
static int |
CRE
Control register E |
static int |
CRF
Control register F color |
static int[] |
noisepattern
|
static int |
sample
|
protected int |
scaleHeight
|
protected int |
scaleWidth
|
protected int |
sizeHeight
|
protected int |
sizeWidth
|
Fields inherited from class jmce.sim.AbstractPeripheral |
---|
cpu |
Constructor Summary | |
---|---|
VIC6561()
|
Method Summary | |
---|---|
int |
convertAddress(int add)
Convert an address from the video memory. |
void |
cycle(int n)
Cycle listener. |
int |
getBase()
Return the base address |
java.awt.Component |
getComponent()
|
protected int |
getVideoByte(int add)
|
int |
readMemory(Memory memory,
int address,
int value)
Called when the memory is readed. |
void |
registerCPU(CPU cpu)
Register a parent CPU for future reference. |
void |
setBase(int base)
Set the base address |
void |
setScaleHeight(int n)
Set scale height |
void |
setScaleWidth(int n)
Set scale width |
void |
setSizeHeight(int n)
Set screen height |
void |
setSizeWidth(int n)
Set screen width |
java.lang.String |
toString()
|
void |
writeMemory(Memory memory,
int address,
int value,
int oldValue)
Called when a memory write event occours. |
Methods inherited from class jmce.sim.AbstractPeripheral |
---|
idle, setIdle, setLive |
Methods inherited from class jmce.sim.AbstractHardware |
---|
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jmce.sim.Hardware |
---|
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName |
Field Detail |
---|
public static int sample
protected int scaleWidth
protected int scaleHeight
protected int sizeWidth
protected int sizeHeight
public static final int[] noisepattern
public static final int CR2
public static final int CR3
public static final int CR5
public static final int CRE
public static final int CRF
Constructor Detail |
---|
public VIC6561()
Method Detail |
---|
public void setSizeWidth(int n)
public void setSizeHeight(int n)
public void setScaleWidth(int n)
public void setScaleHeight(int n)
public int getBase()
public void setBase(int base)
public int convertAddress(int add)
add
- - Address of memory.
protected int getVideoByte(int add) throws SIMException
SIMException
public void registerCPU(CPU cpu) throws SIMException
Peripheral
registerCPU
in interface Peripheral
registerCPU
in class AbstractPeripheral
SIMException
public int readMemory(Memory memory, int address, int value) throws SIMException
MemoryReadListener
This is method is called to notify a read at the specified memory loction.
readMemory
in interface MemoryReadListener
memory
- - Memory readed.address
- - Address where the operation occours.value
- - Value readed from the phisical memory or
from previus installed listener.
SIMException
public void writeMemory(Memory memory, int address, int value, int oldValue) throws SIMException
MemoryWriteListener
This method is called when a memory write operation occours in the specified memory.
writeMemory
in interface MemoryWriteListener
memory
- - Memory involved in the write operation.address
- - Address written.value
- - Value written.oldValue
- - Old value of this memory location.
SIMException
public java.awt.Component getComponent()
getComponent
in interface SwingHardware
public void cycle(int n) throws SIMException
CycleListener
cycle
in interface CycleListener
n
- - The number of microprocessor cycle elapsed from
the last call.
SIMException
CPU.addCycleListener(jmce.sim.CycleListener)
public java.lang.String toString()
toString
in class AbstractHardware
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |