uppercase is probably a better idea (nw)

This commit is contained in:
smf- 2018-04-07 15:35:52 +01:00
parent b3defb71a6
commit cc401b0641

View File

@ -246,19 +246,19 @@ void tnx1_state::maincpu_io_map(address_map &map)
} }
template<typename t> template<typename T>
class brazehs : public t class brazehs : public T
{ {
public: public:
brazehs(const machine_config &mconfig, device_type type, const char *tag) : brazehs(const machine_config &mconfig, device_type type, const char *tag) :
t(mconfig, type, tag), T(mconfig, type, tag),
m_eeprom(*this, "eeprom") m_eeprom(*this, "eeprom")
{ {
} }
virtual void config(machine_config &config) override virtual void config(machine_config &config) override
{ {
t::config(config); T::config(config);
config.device_add(this, "eeprom", EEPROM_SERIAL_93C46_8BIT, 0); config.device_add(this, "eeprom", EEPROM_SERIAL_93C46_8BIT, 0);
} }
@ -267,7 +267,7 @@ protected:
virtual void driver_start() override virtual void driver_start() override
{ {
t::driver_start(); T::driver_start();
uint8_t *rom = this->memregion("brazehs")->base(); uint8_t *rom = this->memregion("brazehs")->base();
int len = this->memregion("brazehs")->bytes(); int len = this->memregion("brazehs")->bytes();
@ -293,7 +293,7 @@ protected:
virtual void maincpu_program_map(address_map &map) override virtual void maincpu_program_map(address_map &map) override
{ {
t::maincpu_program_map(map); T::maincpu_program_map(map);
map(0x0000, 0x7fff).rom().region("brazehs", 0); map(0x0000, 0x7fff).rom().region("brazehs", 0);
map(0x9000, 0x9000).rw(this, FUNC(brazehs::eeprom_r), FUNC(brazehs::eeprom_w)); map(0x9000, 0x9000).rw(this, FUNC(brazehs::eeprom_r), FUNC(brazehs::eeprom_w));
} }