summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/sbp.h
blob: a46fef86ecfc74d2c1e7bf4af9bc6780ed07d4fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// license:BSD-3-Clause
// copyright-holders:S. Smith,David Haywood,Fabio Priuli
#pragma once

#ifndef __NEOGEO_BOOTSBP_H
#define __NEOGEO_BOOTSBP_H

#include "slot.h"
#include "rom.h"

/*************************************************
 sbp
 **************************************************/

class neogeo_sbp_cart : public neogeo_rom_device
{
public:
	neogeo_sbp_cart(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);

	virtual void device_start() override;
	virtual void device_reset() override;

	virtual DECLARE_WRITE16_MEMBER(protection_w) override;
	virtual DECLARE_READ16_MEMBER(protection_r) override;

	virtual void decrypt_all(DECRYPT_ALL_PARAMS) override;
	virtual int get_fixed_bank_type(void) override { return 0; }

	void patch(UINT8* cpurom, UINT32 cpurom_size);
};

extern const device_type NEOGEO_SBP_CART;


#endif