jmce - 1_02

jmce.atmel
Class AT89C51RD2

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.cpu.AbstractCPU
          extended by jmce.intel.mcs51.MCS51
              extended by jmce.intel.mcs51.MCS52
                  extended by jmce.atmel.AT89C51RD2
All Implemented Interfaces:
java.lang.Runnable, AT89C51RD2Constants, MCS51Constants, MCS52Constants, BreakPointListener, CallListener, CPU, Hardware, InterruptManager
Direct Known Subclasses:
S400

public class AT89C51RD2
extends MCS52
implements AT89C51RD2Constants, CallListener

Atmel 89C51Rxx cpu.

Version:
1.01
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.intel.mcs51.MCS51
CODE_MEMORY, DATA_MEMORY, SFR_MEMORY, XDATA_MEMORY
 
Fields inherited from class jmce.sim.cpu.AbstractCPU
interrupts, io, memory, NS100MS, NS1MS
 
Fields inherited from interface jmce.atmel.AT89C51RD2Constants
CKCON, P4, P5
 
Fields inherited from interface jmce.intel.mcs51.MCS52Constants
IEN0, IEN0_ET2, IEN1, RCAP2H, RCAP2L, T2CON, T2CON_CP, T2CON_TF2, T2CON_TR2, T2MOD, T2MOD_DCEN, TH2, TL2
 
Fields inherited from interface jmce.intel.mcs51.MCS51Constants
ACC, AUXR1, B, DPH, DPL, IE, IE_EA, IE_EC, IE_ES, IE_ET0, IE_ET1, IE_ET2, IE_EX0, IE_EX1, P0, P0M1, P0M2, P1, P1M1, P1M2, P2, P2M1, P2M2, P3, P3M1, P3M2, PSW, PSW_AC, PSW_CY, PSW_F0, PSW_F1, PSW_OV, PSW_P, PSW_RS0, PSW_RS1, SBUF, SCON, SCON_RI, SCON_TI, SP, TCON, TCON_TF0, TCON_TF1, TCON_TR0, TCON_TR1, TH0, TH1, TL0, TL1, TMOD, TMOD_C_T0, TMOD_C_T1, TMOD_GATE0, TMOD_GATE1, TMOD_T0_M0, TMOD_T0_M1, TMOD_T1_M0, TMOD_T1_M1
 
Fields inherited from interface jmce.sim.CPU
BIG_ENDIAN, IO_MEMORY, LITTLE_ENDIAN, MAIN_MEMORY
 
Constructor Summary
AT89C51RD2()
           
 
Method Summary
 int call(CPU cpu, int pc)
          Method called when the CPU execute at specified address.
protected  void initListeners()
          Add all required memory listeners
protected  void initMemories()
          Initialize the memories.
protected  void initNames()
           
protected  void initPeripherals()
          Initialize peripherals.
 
Methods inherited from class jmce.intel.mcs51.MCS51
ac, ac, acc, acc, addSfrReadListener, addSfrWriteListener, code, code, code16, cplBit, cy, cy, data, data, fireISR, getBit, getBitCode, getBitName, getData, getDataName, getDirect, getDirectCode, getDirectName, getDptr, getSfr, getSfrBit, getSfrBitOpenCollector, getSfrName, getWord, getXdata, getXdataHi, init, initOpcodeDecoder, initOpcodes, initRegisters, isInterruptEnabled, ov, ov, pc, pc, pop, popw, psw, psw, push, pushw, r, r, reset, setAuxrDptrEnabled, setBit, setBitName, setData, setDataName, setDirect, setDptrIndex, setSfr, setSfrBitmap, setSfrName, setSfrXdataHi, setWord, setXdata, sfr, sfr, sfrIsBit, sfrReset, sfrSet, sfrSetBit, xdata, xdata
 
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, 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

AT89C51RD2

public AT89C51RD2()
Method Detail

initMemories

protected void initMemories()
Description copied from class: MCS51
Initialize the memories.

Overrides:
initMemories in class MCS52

initNames

protected void initNames()
Overrides:
initNames in class MCS52

initPeripherals

protected void initPeripherals()
                        throws SIMException
Description copied from class: MCS51
Initialize peripherals.

Overrides:
initPeripherals in class MCS52
Throws:
SIMException

initListeners

protected void initListeners()
                      throws SIMException
Description copied from class: MCS51
Add all required memory listeners

Overrides:
initListeners in class MCS51
Throws:
SIMException

call

public int call(CPU cpu,
                int pc)
         throws SIMException
Description copied from interface: CallListener
Method called when the CPU execute at specified address.

Specified by:
call in interface CallListener
Parameters:
cpu - - CPU.
pc - - Address in memory.
Returns:
The number of CPU cycle elapsed.
Throws:
SIMException

jmce - 1_02