Beispiel #1
0
        nvram_device(machine_config mconfig, string tag, device_t owner, uint32_t clock = 0)
            : base(mconfig, NVRAM, tag, owner, clock)
        {
            //device_nvram_interface(mconfig, *this),
            m_class_interfaces.Add(new device_nvram_interface_nvram(mconfig, this));
            m_dinvram = GetClassInterface <device_nvram_interface_nvram>();


            m_region         = new optional_memory_region(this, DEVICE_SELF);
            m_default_value  = default_value.DEFAULT_ALL_1;
            m_custom_handler = null;
            m_base           = null;
            m_length         = 0;
        }
Beispiel #2
0
 // construction/destruction
 nvram_device(machine_config mconfig, string tag, device_t owner, default_value value)
     : this(mconfig, tag, owner, 0U)
 {
     set_default_value(value);
 }
Beispiel #3
0
 // inline configuration helpers
 public void set_default_value(default_value value)
 {
     m_default_value = value;
 }