summaryrefslogblamecommitdiffstatshomepage
path: root/src/mame/machine/gaelco_ds5002fp.h
blob: 5ab7f31da21af1ee26bad5ea815d1c6316a742ee (plain) (tree)
1
2
3
4
5
6
7
8
9

                                  

                                      


            
 
                                                            
 
 
                                                                              


                                                                                                                

          
                                  
                                                                         
                                             
 

                                                                         
 
        



                                          

                                                    
 

                                                    

  
                                        
// license:BSD-3-Clause
// copyright-holders:David Haywood
#ifndef MAME_MACHINE_GAELCO_DS5002FP_H
#define MAME_MACHINE_GAELCO_DS5002FP_H

#pragma once


DECLARE_DEVICE_TYPE(GAELCO_DS5002FP, gaelco_ds5002fp_device)


class gaelco_ds5002fp_device : public device_t, public device_memory_interface
{
public:
	gaelco_ds5002fp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

protected:
	// device_t implementation
	virtual void device_add_mconfig(machine_config &config) override;
	virtual void device_start() override;

	// device_memory_interface configuration
	virtual space_config_vector memory_space_config() const override;

private:

	void dallas_ram(address_map &map);
	void dallas_rom(address_map &map);

	address_space_config const m_hostmem_config;
	address_space *m_hostmem;

	uint8_t hostmem_r(offs_t offset);
	void hostmem_w(offs_t offset, uint8_t data);
};

#endif // MAME_MACHINE_GAELCO_DS5002FP_H