jmce - 1_02

jmce.commodore.vic20
Class VIC6561

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.AbstractPeripheral
          extended by jmce.mos.VIC6561
              extended by jmce.commodore.vic20.VIC6561
All Implemented Interfaces:
CycleListener, Hardware, MemoryReadListener, MemoryWriteListener, Peripheral, SwingHardware

public class VIC6561
extends VIC6561

Special implementation of VIC6561 for commodore VIC20.

The bit 13 of address ememory from 6561 is connected to the bit 15 of the CPU.

Since:
1.01
Version:
1.00
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.mos.VIC6561
CR2, CR3, CR5, CRE, CRF, noisepattern, sample, scaleHeight, scaleWidth, sizeHeight, sizeWidth
 
Fields inherited from class jmce.sim.AbstractPeripheral
cpu
 
Constructor Summary
VIC6561()
          Cosntructor with vic20 parameters.
 
Method Summary
 int convertAddress(int add)
          Convert an address from the video memory.
 
Methods inherited from class jmce.mos.VIC6561
cycle, getBase, getComponent, getVideoByte, readMemory, registerCPU, setBase, setScaleHeight, setScaleWidth, setSizeHeight, setSizeWidth, toString, writeMemory
 
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
 

Constructor Detail

VIC6561

public VIC6561()
Cosntructor with vic20 parameters.

Method Detail

convertAddress

public int convertAddress(int add)
Description copied from class: VIC6561
Convert an address from the video memory. Can be override from subclass if the 6561 is the address line are not all connected in the correct order. For example the VIC20 have the A13 connected to the inverse of A15. This is necessary because the VIC6561 have only 14 address bit and normally is connected to cpu with 16 bit address.

Overrides:
convertAddress in class VIC6561
Parameters:
add - - Address of memory.
Returns:
The address in CPU format.

jmce - 1_02