summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/tandy2k.cpp
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/drivers/tandy2k.cpp
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/drivers/tandy2k.cpp')
-rw-r--r--src/mame/drivers/tandy2k.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/tandy2k.cpp b/src/mame/drivers/tandy2k.cpp
index 033b6fcf11e..23ba93129ac 100644
--- a/src/mame/drivers/tandy2k.cpp
+++ b/src/mame/drivers/tandy2k.cpp
@@ -79,7 +79,7 @@ READ8_MEMBER( tandy2k_state::videoram_r )
address_space &program = m_maincpu->space(AS_PROGRAM);
offs_t addr = (m_vram_base << 15) | (offset << 1);
- UINT16 data = program.read_word(addr);
+ uint16_t data = program.read_word(addr);
// character
m_drb0->write(space, 0, data & 0xff);
@@ -107,7 +107,7 @@ READ8_MEMBER( tandy2k_state::enable_r )
*/
- UINT8 data = 0x80;
+ uint8_t data = 0x80;
data |= m_rs232->ri_r();
data |= m_rs232->dcd_r() << 1;
@@ -351,21 +351,21 @@ INPUT_PORTS_END
// Video
-UINT32 tandy2k_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
+uint32_t tandy2k_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
const pen_t *pen = m_palette->pens();
address_space &program = m_maincpu->space(AS_PROGRAM);
for (int y = 0; y < 400; y++)
{
- UINT8 cgra = y % 16;
+ uint8_t cgra = y % 16;
for (int sx = 0; sx < 80; sx++)
{
offs_t addr = m_ram->size() - 0x1400 + (((y / 16) * 80) + sx) * 2;
- UINT16 vidla = program.read_word(addr);
- UINT8 attr = vidla >> 8;
- UINT8 data = m_char_ram[((vidla & 0xff) << 4) | cgra];
+ uint16_t vidla = program.read_word(addr);
+ uint8_t attr = vidla >> 8;
+ uint8_t data = m_char_ram[((vidla & 0xff) << 4) | cgra];
if(attr & 0x80)
data = ~data;
@@ -492,7 +492,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( tandy2k_state::vidldsh_tick )
m_cgra |= m_sld << 3;
}
- UINT8 vidd = m_char_ram[(m_vidla << 4) | m_cgra];
+ uint8_t vidd = m_char_ram[(m_vidla << 4) | m_cgra];
m_vac->write(vidd);
m_drb0->rclk_w(1);
@@ -583,7 +583,7 @@ READ8_MEMBER( tandy2k_state::ppi_pb_r )
*/
- UINT8 data = 0;
+ uint8_t data = 0;
switch (m_pb_sel)
{
@@ -729,7 +729,7 @@ READ8_MEMBER( tandy2k_state::irq_callback )
void tandy2k_state::machine_start()
{
address_space &program = m_maincpu->space(AS_PROGRAM);
- UINT8 *ram = m_ram->pointer();
+ uint8_t *ram = m_ram->pointer();
int ram_size = m_ram->size();
program.install_ram(0x00000, ram_size - 1, ram);