diff options
Diffstat (limited to 'src/devices/bus/iq151/ms151a.cpp')
-rw-r--r-- | src/devices/bus/iq151/ms151a.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/bus/iq151/ms151a.cpp b/src/devices/bus/iq151/ms151a.cpp index 4961fd61335..f9a35fc7a51 100644 --- a/src/devices/bus/iq151/ms151a.cpp +++ b/src/devices/bus/iq151/ms151a.cpp @@ -46,7 +46,7 @@ const device_type IQ151_MS151A = &device_creator<iq151_ms151a_device>; // iq151_ms151a_device - constructor //------------------------------------------------- -iq151_ms151a_device::iq151_ms151a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) +iq151_ms151a_device::iq151_ms151a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, IQ151_MS151A, "IQ151 MS151A", tag, owner, clock, "iq151_ms151a", __FILE__), device_iq151cart_interface( mconfig, *this ), m_rom(nullptr), m_posx(0), m_posy(0), m_pen(0), m_paper(nullptr) { @@ -58,7 +58,7 @@ iq151_ms151a_device::iq151_ms151a_device(const machine_config &mconfig, const ch void iq151_ms151a_device::device_start() { - m_rom = (UINT8*)memregion("ms151a")->base(); + m_rom = (uint8_t*)memregion("ms151a")->base(); // allocate a bitmap for represent the paper m_paper = std::make_unique<bitmap_ind16>(PAPER_WIDTH, PAPER_HEIGHT); @@ -102,7 +102,7 @@ const tiny_rom_entry *iq151_ms151a_device::device_rom_region() const // read //------------------------------------------------- -void iq151_ms151a_device::read(offs_t offset, UINT8 &data) +void iq151_ms151a_device::read(offs_t offset, uint8_t &data) { // interal ROM is mapped at 0xc000-0xc7ff if (offset >= 0xc000 && offset < 0xc800) @@ -113,7 +113,7 @@ void iq151_ms151a_device::read(offs_t offset, UINT8 &data) // IO read //------------------------------------------------- -void iq151_ms151a_device::io_read(offs_t offset, UINT8 &data) +void iq151_ms151a_device::io_read(offs_t offset, uint8_t &data) { if (offset == 0xc4) data = plotter_status(); @@ -123,7 +123,7 @@ void iq151_ms151a_device::io_read(offs_t offset, UINT8 &data) // IO write //------------------------------------------------- -void iq151_ms151a_device::io_write(offs_t offset, UINT8 data) +void iq151_ms151a_device::io_write(offs_t offset, uint8_t data) { if (offset >= 0xc0 && offset <= 0xc4) plotter_update(offset - 0xc0, data); @@ -134,7 +134,7 @@ void iq151_ms151a_device::io_write(offs_t offset, UINT8 data) // XY 4130/4131 //************************************************************************** -UINT8 iq151_ms151a_device::plotter_status() +uint8_t iq151_ms151a_device::plotter_status() { /* bit 7 - plotter READY line @@ -143,7 +143,7 @@ UINT8 iq151_ms151a_device::plotter_status() return 0x80; } -void iq151_ms151a_device::plotter_update(UINT8 offset, UINT8 data) +void iq151_ms151a_device::plotter_update(uint8_t offset, uint8_t data) { // update pen and paper positions switch (offset) |