unload DC11
This commit is contained in:
parent
6261bfd893
commit
749af5dbc6
2 changed files with 8 additions and 0 deletions
6
bus.cpp
6
bus.cpp
|
@ -211,6 +211,12 @@ void bus::add_DC11(dc11 *const dc11_)
|
||||||
this->dc11_ = dc11_;
|
this->dc11_ = dc11_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void bus::del_DC11()
|
||||||
|
{
|
||||||
|
delete dc11_;
|
||||||
|
dc11_ = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
void bus::init()
|
void bus::init()
|
||||||
{
|
{
|
||||||
mmu_->setMMR0(0);
|
mmu_->setMMR0(0);
|
||||||
|
|
2
bus.h
2
bus.h
|
@ -105,6 +105,8 @@ public:
|
||||||
void add_tty (tty *const tty_ );
|
void add_tty (tty *const tty_ );
|
||||||
void add_KW11_L(kw11_l *const kw11_l_);
|
void add_KW11_L(kw11_l *const kw11_l_);
|
||||||
void add_DC11 (dc11 *const dc11_ );
|
void add_DC11 (dc11 *const dc11_ );
|
||||||
|
// required to release devices when doing a reload
|
||||||
|
void del_DC11 ();
|
||||||
|
|
||||||
memory *getRAM() { return m; }
|
memory *getRAM() { return m; }
|
||||||
cpu *getCpu() { return c; }
|
cpu *getCpu() { return c; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue