use override where appropriate
This commit is contained in:
parent
e3b6cb1f25
commit
52756aa01c
3 changed files with 10 additions and 10 deletions
2
bus.h
2
bus.h
|
@ -84,7 +84,7 @@ public:
|
||||||
static bus *deserialize(const json_t *const j, console *const cnsl, std::atomic_uint32_t *const event);
|
static bus *deserialize(const json_t *const j, console *const cnsl, std::atomic_uint32_t *const event);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void reset();
|
void reset() override;
|
||||||
void init(); // invoked by 'RESET' command
|
void init(); // invoked by 'RESET' command
|
||||||
|
|
||||||
void show_state(console *const cnsl) const override;
|
void show_state(console *const cnsl) const override;
|
||||||
|
|
10
dc11.h
10
dc11.h
|
@ -69,7 +69,7 @@ public:
|
||||||
// static tty *deserialize(const json_t *const j, bus *const b, console *const cnsl);
|
// static tty *deserialize(const json_t *const j, bus *const b, console *const cnsl);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void reset();
|
void reset() override;
|
||||||
|
|
||||||
void show_state(console *const cnsl) const override;
|
void show_state(console *const cnsl) const override;
|
||||||
|
|
||||||
|
@ -83,11 +83,11 @@ public:
|
||||||
void serial_handler();
|
void serial_handler();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint8_t read_byte(const uint16_t addr);
|
uint8_t read_byte(const uint16_t addr) override;
|
||||||
uint16_t read_word(const uint16_t addr);
|
uint16_t read_word(const uint16_t addr) override;
|
||||||
|
|
||||||
void write_byte(const uint16_t addr, const uint8_t v);
|
void write_byte(const uint16_t addr, const uint8_t v) override;
|
||||||
void write_word(const uint16_t addr, const uint16_t v);
|
void write_word(const uint16_t addr, const uint16_t v) override;
|
||||||
|
|
||||||
void operator()();
|
void operator()();
|
||||||
};
|
};
|
||||||
|
|
8
kw11-l.h
8
kw11-l.h
|
@ -38,7 +38,7 @@ public:
|
||||||
kw11_l(bus *const b);
|
kw11_l(bus *const b);
|
||||||
virtual ~kw11_l();
|
virtual ~kw11_l();
|
||||||
|
|
||||||
void reset();
|
void reset() override;
|
||||||
|
|
||||||
void show_state(console *const cnsl) const override;
|
void show_state(console *const cnsl) const override;
|
||||||
|
|
||||||
|
@ -50,8 +50,8 @@ public:
|
||||||
void begin(console *const cnsl);
|
void begin(console *const cnsl);
|
||||||
void operator()();
|
void operator()();
|
||||||
|
|
||||||
uint16_t read_word (const uint16_t a);
|
uint16_t read_word(const uint16_t a) override;
|
||||||
|
|
||||||
void write_byte(const uint16_t addr, const uint8_t v);
|
void write_byte(const uint16_t addr, const uint8_t v) override;
|
||||||
void write_word(const uint16_t a, const uint16_t v);
|
void write_word(const uint16_t addr, const uint16_t v) override;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue