DC11: 4 sets of registers

This commit is contained in:
folkert van heusden 2024-04-30 00:06:48 +02:00
parent 10c468f0f6
commit 4c903fb252
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

6
dc11.h
View file

@ -11,7 +11,7 @@
#define DC11_RCSR 0174000 // receiver status register
#define DC11_BASE DC11_RCSR
#define DC11_END (DC11_RCSR + 2)
#define DC11_END (DC11_BASE + 4 * 4 + 2) // 4 interfaces, + 2 to point after it
class bus;
@ -19,8 +19,8 @@ class dc11
{
private:
bus *const b { nullptr };
uint16_t registers[4] { };
// 4 interfaces
uint16_t registers[4 * 4] { };
std::atomic_bool stop_flag { false };
public: