summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/cobra.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-11-19 05:35:54 +1100
committer Vas Crabb <vas@vastheman.com>2016-11-19 05:38:48 +1100
commit8179a84458204a5e767446fcf7d10f032a40fd0c (patch)
tree16105e1667f811dcb24dbf0fc255166cb06df5c2 /src/mame/drivers/cobra.cpp
parent1b489fe83034072149fb0637b20c7ba57dc72a7a (diff)
Introduce u8/u16/u32/u64/s8/s16/s32/s64
* New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
Diffstat (limited to 'src/mame/drivers/cobra.cpp')
-rw-r--r--src/mame/drivers/cobra.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/cobra.cpp b/src/mame/drivers/cobra.cpp
index 1af6d4aa3a3..762d4fcd6bd 100644
--- a/src/mame/drivers/cobra.cpp
+++ b/src/mame/drivers/cobra.cpp
@@ -3044,7 +3044,7 @@ WRITE64_MEMBER(cobra_state::gfx_buf_w)
m_renderer->gfx_fifo_exec();
- if (data == U64(0x00a0000110500018))
+ if (data == 0x00a0000110500018U)
{
m_gfxfifo_out->flush();
@@ -3055,7 +3055,7 @@ WRITE64_MEMBER(cobra_state::gfx_buf_w)
m_gfxfifo_out->push(&space.device(), (uint32_t)(regdata >> 32));
m_gfxfifo_out->push(&space.device(), (uint32_t)(regdata));
}
- else if (data == U64(0x00a0000110520800))
+ else if (data == 0x00a0000110520800U)
{
// in teximage_load()
// some kind of busy flag for mbuslib_tex_ints()...
@@ -3067,7 +3067,7 @@ WRITE64_MEMBER(cobra_state::gfx_buf_w)
m_gfx_unk_status &= ~0x400;
}
- else if (data != U64(0x00a0000110520200)) // mbuslib_regread()
+ else if (data != 0x00a0000110520200U) // mbuslib_regread()
{
// prc_read always expects a value...
@@ -3375,8 +3375,8 @@ DRIVER_INIT_MEMBER(cobra_state, cobra)
m_sound_dma_buffer_r = std::make_unique<int16_t[]>(DMA_SOUND_BUFFER_SIZE);
// setup fake pagetable until we figure out what really maps there...
- //m_gfx_pagetable[0x80 / 8] = U64(0x800001001e0001a8);
- m_gfx_pagetable[0x80 / 8] = U64(0x80000100200001a8); // should this map to 0x1e000000?
+ //m_gfx_pagetable[0x80 / 8] = 0x800001001e0001a8U;
+ m_gfx_pagetable[0x80 / 8] = 0x80000100200001a8U; // should this map to 0x1e000000?
}
DRIVER_INIT_MEMBER(cobra_state,bujutsu)