mirror of
https://github.com/open-simh/simh.git
synced 2026-01-26 04:02:39 +00:00
DISPLAY: Update display code to support DEC Type 340, and 36 switches
Only interface code to Type 340 is for Richard Cornwell's KA10 (but could be used on PDP-1/4/7/9 as well)
This commit is contained in:
@@ -545,15 +545,16 @@ int32 SR; /* switch register */
|
||||
#endif
|
||||
|
||||
void
|
||||
cpu_set_switches(unsigned long val)
|
||||
cpu_set_switches(unsigned long v1, unsigned long v2)
|
||||
{
|
||||
SR = val;
|
||||
SR = v1 ^ v2;
|
||||
}
|
||||
|
||||
unsigned long
|
||||
cpu_get_switches(void)
|
||||
void
|
||||
cpu_get_switches(unsigned long *p1, unsigned long *p2)
|
||||
{
|
||||
return SR;
|
||||
*p1 = SR;
|
||||
*p2 = 0;
|
||||
}
|
||||
#else /* USE_DISPLAY not defined */
|
||||
char pdp11_vt_unused; /* sometimes empty object modules cause problems */
|
||||
|
||||
Reference in New Issue
Block a user