jmce - 1_02

jmce.commodore.vic20
Class VIC20

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.cpu.AbstractCPU
          extended by jmce.mos.M6502
              extended by jmce.commodore.vic20.VIC20
All Implemented Interfaces:
java.lang.Runnable, M65XXConstants, BreakPointListener, CPU, Hardware, InterruptManager

public class VIC20
extends M6502

Commodore VIC20 emulator.

Emulated peripheral

Memory map

Since:
1.01
Version:
1.00
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.sim.cpu.AbstractCPU
interrupts, io, memory, NS100MS, NS1MS
 
Fields inherited from interface jmce.mos.M65XXConstants
BRK_VECTOR, IRQ_VECTOR, NMI_VECTTOR, P_B, P_C, P_D, P_E, P_I, P_S, P_V, P_Z, RESET_VECTOR, S_PAGE, Z_PAGE
 
Fields inherited from interface jmce.sim.CPU
BIG_ENDIAN, IO_MEMORY, LITTLE_ENDIAN, MAIN_MEMORY
 
Constructor Summary
VIC20()
           
 
Method Summary
 int getRamExp()
          Return the installed ram expansion
protected  void initMemories()
           
protected  void initPeripherals()
          No peripherals are build in on 6502 this function is present only for compatibility
 void reset()
          Reset the CPU and call all installed ResetListener.
 void setRamExp(int ramexp)
          Set the installed ram expansion
 
Methods inherited from class jmce.mos.M6502
dumpStatistics, fireISR, getWord, init, initRegisters, isInterruptEnabled, pc, pc, pop, pop16, push, push16, setWord, vectorToAddress
 
Methods inherited from class jmce.sim.cpu.AbstractCPU
abort, addCycleListener, addDecoder, addExceptionListener, addExecBreakPoint, addInterrupt, addIOReadListener, addIOReadListener, addIOWriteListener, addIOWriteListener, addLoader, addMemoryWriteListener, addOffset, addReadBreakPoint, addRegister, addResetListener, addTimerCycle, addTimerMs, addTraceListener, addWriteBreakPoint, bit0, bit7, breakPointEvent, createRuntime, decodeAt, destroy, dumpStatistics, dumpTitle, dumpValue, dumpValue, fetch, fireNMI, formatFrequence, getBreakPointAt, getBreakPointCount, getByte, getCallListener, getClock, getClockPerCycle, getCycle, getCycleMillis, getDecoderAt, getDecoderCount, getEndian, getExceptionListenerAt, getExceptionListenerCount, getExecStatistics, getInterruptCount, getInterruptCounter, getInterruptName, getIOByte, getLenghtAt, getMemory, getMemoryAt, getMemoryCount, getMemoryForName, getOpcodeAt, getOpcodes, getRealTime, getRegisterAt, getRegisterCount, getRegisterForName, getResetAddress, getUsage, getUsageDesc, getWordBig, getWordLittle, halt, idle, isBigEndian, isLittleEndian, isRunning, load, load, notifyInterrupt, removeBreakPoint, removeBreakPoint, removeExceptionListener, removeTraceListener, resetRegisters, run, run0, setByte, setCallListener, setClock, setClockPerCycle, setEndian, setIO, setIOByte, setMemory, setOpcode, setRealTime, setResetAddress, setStatusLine, setTill, start, step, step0, stepNoBreak, stop
 
Methods inherited from class jmce.sim.AbstractHardware
addHardware, createFrame, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, setHardware, setHardware, setName, toString
 
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, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, setHardware, setHardware, setName
 

Constructor Detail

VIC20

public VIC20()
Method Detail

setRamExp

public void setRamExp(int ramexp)
Set the installed ram expansion


getRamExp

public int getRamExp()
Return the installed ram expansion


initPeripherals

protected void initPeripherals()
                        throws SIMException
Description copied from class: M6502
No peripherals are build in on 6502 this function is present only for compatibility

Overrides:
initPeripherals in class M6502
Throws:
SIMException

reset

public void reset()
           throws SIMException
Description copied from class: AbstractCPU
Reset the CPU and call all installed ResetListener.

Reset is performed in this order :

Specified by:
reset in interface Hardware
Overrides:
reset in class M6502
Throws:
SIMException

initMemories

protected void initMemories()
                     throws SIMException
Overrides:
initMemories in class M6502
Throws:
SIMException

jmce - 1_02