1
0
mirror of https://github.com/livingcomputermuseum/UniBone.git synced 2026-02-23 15:42:54 +00:00
Files
livingcomputermuseum.UniBone/10.02_devices/2_src/cpu20/ka11.h

35 lines
612 B
C

// Interface of 11/20 PCU emulator to UniBone
typedef struct KA11 KA11;
struct KA11
{
word r[16];
word b; // B register before BUT JSRJMP
word ba;
word ir;
Bus *bus;
byte psw;
int traps;
int be;
int state;
struct {
int (*bg)(void *dev);
void *dev;
} br[4];
// UniBone
pthread_mutex_t mutex ;
volatile bool external_intr ; // INTR by parallel thread pending
volatile word external_intrvec; // associated vector
word sw;
};
void ka11_reset(KA11 *cpu);
void ka11_setintr(KA11 *cpu, unsigned vec);
void ka11_pwrdown(KA11 *cpu);
void ka11_pwrup(KA11 *cpu);
void ka11_condstep(KA11 *cpu);