unload DC11

This commit is contained in:
folkert van heusden 2024-05-20 16:44:03 +02:00
parent 6261bfd893
commit 749af5dbc6
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
2 changed files with 8 additions and 0 deletions

View file

@ -211,6 +211,12 @@ void bus::add_DC11(dc11 *const dc11_)
this->dc11_ = dc11_;
}
void bus::del_DC11()
{
delete dc11_;
dc11_ = nullptr;
}
void bus::init()
{
mmu_->setMMR0(0);

2
bus.h
View file

@ -105,6 +105,8 @@ public:
void add_tty (tty *const tty_ );
void add_KW11_L(kw11_l *const kw11_l_);
void add_DC11 (dc11 *const dc11_ );
// required to release devices when doing a reload
void del_DC11 ();
memory *getRAM() { return m; }
cpu *getCpu() { return c; }