Bug fix: check if vm exists
[avr-sim.git] / SimulationClock.cpp
blob66c8c788188dda77b78b46706fa6952b609cae55
1 #include "SimulationClock.h"
2 #include "SimulationObject.h"
4 namespace avr {
6 void SimulationClock::exec() {
7 while( ! finished ) {
8 if( (maxTicks != 0) && (ticks() >= maxTicks) )
9 finished = true;
10 else
11 step();