0177764: system id

This commit is contained in:
folkert van heusden 2023-03-20 09:58:56 +01:00
parent 7e916a652e
commit 2bf8b92217
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
2 changed files with 6 additions and 0 deletions

View file

@ -107,6 +107,11 @@ uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev,
return PIR;
}
if (a == ADDR_SYSTEM_ID) {
DOLOG(debug, !peek_only, "read system id");
return 011064;
}
if (a == ADDR_LFC) { // line frequency clock and status register
DOLOG(debug, !peek_only, "read line freq clock");
return lf_csr;

1
bus.h
View file

@ -50,6 +50,7 @@
#define ADDR_SYSSIZE 0177760
#define ADDR_MICROPROG_BREAK_REG 0177770
#define ADDR_CCR 0177746
#define ADDR_SYSTEM_ID 0177764
class cpu;
class memory;