summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/pc2000.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pc2000.cpp')
-rw-r--r--src/mame/drivers/pc2000.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/mame/drivers/pc2000.cpp b/src/mame/drivers/pc2000.cpp
index 773b60f3c6d..eb570a109c1 100644
--- a/src/mame/drivers/pc2000.cpp
+++ b/src/mame/drivers/pc2000.cpp
@@ -49,8 +49,8 @@ public:
required_memory_bank m_bank1;
optional_memory_bank m_bank2;
- UINT8 m_mux_data;
- UINT8 m_beep_state;
+ uint8_t m_mux_data;
+ uint8_t m_beep_state;
virtual void machine_start() override;
virtual void machine_reset() override;
@@ -78,7 +78,7 @@ public:
required_device<sed1520_device> m_lcdc_r;
required_device<sed1520_device> m_lcdc_l;
- UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
class gl4004_state : public pc2000_state
@@ -121,7 +121,7 @@ READ8_MEMBER( pc2000_state::key_matrix_r )
{"IN8", "IN9", "INA", "INB", "INC", "IND", "INE", "INF"}
};
- UINT8 data = 0xff;
+ uint8_t data = 0xff;
for (int line=0; line<8; line++)
if (m_mux_data & (1<<line))
@@ -184,7 +184,7 @@ static ADDRESS_MAP_START( pc2000_io , AS_IO, 8, pc2000_state)
ADDRESS_MAP_END
-UINT32 gl3000s_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t gl3000s_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
bitmap.fill(0);
m_lcdc_l->screen_update(screen, bitmap, cliprect);
@@ -192,7 +192,7 @@ UINT32 gl3000s_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap,
return 0;
}
-int gl3000s_sed1520_screen_update(device_t &device, bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 *vram, int start_line, int adc, int start_x)
+int gl3000s_sed1520_screen_update(device_t &device, bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *vram, int start_line, int adc, int start_x)
{
for (int y=0; y<2; y++)
{
@@ -222,16 +222,16 @@ SED1520_UPDATE_CB(gl3000s_screen_update_right)
SED1520_UPDATE_CB(gl3000s_screen_update_left)
{
- UINT8 sec[5];
- UINT8 points[2][5];
+ uint8_t sec[5];
+ uint8_t points[2][5];
memset(sec, 0, sizeof(sec));
memset(points, 0, sizeof(points));
for (int y=0; y<2; y++)
for (int x=59; x<85; x++)
{
- UINT8 data = vram[(y*0x50 + x) % 0x140];
- INT32 dpos = (x - 74) / 2;
+ uint8_t data = vram[(y*0x50 + x) % 0x140];
+ int32_t dpos = (x - 74) / 2;
if (dpos < 0)
{
dpos = 0;
@@ -298,7 +298,7 @@ READ8_MEMBER( pc1000_state::kb_r )
"IN0", "IN1", "IN2", "IN3", "IN4", "IN5", "IN6", "IN7", "IN8"
};
- UINT8 data = 0xff;
+ uint8_t data = 0xff;
for (int line=0; line<9; line++)
if (!(offset & (1<<line)))
@@ -335,8 +335,8 @@ WRITE8_MEMBER( pc1000_state::lcdc_control_w )
HD44780_PIXEL_UPDATE(pc1000_state::pc1000_pixel_update)
{
- UINT8 layout[] = { 0x00, 0x4f, 0x4e, 0x4d, 0x4c, 0x4b, 0x4a, 0x49, 0x48, 0x47, 0x40, 0x3f, 0x3e, 0x3d, 0x3c, 0x3b, 0x3a, 0x39, 0x38, 0x37 };
- //UINT8 layout[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49 };
+ uint8_t layout[] = { 0x00, 0x4f, 0x4e, 0x4d, 0x4c, 0x4b, 0x4a, 0x49, 0x48, 0x47, 0x40, 0x3f, 0x3e, 0x3d, 0x3c, 0x3b, 0x3a, 0x39, 0x38, 0x37 };
+ //uint8_t layout[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49 };
for(int i=0; i<20; i++)
if (pos == layout[i])
@@ -748,9 +748,9 @@ INPUT_PORTS_END
void pc2000_state::machine_start()
{
std::string region_tag;
- UINT8 *bios = memregion("bios")->base();
+ uint8_t *bios = memregion("bios")->base();
memory_region *cart_region = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str());
- UINT8 *cart = (cart_region != nullptr) ? cart_region->base() : memregion("bios")->base();
+ uint8_t *cart = (cart_region != nullptr) ? cart_region->base() : memregion("bios")->base();
m_bank0->configure_entries(0, 0x10, bios, 0x4000);
m_bank1->configure_entries(0, 0x10, bios, 0x4000);
@@ -761,9 +761,9 @@ void pc2000_state::machine_start()
void gl4004_state::machine_start()
{
std::string region_tag;
- UINT8 *bios = memregion("bios")->base();
+ uint8_t *bios = memregion("bios")->base();
memory_region *cart_region = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str());
- UINT8 *cart = (cart_region != nullptr) ? cart_region->base() : memregion("bios")->base();
+ uint8_t *cart = (cart_region != nullptr) ? cart_region->base() : memregion("bios")->base();
m_bank0->configure_entries(0, 0x20, bios, 0x4000);
m_bank1->configure_entries(0, 0x20, bios, 0x4000);
@@ -781,7 +781,7 @@ void pc2000_state::machine_reset()
void pc1000_state::machine_start()
{
- UINT8 *bios = memregion("bios")->base();
+ uint8_t *bios = memregion("bios")->base();
m_bank1->configure_entries(0, 0x08, bios, 0x4000);
}
@@ -814,7 +814,7 @@ GFXDECODE_END
DEVICE_IMAGE_LOAD_MEMBER( pc2000_state, pc2000_cart )
{
- UINT32 size = m_cart->common_get_size("rom");
+ uint32_t size = m_cart->common_get_size("rom");
// we always allocate a 0x40000 region, even if most carts span only 0x20000,
// because the bankswitch code accesses up to 16 x 16K banks...
@@ -868,7 +868,7 @@ HD44780_PIXEL_UPDATE(gl4004_state::gl4000_pixel_update)
{
if (pos < 40)
{
- static const UINT8 gl4000_display_layout[] =
+ static const uint8_t gl4000_display_layout[] =
{
0x00, 0x01, 0x02, 0x03, 0x28, 0x29, 0x2a, 0x2b, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x2c, 0x2d, 0x2e, 0x2f,
0x30, 0x31, 0x32, 0x33, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b,
@@ -876,7 +876,7 @@ HD44780_PIXEL_UPDATE(gl4004_state::gl4000_pixel_update)
0x44, 0x45, 0x46, 0x47, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f
};
- UINT8 char_pos = gl4000_display_layout[line*40 + pos];
+ uint8_t char_pos = gl4000_display_layout[line*40 + pos];
bitmap.pix16((char_pos / 20) * 9 + y, (char_pos % 20) * 6 + x) = state;
}
}