summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/apexc.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/drivers/apexc.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
downloadmame-ddb290d5f615019c33c42b8d94e5a5254cabcf33.tar.xz
mame-ddb290d5f615019c33c42b8d94e5a5254cabcf33.zip
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/drivers/apexc.cpp')
-rw-r--r--src/mame/drivers/apexc.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/mame/drivers/apexc.cpp b/src/mame/drivers/apexc.cpp
index 1a7960380f9..599b5747a8c 100644
--- a/src/mame/drivers/apexc.cpp
+++ b/src/mame/drivers/apexc.cpp
@@ -22,13 +22,13 @@ public:
m_palette(*this, "palette"),
m_screen(*this, "screen") { }
- UINT32 m_panel_data_reg; /* value of a data register on the control panel which can
+ uint32_t m_panel_data_reg; /* value of a data register on the control panel which can
be edited - the existence of this register is a personnal
guess */
std::unique_ptr<bitmap_ind16> m_bitmap;
- UINT32 m_old_edit_keys;
+ uint32_t m_old_edit_keys;
int m_old_control_keys;
int m_letters;
@@ -37,7 +37,7 @@ public:
virtual void machine_start() override;
virtual void video_start() override;
DECLARE_PALETTE_INIT(apexc);
- UINT32 screen_update_apexc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_apexc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(apexc_interrupt);
DECLARE_READ8_MEMBER(tape_read);
DECLARE_WRITE8_MEMBER(tape_write);
@@ -74,7 +74,7 @@ class apexc_cylinder_image_device : public device_t, public device_image_interfa
{
public:
// construction/destruction
- apexc_cylinder_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ apexc_cylinder_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// image-level overrides
virtual iodevice_t image_type() const override { return IO_CYLINDER; }
@@ -98,7 +98,7 @@ private:
const device_type APEXC_CYLINDER = &device_creator<apexc_cylinder_image_device>;
-apexc_cylinder_image_device::apexc_cylinder_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+apexc_cylinder_image_device::apexc_cylinder_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, APEXC_CYLINDER, "APEXC Cylinder", tag, owner, clock, "apexc_cylinder_image", __FILE__),
device_image_interface(mconfig, *this)
{
@@ -115,7 +115,7 @@ image_init_result apexc_cylinder_image_device::call_load()
fread( machine().root_device().memregion("maincpu")->base(), 0x1000);
#ifdef LSB_FIRST
{ /* fix endianness */
- UINT32 *RAM = (UINT32 *)(machine().root_device().memregion("maincpu")->base());
+ uint32_t *RAM = (uint32_t *)(machine().root_device().memregion("maincpu")->base());
for (int i=0; i < 0x0400; i++)
RAM[i] = big_endianize_int32(RAM[i]);
@@ -136,7 +136,7 @@ void apexc_cylinder_image_device::call_unload()
fseek(0, SEEK_SET);
#ifdef LSB_FIRST
{ /* fix endianness */
- UINT32 *RAM = (UINT32 *)(machine().root_device().memregion("maincpu")->base());
+ uint32_t *RAM = (uint32_t *)(machine().root_device().memregion("maincpu")->base());
for (int i=0; i < /*0x2000*/0x0400; i++)
RAM[i] = big_endianize_int32(RAM[i]);
@@ -201,7 +201,7 @@ class apexc_tape_puncher_image_device : public device_t, public device_image_int
{
public:
// construction/destruction
- apexc_tape_puncher_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ apexc_tape_puncher_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// image-level overrides
virtual iodevice_t image_type() const override { return IO_PUNCHTAPE; }
@@ -220,7 +220,7 @@ protected:
const device_type APEXC_TAPE_PUNCHER = &device_creator<apexc_tape_puncher_image_device>;
-apexc_tape_puncher_image_device::apexc_tape_puncher_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+apexc_tape_puncher_image_device::apexc_tape_puncher_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, APEXC_TAPE_PUNCHER, "APEXC Tape Puncher", tag, owner, clock, "apexc_tape_puncher_image", __FILE__),
device_image_interface(mconfig, *this)
{
@@ -233,7 +233,7 @@ class apexc_tape_reader_image_device : public device_t, public device_image_int
{
public:
// construction/destruction
- apexc_tape_reader_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ apexc_tape_reader_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// image-level overrides
virtual iodevice_t image_type() const override { return IO_PUNCHTAPE; }
@@ -252,7 +252,7 @@ protected:
const device_type APEXC_TAPE_READER = &device_creator<apexc_tape_reader_image_device>;
-apexc_tape_reader_image_device::apexc_tape_reader_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+apexc_tape_reader_image_device::apexc_tape_reader_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, APEXC_TAPE_READER, "APEXC Tape Reader", tag, owner, clock, "apexc_tape_reader_image", __FILE__),
device_image_interface(mconfig, *this)
{
@@ -268,7 +268,7 @@ apexc_tape_reader_image_device::apexc_tape_reader_image_device(const machine_con
READ8_MEMBER(apexc_state::tape_read)
{
device_t *device = machine().device("tape_reader");
- UINT8 reply;
+ uint8_t reply;
device_image_interface *image = dynamic_cast<device_image_interface *>(device);
if (image->exists() && (image->fread(& reply, 1) == 1))
@@ -280,7 +280,7 @@ READ8_MEMBER(apexc_state::tape_read)
WRITE8_MEMBER(apexc_state::tape_write)
{
device_t *device = machine().device("tape_puncher");
- UINT8 data5 = (data & 0x1f);
+ uint8_t data5 = (data & 0x1f);
device_image_interface *image = dynamic_cast<device_image_interface *>(device);
if (image->exists())
@@ -402,7 +402,7 @@ INPUT_PORTS_END
INTERRUPT_GEN_MEMBER(apexc_state::apexc_interrupt)
{
address_space& space = m_maincpu->space(AS_PROGRAM);
- UINT32 edit_keys;
+ uint32_t edit_keys;
int control_keys;
int control_transitions;
@@ -596,7 +596,7 @@ void apexc_state::apexc_draw_string(bitmap_ind16 &bitmap, const char *buf, int x
}
-UINT32 apexc_state::screen_update_apexc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t apexc_state::screen_update_apexc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
int i;
char the_char;
@@ -635,7 +635,7 @@ void apexc_state::apexc_teletyper_init()
void apexc_state::apexc_teletyper_linefeed()
{
- UINT8 buf[teletyper_window_width];
+ uint8_t buf[teletyper_window_width];
int y;
for (y=teletyper_window_offset_y; y<teletyper_window_offset_y+teletyper_window_height-teletyper_scroll_step; y++)
@@ -729,7 +729,7 @@ enum
/* apexc driver init : builds a font for use by the teletyper */
DRIVER_INIT_MEMBER(apexc_state,apexc)
{
- UINT8 *dst;
+ uint8_t *dst;
static const unsigned char fontdata6x8[apexcfontdata_size] =
{ /* ASCII characters */