public void reset(){
  pc=0;
  acc=0;
  bak=0;
  last=Optional.empty();
  instructions.forEach(null);
}

public void reset ( ) { pc = 0 ; acc = 0 ; bak = 0 ; last = Optional . empty ( ) ; instructions . forEach ( null ) ; }
soft reset the machine state .
