Skip to content

Commit

Permalink
Merge pull request #22 from PDP-10/massbus-serial-numbers
Browse files Browse the repository at this point in the history
Massbus serial numbers
  • Loading branch information
Rhialto authored May 14, 2017
2 parents 4690de5 + b60c1e8 commit 3f3945f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dvrpxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ rp_conf(FILE *f, char *s, struct rpdev *rp)
rp->rp_iswrite = TRUE;
partyp(rp, DVRP_DEFAULT_DISK); /* Default disk config */
RPREG(rp, RHR_SN) = /* Serial Number register (BCD) */
(((1 / 1000)%10) << 12)
| (((6 / 100)%10) << 8)
(((1600 / 1000)%10) << 12)
| (((1600 / 100)%10) << 8)
| (((nrps / 10)%10) << 4)
| (((nrps )%10) );
rp->rp_bufsec = 4; /* # sectors in buffer */
Expand Down
4 changes: 2 additions & 2 deletions src/dvtm03.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ tm03_conf(FILE *f, char *s, struct tmdev *tm)
tm->tm_typ = TM_DTTM03; /* Say formatter is TM03 for now */
tm->tm_styp = TM_DT45; /* Say slave is TU45 for now */
TMREG(tm, RHR_SN) = /* Serial Number register (BCD) */
(((9 / 1000)%10) << 12)
| (((9 / 100)%10) << 8)
(((9900 / 1000)%10) << 12)
| (((9900 / 100)%10) << 8)
| (((ntms / 10)%10) << 4)
| (((ntms )%10) );
#if KLH10_DEV_DPTM03
Expand Down

0 comments on commit 3f3945f

Please sign in to comment.