-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunibus.h
More file actions
37 lines (30 loc) · 669 Bytes
/
unibus.h
File metadata and controls
37 lines (30 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include "kl11.h"
#include "rk11.h"
#include "kw11.h"
#include "pc11.h"
#include "lp11.h"
#include "rl11.h"
#include "dl11.h"
#include <stdint.h>
const uint32_t IOBASE_18BIT = 0760000;
const uint32_t IOBASE_22BIT = 017760000;
const uint32_t MEMSIZE22 = (4096-256) * 1024;
const uint32_t MEMSIZE = (256 - 8) * 1024;
const uint32_t MEMMAX = 4096 * 1024;
class UNIBUS {
public:
uint16_t *core;
KL11 cons;
RK11 rk11;
KW11 kw11;
PC11 ptr;
LP11 lp11;
RL11 rl11;
DL11 dl11;
void write16(uint32_t a, uint16_t v);
uint16_t read16(uint32_t a);
uint32_t umap[32];
void reset();
uint32_t remap(uint32_t);
};