|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.sim.BaseInterpreter
avrora.sim.FIFInterpreter
| Nested classes inherited from class avrora.sim.BaseInterpreter |
BaseInterpreter.AddressOutOfBoundsException, BaseInterpreter.NoSuchInstructionException, BaseInterpreter.PCAlignmentException, BaseInterpreter.PCOutOfBoundsException |
| Nested classes inherited from class avrora.sim.State |
State.IOReg, State.RWIOReg |
| Field Summary | |
protected FIFInterpreter.FIFInstr |
curInstr
|
protected FIFInterpreter.FIFInstr[] |
fifMap
|
protected FIFInterpreter.FIFInstr |
nextInstr
|
static int |
R0
|
static int |
R1
|
static int |
RZ
|
| Fields inherited from class avrora.sim.BaseInterpreter |
C, cyclesConsumed, delayCycles, eventQueue, flash_data, flash_instr, globalProbe, H, I, innerLoop, ioregs, justReturnedFromInterrupt, N, nextPC, pc, postedInterrupts, regs, S, shouldRun, simulator, sleeping, sram, sram_max, sram_probes, sram_start, SREG_reg, T, totalCycles, V, Z |
| Fields inherited from interface avrora.sim.State |
RESERVED |
| Fields inherited from interface avrora.sim.IORegisterConstants |
ACSR, ADCH, ADCL, ADCSRA, ADMUX, ASSR, DDRA, DDRB, DDRC, DDRD, DDRE, DDRF, DDRG, EEARH, EEARL, EECR, EEDR, EICRA, EICRB, EIFR, EIMSK, ETIFR, ETIMSK, ICR1H, ICR1L, ICR3H, ICR3L, MCUCR, MCUCSR, NUM_REGS, OCDR, OCR0, OCR1AH, OCR1AL, OCR1BH, OCR1BL, OCR1CH, OCR1CL, OCR2, OCR3AH, OCR3AL, OCR3BH, OCR3BL, OCR3CH, OCR3CL, OSCCAL, PINA, PINB, PINC, PIND, PINE, PINF, PING, PORTA, PORTB, PORTC, PORTD, PORTE, PORTF, PORTG, RAMPZ, SFIOR, SPCR, SPDR, SPH, SPL, SPMCSR, SPSR, SREG, SREG_C, SREG_H, SREG_I, SREG_N, SREG_S, SREG_T, SREG_V, SREG_Z, TCCR0, TCCR1A, TCCR1B, TCCR1C, TCCR2, TCCR3A, TCCR3B, TCCR3C, TCNT0, TCNT1H, TCNT1L, TCNT2, TCNT3H, TCNT3L, TIFR, TIMSK, TWAR, TWBR, TWCR, TWDR, TWSR, UBRR0H, UBRR0L, UBRR1H, UBRR1L, UCSR0A, UCSR0B, UCSR0C, UCSR1A, UCSR1B, UCSR1C, UDR0, UDR1, WDTCR, XDIV, XMCRA, XMCRB |
| Constructor Summary | |
FIFInterpreter(Simulator s,
Program p,
int fs,
int is,
int ss)
|
|
| Method Summary | |
int |
getPC()
The getPC() retrieves the current program counter. |
protected byte |
getRegisterByte(int reg)
|
protected int |
getRegisterUnsigned(int reg)
|
protected int |
getRegisterWord(int reg)
|
void |
insertBreakPoint(int addr)
|
void |
insertProbe(Simulator.Probe p)
The insertProbe() method allows a probe to be inserted
that is executed before and after every instruction that is executed
by the simulator |
void |
insertProbe(Simulator.Probe p,
int prog_addr)
|
void |
removeBreakPoint(int addr)
|
void |
removeProbe(Simulator.Probe p)
The removeProbe() method removes a probe from the global
probe table (the probes executed before and after every instruction).
|
void |
removeProbe(Simulator.Probe p,
int prog_addr)
|
protected void |
runLoop()
|
protected void |
setRegisterByte(int reg,
byte val)
|
protected void |
setRegisterWord(int reg,
int val)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected FIFInterpreter.FIFInstr[] fifMap
protected FIFInterpreter.FIFInstr curInstr
protected FIFInterpreter.FIFInstr nextInstr
public static final int R0
public static final int RZ
public static final int R1
| Constructor Detail |
public FIFInterpreter(Simulator s,
Program p,
int fs,
int is,
int ss)
| Method Detail |
public void insertProbe(Simulator.Probe p)
BaseInterpreterinsertProbe() method allows a probe to be inserted
that is executed before and after every instruction that is executed
by the simulator
insertProbe in class BaseInterpreterp - the probe to insert
public void insertProbe(Simulator.Probe p,
int prog_addr)
insertProbe in class BaseInterpreterpublic void removeProbe(Simulator.Probe p)
BaseInterpreterremoveProbe() method removes a probe from the global
probe table (the probes executed before and after every instruction).
The comparison used is reference equality, not .equals().
removeProbe in class BaseInterpreterp - the probe to remove
public void removeProbe(Simulator.Probe p,
int prog_addr)
removeProbe in class BaseInterpreterpublic void insertBreakPoint(int addr)
insertBreakPoint in class BaseInterpreterpublic void removeBreakPoint(int addr)
removeBreakPoint in class BaseInterpreterprotected void runLoop()
runLoop in class BaseInterpreterpublic int getPC()
BaseInterpretergetPC() retrieves the current program counter.
getPC in interface StategetPC in class BaseInterpreterprotected int getRegisterUnsigned(int reg)
protected byte getRegisterByte(int reg)
protected void setRegisterByte(int reg,
byte val)
protected int getRegisterWord(int reg)
protected void setRegisterWord(int reg,
int val)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||