summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/sed1200.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/devices/video/sed1200.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/devices/video/sed1200.cpp')
-rw-r--r--src/devices/video/sed1200.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/video/sed1200.cpp b/src/devices/video/sed1200.cpp
index 6d88b288714..583b2c955c9 100644
--- a/src/devices/video/sed1200.cpp
+++ b/src/devices/video/sed1200.cpp
@@ -31,27 +31,27 @@ ROM_START( sed1200x0b )
ROM_LOAD( "sed1200-b.bin", 0x000, 0x800, CRC(d0741f51) SHA1(c8c856f1357286a2c8c806af81724a828345357e))
ROM_END
-sed1200_device::sed1200_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) :
+sed1200_device::sed1200_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), cursor_direction(false), cursor_blinking(false), cursor_full(false), cursor_on(false), display_on(false), cursor_address(0), cgram_address(0), cgrom(nullptr)
{
}
-sed1200d0a_device::sed1200d0a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+sed1200d0a_device::sed1200d0a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
sed1200_device(mconfig, SED1200D0A, "sed1200d-0a", tag, owner, clock, "sed1200", __FILE__)
{
}
-sed1200f0a_device::sed1200f0a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+sed1200f0a_device::sed1200f0a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
sed1200_device(mconfig, SED1200F0A, "sed1200f-0a", tag, owner, clock, "sed1200", __FILE__)
{
}
-sed1200d0b_device::sed1200d0b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+sed1200d0b_device::sed1200d0b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
sed1200_device(mconfig, SED1200D0B, "sed1200d-0b", tag, owner, clock, "sed1200", __FILE__)
{
}
-sed1200f0b_device::sed1200f0b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+sed1200f0b_device::sed1200f0b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
sed1200_device(mconfig, SED1200F0B, "sed1200f-0b", tag, owner, clock, "sed1200", __FILE__)
{
}
@@ -99,7 +99,7 @@ void sed1200_device::soft_reset()
cgram_address = 0x00;
}
-void sed1200_device::control_w(UINT8 data)
+void sed1200_device::control_w(uint8_t data)
{
switch(data) {
case 0x04: case 0x05:
@@ -140,12 +140,12 @@ void sed1200_device::control_w(UINT8 data)
}
}
-UINT8 sed1200_device::control_r()
+uint8_t sed1200_device::control_r()
{
return 0x00;
}
-void sed1200_device::data_w(UINT8 data)
+void sed1200_device::data_w(uint8_t data)
{
ddram[cursor_address] = data;
cursor_step();
@@ -166,14 +166,14 @@ void sed1200_device::cursor_step()
}
}
-const UINT8 *sed1200_device::render()
+const uint8_t *sed1200_device::render()
{
memset(render_buf, 0, 20*8);
if(!display_on)
return render_buf;
for(int i=0; i<20; i++) {
- UINT8 c = ddram[i];
+ uint8_t c = ddram[i];
if(c < 4)
memcpy(render_buf + 8*i, cgram + 8*c, 8);
else if(cgrom)