mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +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:
@@ -1193,18 +1193,22 @@ for (k = 0; k < lnt; k++) { /* print specified */
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
#ifdef USE_DISPLAY
|
||||
#include "display/display.h" /* prototypes */
|
||||
|
||||
/* set "test switches"; from display code */
|
||||
void
|
||||
cpu_set_switches(unsigned long bits)
|
||||
cpu_set_switches(unsigned long v1, unsigned long v2)
|
||||
{
|
||||
/* just what we want; smaller CPUs might want to shift down? */
|
||||
TAC = bits;
|
||||
TAC = v1 ^ v2;
|
||||
}
|
||||
|
||||
unsigned long
|
||||
cpu_get_switches(void)
|
||||
void
|
||||
cpu_get_switches(unsigned long *p1, unsigned long *p2)
|
||||
{
|
||||
return TAC;
|
||||
*p1 = TAC;
|
||||
*p2 = 0;
|
||||
}
|
||||
|
||||
t_stat sim_load(FILE *fileref, CONST char *cptr, CONST char *fnam, int flag) {
|
||||
|
||||
Reference in New Issue
Block a user