1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-25 19:57:36 +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:
Phil Budne
2018-02-17 01:17:58 -05:00
parent c05190780b
commit b11fbf6cd4
12 changed files with 1260 additions and 260 deletions

View File

@@ -1704,15 +1704,16 @@ return SCPE_OK;
#ifdef USE_DISPLAY
/* set "test switches"; from display code */
#include "display/display.h" /* prototypes */
void cpu_set_switches(unsigned long bits)
void cpu_set_switches(unsigned long v1, unsigned long v2)
{
/* just what we want; smaller CPUs might want to shift down? */
TW = bits;
TW = v1 ^ v2;
}
unsigned long cpu_get_switches(void)
void cpu_get_switches(unsigned long *p1, unsigned long *p2)
{
return TW;
*p1 = TW;
*p2 = 0;
}
#endif