summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/a2bus/a2ultraterm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/a2bus/a2ultraterm.cpp')
-rw-r--r--src/devices/bus/a2bus/a2ultraterm.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/devices/bus/a2bus/a2ultraterm.cpp b/src/devices/bus/a2bus/a2ultraterm.cpp
index 3898e4be0c3..5526515ab1d 100644
--- a/src/devices/bus/a2bus/a2ultraterm.cpp
+++ b/src/devices/bus/a2bus/a2ultraterm.cpp
@@ -138,19 +138,19 @@ const tiny_rom_entry *a2bus_ultratermenh_device::device_rom_region() const
// LIVE DEVICE
//**************************************************************************
-a2bus_videx160_device::a2bus_videx160_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) :
+a2bus_videx160_device::a2bus_videx160_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) :
device_t(mconfig, type, name, tag, owner, clock, shortname, source),
device_a2bus_card_interface(mconfig, *this), m_rom(nullptr), m_chrrom(nullptr), m_framecnt(0), m_ctrl1(0), m_ctrl2(0),
m_crtc(*this, ULTRATERM_MC6845_NAME), m_rambank(0)
{
}
-a2bus_ultraterm_device::a2bus_ultraterm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+a2bus_ultraterm_device::a2bus_ultraterm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
a2bus_videx160_device(mconfig, A2BUS_ULTRATERM, "Videx UltraTerm (original)", tag, owner, clock, "a2ulttrm", __FILE__)
{
}
-a2bus_ultratermenh_device::a2bus_ultratermenh_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+a2bus_ultratermenh_device::a2bus_ultratermenh_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
a2bus_videx160_device(mconfig, A2BUS_ULTRATERMENH, "Videx UltraTerm (enhanced //e)", tag, owner, clock, "a2ultrme", __FILE__)
{
}
@@ -188,7 +188,7 @@ void a2bus_videx160_device::device_reset()
read_c0nx - called for reads from this card's c0nx space
-------------------------------------------------*/
-UINT8 a2bus_videx160_device::read_c0nx(address_space &space, UINT8 offset)
+uint8_t a2bus_videx160_device::read_c0nx(address_space &space, uint8_t offset)
{
// printf("Read c0n%x (PC=%x)\n", offset, space.device().safe_pc());
@@ -217,7 +217,7 @@ UINT8 a2bus_videx160_device::read_c0nx(address_space &space, UINT8 offset)
write_c0nx - called for writes to this card's c0nx space
-------------------------------------------------*/
-void a2bus_videx160_device::write_c0nx(address_space &space, UINT8 offset, UINT8 data)
+void a2bus_videx160_device::write_c0nx(address_space &space, uint8_t offset, uint8_t data)
{
// printf("Write %02x to c0n%x (PC=%x)\n", data, offset, space.device().safe_pc());
@@ -258,7 +258,7 @@ void a2bus_videx160_device::write_c0nx(address_space &space, UINT8 offset, UINT8
read_cnxx - called for reads from this card's cnxx space
-------------------------------------------------*/
-UINT8 a2bus_videx160_device::read_cnxx(address_space &space, UINT8 offset)
+uint8_t a2bus_videx160_device::read_cnxx(address_space &space, uint8_t offset)
{
return m_rom[offset+(m_slot * 0x100)];
}
@@ -267,7 +267,7 @@ UINT8 a2bus_videx160_device::read_cnxx(address_space &space, UINT8 offset)
write_cnxx - called for writes to this card's cnxx space
the firmware writes here to switch in our $C800 a lot
-------------------------------------------------*/
-void a2bus_videx160_device::write_cnxx(address_space &space, UINT8 offset, UINT8 data)
+void a2bus_videx160_device::write_cnxx(address_space &space, uint8_t offset, uint8_t data)
{
}
@@ -275,7 +275,7 @@ void a2bus_videx160_device::write_cnxx(address_space &space, UINT8 offset, UINT8
read_c800 - called for reads from this card's c800 space
-------------------------------------------------*/
-UINT8 a2bus_videx160_device::read_c800(address_space &space, UINT16 offset)
+uint8_t a2bus_videx160_device::read_c800(address_space &space, uint16_t offset)
{
// ROM at c800-cbff
// bankswitched RAM at cc00-cdff
@@ -298,7 +298,7 @@ UINT8 a2bus_videx160_device::read_c800(address_space &space, UINT16 offset)
/*-------------------------------------------------
write_c800 - called for writes to this card's c800 space
-------------------------------------------------*/
-void a2bus_videx160_device::write_c800(address_space &space, UINT16 offset, UINT8 data)
+void a2bus_videx160_device::write_c800(address_space &space, uint16_t offset, uint8_t data)
{
if (offset >= 0x400)
{
@@ -309,18 +309,18 @@ void a2bus_videx160_device::write_c800(address_space &space, UINT16 offset, UINT
MC6845_UPDATE_ROW( a2bus_videx160_device::crtc_update_row )
{
- UINT32 *p = &bitmap.pix32(y);
- UINT16 chr_base = ra;
+ uint32_t *p = &bitmap.pix32(y);
+ uint16_t chr_base = ra;
int i;
for ( i = 0; i < x_count; i++ )
{
- UINT16 offset = ( ma + i );
- UINT8 chr = m_ram[ offset ];
- UINT8 data = m_chrrom[ chr_base + (chr * 16) ];
- UINT8 fg = 2;
- UINT8 bg = 0;
- UINT8 tmp;
+ uint16_t offset = ( ma + i );
+ uint8_t chr = m_ram[ offset ];
+ uint8_t data = m_chrrom[ chr_base + (chr * 16) ];
+ uint8_t fg = 2;
+ uint8_t bg = 0;
+ uint8_t tmp;
// apply attributes
if (!(m_ctrl2 & CT2_USEDIPS))