~ubuntu-branches/ubuntu/jaunty/simh/jaunty

« back to all changes in this revision

Viewing changes to PDP11/pdp11_dz.c

  • Committer: Bazaar Package Importer
  • Author(s): Vince Mulhollon
  • Date: 2007-04-13 20:16:15 UTC
  • mfrom: (1.1.7 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20070413201615-jiar46bgkrs0dw2h
Tags: 3.7.0-1
* New upstream released 03-Feb-2007
* i7094 added which emulates the IBM 7090/7094
* Upstream has converted almost entirely to pdf format for docs
* All manpages updated
* All docs are registered with the doc-base system

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* pdp11_dz.c: DZ11 terminal multiplexor simulator
2
2
 
3
 
   Copyright (c) 2001-2005, Robert M Supnik
 
3
   Copyright (c) 2001-2006, Robert M Supnik
4
4
 
5
5
   Permission is hereby granted, free of charge, to any person obtaining a
6
6
   copy of this software and associated documentation files (the "Software"),
25
25
 
26
26
   dz           DZ11 terminal multiplexor
27
27
 
 
28
   29-Oct-06    RMS     Synced poll and clock
28
29
   22-Nov-05    RMS     Revised for new terminal processing routines
29
30
   07-Jul-05    RMS     Removed extraneous externs
30
31
   15-Jun-05    RMS     Revised for new autoconfigure interface
304
305
            (dz_csr[dz] & 0377) | (data << 8):
305
306
            (dz_csr[dz] & ~0377) | data;
306
307
        if (data & CSR_CLR) dz_clear (dz, FALSE);       /* clr? reset */
307
 
        if (data & CSR_MSE) sim_activate (&dz_unit, tmxr_poll);
 
308
        if (data & CSR_MSE)                             /* MSE? start poll */
 
309
            sim_activate (&dz_unit, clk_cosched (tmxr_poll));
308
310
        else dz_csr[dz] &= ~(CSR_SA | CSR_RDONE | CSR_TRDY);
309
311
        if ((data & CSR_RIE) == 0) dz_clr_rxint (dz);   /* RIE = 0? */
310
312
        else if (((dz_csr[dz] & CSR_IE) == 0) &&        /* RIE 0->1? */