summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/gameboy/gb_slot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/gameboy/gb_slot.h')
-rw-r--r--src/devices/bus/gameboy/gb_slot.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/devices/bus/gameboy/gb_slot.h b/src/devices/bus/gameboy/gb_slot.h
index d333c524b07..ff202fe0507 100644
--- a/src/devices/bus/gameboy/gb_slot.h
+++ b/src/devices/bus/gameboy/gb_slot.h
@@ -64,17 +64,17 @@ public:
virtual DECLARE_READ8_MEMBER(read_ram) { return 0xff; }
virtual DECLARE_WRITE8_MEMBER(write_ram) {}
- void rom_alloc(UINT32 size, const char *tag);
- void ram_alloc(UINT32 size);
- UINT8* get_rom_base() { return m_rom; }
- UINT8* get_ram_base() { return &m_ram[0]; }
- UINT32 get_rom_size() { return m_rom_size; }
- UINT32 get_ram_size() { return m_ram.size(); }
+ void rom_alloc(uint32_t size, const char *tag);
+ void ram_alloc(uint32_t size);
+ uint8_t* get_rom_base() { return m_rom; }
+ uint8_t* get_ram_base() { return &m_ram[0]; }
+ uint32_t get_rom_size() { return m_rom_size; }
+ uint32_t get_ram_size() { return m_ram.size(); }
- void rom_map_setup(UINT32 size);
- void ram_map_setup(UINT8 banks);
+ void rom_map_setup(uint32_t size);
+ void ram_map_setup(uint8_t banks);
- virtual void set_additional_wirings(UINT8 mask, int shift) { } // MBC-1 will then overwrite this!
+ virtual void set_additional_wirings(uint8_t mask, int shift) { } // MBC-1 will then overwrite this!
void set_has_timer(bool val) { has_timer = val; }
void set_has_rumble(bool val) { has_rumble = val; }
void set_has_battery(bool val) { has_battery = val; }
@@ -83,9 +83,9 @@ public:
void save_ram() { device().save_item(NAME(m_ram)); }
// internal state
- UINT8 *m_rom;
- UINT32 m_rom_size;
- std::vector<UINT8> m_ram;
+ uint8_t *m_rom;
+ uint32_t m_rom_size;
+ std::vector<uint8_t> m_ram;
// bankswitch variables
// we access ROM/RAM banks through these bank maps
@@ -94,10 +94,10 @@ public:
// 0x4000-0x7fff = rom_bank_map[m_latch_bank2] (generally defaults to m_latch_bank2 = 1)
// 0xa000-0xbfff = ram_bank_map[m_ram_bank] (generally defaults to m_ram_bank = 0)
// suitable writes to 0x0000-0x7fff can then modify m_latch_bank/m_latch_bank2
- UINT8 rom_bank_map[512]; // 16K chunks of ROM
- UINT8 ram_bank_map[256]; // 16K chunks of RAM
- UINT8 m_ram_bank;
- UINT16 m_latch_bank, m_latch_bank2;
+ uint8_t rom_bank_map[512]; // 16K chunks of ROM
+ uint8_t ram_bank_map[256]; // 16K chunks of RAM
+ uint8_t m_ram_bank;
+ uint16_t m_latch_bank, m_latch_bank2;
bool has_rumble, has_timer, has_battery;
};
@@ -111,7 +111,7 @@ class base_gb_cart_slot_device : public device_t,
{
public:
// construction/destruction
- base_gb_cart_slot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
+ base_gb_cart_slot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
virtual ~base_gb_cart_slot_device();
// device-level overrides
@@ -124,13 +124,13 @@ public:
virtual const software_list_loader &get_software_list_loader() const override { return rom_software_list_loader::instance(); }
int get_type() { return m_type; }
- int get_cart_type(UINT8 *ROM, UINT32 len);
- bool get_mmm01_candidate(UINT8 *ROM, UINT32 len);
+ int get_cart_type(uint8_t *ROM, uint32_t len);
+ bool get_mmm01_candidate(uint8_t *ROM, uint32_t len);
// remove me when SGB is properly emulated
int get_sgb_hack() { return m_sgb_hack; }
- void setup_ram(UINT8 banks);
- void internal_header_logging(UINT8 *ROM, UINT32 len);
+ void setup_ram(uint8_t banks);
+ void internal_header_logging(uint8_t *ROM, uint32_t len);
void save_ram() { if (m_cart && m_cart->get_ram_size()) m_cart->save_ram(); }
virtual iodevice_t image_type() const override { return IO_CARTSLOT; }
@@ -166,7 +166,7 @@ class gb_cart_slot_device : public base_gb_cart_slot_device
{
public:
// construction/destruction
- gb_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ gb_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
};
@@ -176,7 +176,7 @@ class megaduck_cart_slot_device : public base_gb_cart_slot_device
{
public:
// construction/destruction
- megaduck_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ megaduck_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// image-level overrides
virtual image_init_result call_load() override;