summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/etc
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/etc
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/mame/etc')
-rw-r--r--src/mame/etc/fd1094dp.cpp4
-rw-r--r--src/mame/etc/jrcrypt.cpp12
-rw-r--r--src/mame/etc/korgm1.cpp4
-rw-r--r--src/mame/etc/template_cpu.cpp6
-rw-r--r--src/mame/etc/template_cpu.h18
-rw-r--r--src/mame/etc/template_device.cpp2
-rw-r--r--src/mame/etc/template_device.h2
-rw-r--r--src/mame/etc/template_driver.cpp4
8 files changed, 26 insertions, 26 deletions
diff --git a/src/mame/etc/fd1094dp.cpp b/src/mame/etc/fd1094dp.cpp
index 1b8dbb0a3e8..34074d787e2 100644
--- a/src/mame/etc/fd1094dp.cpp
+++ b/src/mame/etc/fd1094dp.cpp
@@ -39,7 +39,7 @@ char srcpath[250],dstfilename[250];
(BIT(val, B1) << 1) | \
(BIT(val, B0) << 0))
-UINT16 buffer[0x2000];
+uint16_t buffer[0x2000];
int little_endian;
int is_little_endian(void)
@@ -489,7 +489,7 @@ void find_global_key(void)
}
-UINT8 mainkey[0x2000];
+uint8_t mainkey[0x2000];
void find_main_key(void)
{
diff --git a/src/mame/etc/jrcrypt.cpp b/src/mame/etc/jrcrypt.cpp
index a689cf8c800..3c30605af18 100644
--- a/src/mame/etc/jrcrypt.cpp
+++ b/src/mame/etc/jrcrypt.cpp
@@ -20,16 +20,16 @@
static int irq_mask;
-typedef UINT16 word;
-typedef UINT8 byte;
+typedef uint16_t word;
+typedef uint8_t byte;
#define PreDecryptedRoms
#ifndef PreDecryptedRoms
static int s0,s1,s2,s3; /* 1 bit registers inside decoder PAL */
-static UINT8 shadowROM[0xffff];
-static UINT8 used[0xFFFF];
-UINT32 numberUsed = 0;
+static uint8_t shadowROM[0xffff];
+static uint8_t used[0xFFFF];
+uint32_t numberUsed = 0;
#else
struct {
int count;
@@ -457,7 +457,7 @@ the top of this file. It is included here for completeness.
#include <stdio.h>
-typedef UINT8 byte;
+typedef uint8_t byte;
void CreateJrDecodeTable(byte *x, int length);
void Load(char *name,byte *buffer,int from, int length);
diff --git a/src/mame/etc/korgm1.cpp b/src/mame/etc/korgm1.cpp
index 6714aaab7dc..f9dd829cfb8 100644
--- a/src/mame/etc/korgm1.cpp
+++ b/src/mame/etc/korgm1.cpp
@@ -30,7 +30,7 @@ public:
required_device<cpu_device> m_maincpu;
// screen updates
- UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
protected:
// driver_device overrides
@@ -44,7 +44,7 @@ void korgm1_state::video_start()
{
}
-UINT32 korgm1_state::screen_update( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect )
+uint32_t korgm1_state::screen_update( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect )
{
return 0;
}
diff --git a/src/mame/etc/template_cpu.cpp b/src/mame/etc/template_cpu.cpp
index 3ef47437be8..2989b384b2a 100644
--- a/src/mame/etc/template_cpu.cpp
+++ b/src/mame/etc/template_cpu.cpp
@@ -40,7 +40,7 @@ void xxx_cpu_device::xxx_illegal()
/* Execute cycles */
void cp1610_cpu_device::execute_run()
{
- UINT16 opcode;
+ uint16_t opcode;
do
{
@@ -100,7 +100,7 @@ void xxx_cpu_device::execute_set_input(int irqline, int state)
}
#endif
-xxx_cpu_device::xxx_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+xxx_cpu_device::xxx_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: cpu_device(mconfig, XXX, "XXX", tag, owner, clock, "xxx", __FILE__)
, m_program_config("program", ENDIANNESS_BIG, 8, 32, -1)
, m_data_config("data", ENDIANNESS_BIG, 8, 32, 0)
@@ -123,7 +123,7 @@ void xxx_cpu_device::state_string_export(const device_state_entry &entry, std::s
}
-offs_t xxx_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const UINT32 *oprom, const UINT32 *opram, UINT32 options)
+offs_t xxx_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const uint32_t *oprom, const uint32_t *opram, uint32_t options)
{
extern CPU_DISASSEMBLE( xxx );
return CPU_DISASSEMBLE_NAME(xxx)(this, buffer, pc, oprom, opram, options);
diff --git a/src/mame/etc/template_cpu.h b/src/mame/etc/template_cpu.h
index ac877c5ef64..62af4185199 100644
--- a/src/mame/etc/template_cpu.h
+++ b/src/mame/etc/template_cpu.h
@@ -24,7 +24,7 @@ class xxx_cpu_device : public cpu_device
{
public:
// construction/destruction
- xxx_cpu_device(const machine_config &mconfig, const char *_tag, device_t *_owner, UINT32 _clock);
+ xxx_cpu_device(const machine_config &mconfig, const char *_tag, device_t *_owner, uint32_t _clock);
protected:
// device-level overrides
@@ -32,9 +32,9 @@ protected:
virtual void device_reset() override;
// device_execute_interface overrides
- virtual UINT32 execute_min_cycles() const override { return 1; }
- virtual UINT32 execute_max_cycles() const override { return 7; }
- virtual UINT32 execute_input_lines() const override { return 0; }
+ virtual uint32_t execute_min_cycles() const override { return 1; }
+ virtual uint32_t execute_max_cycles() const override { return 7; }
+ virtual uint32_t execute_input_lines() const override { return 0; }
virtual void execute_run() override;
virtual void execute_set_input(int inputnum, int state) override;
@@ -45,15 +45,15 @@ protected:
virtual void state_string_export(const device_state_entry &entry, std::string &str) const override;
// device_disasm_interface overrides
- virtual UINT32 disasm_min_opcode_bytes() const override { return 4; }
- virtual UINT32 disasm_max_opcode_bytes() const override { return 4; }
- virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options) override;
+ virtual uint32_t disasm_min_opcode_bytes() const override { return 4; }
+ virtual uint32_t disasm_max_opcode_bytes() const override { return 4; }
+ virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) override;
private:
address_space_config m_program_config;
- UINT8 m_pc; /* registers */
- UINT8 m_flags; /* flags */
+ uint8_t m_pc; /* registers */
+ uint8_t m_flags; /* flags */
address_space *m_program;
address_space *m_data;
int m_icount;
diff --git a/src/mame/etc/template_device.cpp b/src/mame/etc/template_device.cpp
index 903a2c63c73..358938a5ee0 100644
--- a/src/mame/etc/template_device.cpp
+++ b/src/mame/etc/template_device.cpp
@@ -27,7 +27,7 @@ const device_type XXX = &device_creator<xxx_device>;
// xxx_device - constructor
//-------------------------------------------------
-xxx_device::xxx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+xxx_device::xxx_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, XXX, "xxx_longname", tag, owner, clock, "xxx", __FILE__)
{
}
diff --git a/src/mame/etc/template_device.h b/src/mame/etc/template_device.h
index 748e7e34e46..d2687b33908 100644
--- a/src/mame/etc/template_device.h
+++ b/src/mame/etc/template_device.h
@@ -30,7 +30,7 @@ class xxx_device : public device_t
{
public:
// construction/destruction
- xxx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ xxx_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// I/O operations
DECLARE_WRITE8_MEMBER( write );
diff --git a/src/mame/etc/template_driver.cpp b/src/mame/etc/template_driver.cpp
index 27aa3c1fb1c..84ad22ddf2d 100644
--- a/src/mame/etc/template_driver.cpp
+++ b/src/mame/etc/template_driver.cpp
@@ -25,7 +25,7 @@ public:
required_device<cpu_device> m_maincpu;
// screen updates
- UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_PALETTE_INIT(xxx);
protected:
// driver_device overrides
@@ -39,7 +39,7 @@ void xxx_state::video_start()
{
}
-UINT32 xxx_state::screen_update( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect )
+uint32_t xxx_state::screen_update( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect )
{
return 0;
}