mirror of
https://github.com/open-simh/simh.git
synced 2026-05-05 23:54:03 +00:00
SCP: Add ability to descriptively name UNITs
This allows a device simulator to specifically name the units that it uses for different purposes. This info is visible in the output of SHOW QUEUE and debug output. Once specified or dynamically determined (as previously occurred with each call to sim_uname()), that name is saved for fast delivery on subsequent calls. This will remove some overhead when running with debugging on.
This commit is contained in:
1
scp.h
1
scp.h
@@ -144,6 +144,7 @@ t_stat reset_all (uint32 start_device);
|
||||
t_stat reset_all_p (uint32 start_device);
|
||||
const char *sim_dname (DEVICE *dptr);
|
||||
const char *sim_uname (UNIT *dptr);
|
||||
const char *sim_set_uname (UNIT *uptr, const char *uname);
|
||||
t_stat get_yn (const char *ques, t_stat deflt);
|
||||
int sim_isspace (char c);
|
||||
int sim_islower (char c);
|
||||
|
||||
Reference in New Issue
Block a user