@Override
	public void run() {
		try {
			while (poweredOn && programCounter.getValue() < memory.length){
				Thread.sleep(1000 / frequency);
				if (liveMode || isSteppable())
					nextOperation();
			}
		} catch (Exception e) {
			e.printStackTrace();
			poweredOn = false;
		}
	}