예제 #1
0
 /** Activates the debugger display. */
 public void activate() {
   memoryAddress.setState(memoryAddressValue);
   memoryAddress.fireStateChanged();
   registerA.setState(cpu.getA());
   registerBC.setState(cpu.getBC());
   registerDE.setState(cpu.getDE());
   registerHL.setState(cpu.getHL());
   registerSP.setState(cpu.getSP());
   ledS.setState(cpu.isSF());
   ledZ.setState(cpu.isZF());
   ledAC.setState(cpu.isACF());
   ledP.setState(cpu.isPF());
   ledCY.setState(cpu.isCF());
   ledIE.setState(cpu.isIE());
   for (int i = 0; i < NUMBER_BREAKPOINTS; i++) {
     breakpoints[i].setState((long) breakpointValues.get(i));
   }
   programCounter.setState(cpu.getPC());
   programCounter.fireStateChanged();
   log.fine("Debugger display activated");
 }
예제 #2
0
 // auxiliary look-up method
 private void lookUp(final SiSDBlock block) {
   if (!block.isBlank()) {
     memoryAddress.setState(block.getState());
     memoryAddress.fireStateChanged();
   }
 }