emulator/cpu/processor.c
static bool action_check(elliott803_t *proc, const char *params) {

  if (exec_mode_stop == proc->mode) {
    const_reply(proc, "check stop");
    return true;
  }
  int polls = proc->wg_polls;
  proc->wg_polls = 0;

  if (0 == polls) {
    const_reply(proc, "check run");
  } else {
    char buffer[256];
    ssize_t n = snprintf(buffer, sizeof(buffer), "check wg=%d", polls);
    n = reply(proc, buffer, n + 1); // include '\0'
    assert(0 != n);
  }
  return true;
}
// check for stopped or word generator polling
check for stopped or word generator polling
check for stopped or word generator polling
static bool action_check(elliott803_t *proc, const char *params) {
  if (exec_mode_stop == proc->mode) {
    const_reply(proc, "check stop");
    return true;
  }
  int polls = proc->wg_polls;
  proc->wg_polls = 0;
  if (0 == polls) {
    const_reply(proc, "check run");
  } else {
    char buffer[256];
    ssize_t n = snprintf(buffer, sizeof(buffer), "check wg=%d", polls);
    n = reply(proc, buffer, n + 1); 
    assert(0 != n);
  }
  return true;
}
static bool action_check ( elliott803_t * proc , const char * params ) { if ( exec_mode_stop == proc -> mode ) { const_reply ( proc , " " ) ; return true ; } int polls = proc -> wg_polls ; proc -> wg_polls = 0 ; if ( 0 == polls ) { const_reply ( proc , " " ) ; } else { char buffer [ 256 ] ; ssize_t n = snprintf ( buffer , sizeof ( buffer ) , " " , polls ) ; n = reply ( proc , buffer , n + 1 ) ; assert ( 0 != n ) ; } return true ; }
check for stopped or word generator polling
check for stopped or word generator polling
// include '\0'