1
0
mirror of https://github.com/open-simh/simh.git synced 2026-04-25 03:44:58 +00:00

PDP8: Fix device conflict warnings to report problems correctly

As reported in #1084
This commit is contained in:
Bob Supnik
2021-10-23 14:40:34 -07:00
committed by Mark Pizzolato
parent a39b50ff63
commit fa113143d0
3 changed files with 38 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
/* pdp8_cpu.c: PDP-8 CPU simulator
Copyright (c) 1993-2017, Robert M Supnik
Copyright (c) 1993-2021, Robert M Supnik
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@@ -1515,7 +1515,7 @@ for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { /* add devices */
if (dspp->dsp) { /* any dispatch? */
if (dev_tab[dspp->dev]) { /* already filled? */
sim_printf ("%s device number conflict at %02o\n",
sim_dname (dptr), dibp->dev + j);
sim_dname (dptr), dspp->dev);
return TRUE;
}
dev_tab[dspp->dev] = dspp->dsp; /* fill */