diff options
Diffstat (limited to 'src/mame/drivers/mmodular.cpp')
-rw-r--r-- | src/mame/drivers/mmodular.cpp | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/src/mame/drivers/mmodular.cpp b/src/mame/drivers/mmodular.cpp index ae98123c4e0..05b9b5de63c 100644 --- a/src/mame/drivers/mmodular.cpp +++ b/src/mame/drivers/mmodular.cpp @@ -90,31 +90,31 @@ Bit 5+6 LED 1-8 enable #include "machine/nvram.h" -//static UINT16 unknown2_data = 0; +//static uint16_t unknown2_data = 0; // Berlin Pro 68020 -static UINT32 BPL32latch_data = 0; +static uint32_t BPL32latch_data = 0; // Mephisto Academy -static UINT8 academyallowNMI = 0; +static uint8_t academyallowNMI = 0; //Monte Carlo IV key/board selects -static UINT8 monteciv_select[2] = { 0xff,0xff }; -static UINT8 montecivtop = 0, montecivbot = 0; -static UINT8 montecivtopnew = 0, montecivbotnew = 0; +static uint8_t monteciv_select[2] = { 0xff,0xff }; +static uint8_t montecivtop = 0, montecivbot = 0; +static uint8_t montecivtopnew = 0, montecivbotnew = 0; //Mephisto Mega IV latch -UINT8 latch2400 = 0; +uint8_t latch2400 = 0; -UINT8 diablo68_3c0000 = 0; +uint8_t diablo68_3c0000 = 0; -UINT8 sfortea_latch = 0; +uint8_t sfortea_latch = 0; INPUT_PORTS_EXTERN( chessboard ); -UINT8 lcd32_char; +uint8_t lcd32_char; class polgar_state : public driver_device { @@ -130,10 +130,10 @@ public: optional_device<hd44780_device> m_lcdc; optional_device<beep_device> m_beeper; - UINT8 led_status; - UINT8 lcd_char; - //UINT8 led7; - UINT8 latch_data; + uint8_t led_status; + uint8_t lcd_char; + //uint8_t led7; + uint8_t latch_data; DECLARE_WRITE8_MEMBER(write_polgar_IO); DECLARE_WRITE8_MEMBER(write_LCD_polgar); DECLARE_READ8_MEMBER(read_1ff1_sfortea); @@ -201,12 +201,12 @@ public: TIMER_DEVICE_CALLBACK_MEMBER(timer_update_irq2); TIMER_DEVICE_CALLBACK_MEMBER(timer_update_irq_academy); void common_chess_start(); - UINT8 convert_imputmask(UINT8 input); - UINT8 convertMCIV2LED(UINT8 codedchar); + uint8_t convert_imputmask(uint8_t input); + uint8_t convertMCIV2LED(uint8_t codedchar); void write_IOenable(unsigned char data,address_space &space); }; -UINT8 polgar_state::convert_imputmask(UINT8 input) +uint8_t polgar_state::convert_imputmask(uint8_t input) { input^=0xff; switch (input) { @@ -275,7 +275,7 @@ WRITE8_MEMBER(polgar_state::write_LCD_polgar) READ8_MEMBER(polgar_state::read_1ff1_sfortea) { - UINT8 data; + uint8_t data; data = ioport("BUTTONS_SFOR1")->read(); logerror("1ff0 data %02x\n",data); return 0; @@ -284,13 +284,13 @@ READ8_MEMBER(polgar_state::read_1ff1_sfortea) READ8_MEMBER(polgar_state::read_1ff0_sfortea) { - UINT8 data; + uint8_t data; data = ioport("BUTTONS_SFOR2")->read(); logerror("1ff0 data %02x\n",data); return 0; // return data; -// static UINT8 temp = 0; +// static uint8_t temp = 0; // temp++; // logerror("read 1ff0 %02x\n",temp); // printf("read 1ff0 %02x\n",temp); @@ -356,7 +356,7 @@ WRITE8_MEMBER(polgar_state::write_LCD_academy) READ16_MEMBER(polgar_state::diablo68_aciaread) { // device_t *acia = machine().device("acia65c51"); - UINT16 result; + uint16_t result; // result = acia_6551_r(acia, offset & 0x03); // logerror("ACIA read offset %02x\n",offset); // printf("ACIA read offset %02x\n",offset); @@ -398,7 +398,7 @@ WRITE16_MEMBER(polgar_state::diablo68_write_LCD) WRITE8_MEMBER(polgar_state::milano_write_LED) { - UINT8 LED_offset = 100; + uint8_t LED_offset = 100; if (data == 0xff) output().set_led_value(LED_offset+offset,1); else output().set_led_value(LED_offset+offset,0); @@ -524,9 +524,9 @@ WRITE8_MEMBER(polgar_state::polgar_write_LED) logerror("LEDs Offset = %d Data = %d\n",offset,data); } -UINT8 polgar_state::convertMCIV2LED(UINT8 codedchar) +uint8_t polgar_state::convertMCIV2LED(uint8_t codedchar) { - UINT8 data = 0; + uint8_t data = 0; if (BIT(codedchar,0)) data |= 0x80; if (BIT(codedchar,1)) data |= 0x01; if (BIT(codedchar,2)) data |= 0x20; @@ -541,8 +541,8 @@ UINT8 polgar_state::convertMCIV2LED(UINT8 codedchar) WRITE8_MEMBER(polgar_state::monteciv_write_LCD) // first write == 00 (start) then 8 writes (to 74595) x 4 chars, then ff to finish { - static UINT8 charstodisplay[4] = { 0,0,0,0 }; - static UINT8 tempchar = 0,shift = 0, whichchar = 0; + static uint8_t charstodisplay[4] = { 0,0,0,0 }; + static uint8_t tempchar = 0,shift = 0, whichchar = 0; if ((montecivtop == 0) && (montecivbot == 0)) { // if both are 0 then no screen chosen montecivbotnew = 1; @@ -646,8 +646,8 @@ READ8_MEMBER(polgar_state::milano_read_board) static const char *const board_lines[8] = { "LINE.0", "LINE.1", "LINE.2", "LINE.3", "LINE.4", "LINE.5", "LINE.6", "LINE.7" }; - UINT8 data = 0x00; - UINT8 tmp; // = 0xff; + uint8_t data = 0x00; + uint8_t tmp; // = 0xff; if (latch_data) { @@ -665,7 +665,7 @@ READ8_MEMBER(polgar_state::milano_read_board) READ8_MEMBER(polgar_state::read_keys) { - UINT8 data; + uint8_t data; static const char *const keynames[1][8] = { { "KEY1_0", "KEY1_1", "KEY1_2", "KEY1_3", "KEY1_4", "KEY1_5", "KEY1_6", "KEY1_7" } @@ -678,7 +678,7 @@ READ8_MEMBER(polgar_state::read_keys) READ8_MEMBER(polgar_state::read_keys_megaiv) { - UINT8 data; + uint8_t data; static const char *const keynames[1][8] = { { "KEY1_0", "KEY1_1", "KEY1_2", "KEY1_3", "KEY1_4", "KEY1_5", "KEY1_6", "KEY1_7" } @@ -692,8 +692,8 @@ READ8_MEMBER(polgar_state::read_keys_megaiv) READ32_MEMBER(polgar_state::read_keys_BPL32) { - UINT32 data = 0; - UINT8 tmp = 0xff, line = 0; + uint32_t data = 0; + uint8_t tmp = 0xff, line = 0; static const char *const board_lines[8] = { "LINE.0", "LINE.1", "LINE.2", "LINE.3", "LINE.4", "LINE.5", "LINE.6", "LINE.7" }; @@ -741,7 +741,7 @@ WRITE8_MEMBER(polgar_state::monteciv_select_line) // FIXME : unlike polgar, academy shares port IO for keys and board, and i just can't seem to get the board latched right (H7 and H8 are always flashing) -- Cow READ8_MEMBER(polgar_state::read_keys_board_monteciv) { - UINT8 data = 0; + uint8_t data = 0; if (monteciv_select[0] == 0xff && monteciv_select[1] == 0xff) { //data = mboard_read_board_8(space,0); @@ -773,8 +773,8 @@ READ8_MEMBER(polgar_state::read_keys_board_monteciv) READ8_MEMBER(polgar_state::read_keys_board_academy) { // static int startup = 0; - UINT8 data = 0; -// UINT8 tmp = 0xff, line = 0; + uint8_t data = 0; +// uint8_t tmp = 0xff, line = 0; // static const char *const board_lines[8] = // { "LINE.0", "LINE.1", "LINE.2", "LINE.3", "LINE.4", "LINE.5", "LINE.6", "LINE.7" }; @@ -821,7 +821,7 @@ WRITE32_MEMBER(polgar_state::write_board_BPL32) READ32_MEMBER(polgar_state::read_buttons_gen32) { - UINT32 data; + uint32_t data; static const char *const keynames[4] = { "BUTTON_1", "BUTTON_2", "", "BUTTON_3" }; data = ioport(keynames[offset])->read(); @@ -833,7 +833,7 @@ READ32_MEMBER(polgar_state::read_buttons_gen32) READ32_MEMBER(polgar_state::read_buttons_van32) { - UINT32 data; + uint32_t data; static const char *const keynames[4] = { "BUTTON_1", "", "BUTTON_2", "BUTTON_3" }; @@ -846,7 +846,7 @@ READ32_MEMBER(polgar_state::read_buttons_van32) READ16_MEMBER(polgar_state::read_buttons_van16) { - UINT16 data; + uint16_t data; static const char *const keynames[3] = { "BUTTON_1", "BUTTON_2", "BUTTON_3" }; @@ -992,7 +992,7 @@ MACHINE_START_MEMBER(polgar_state,van32) // patch LCD delay loop on the 68030 machines until waitstates and/or opcode timings are fixed in MAME core // patches gen32 gen32_41 lond030 - UINT8 *rom = memregion("maincpu")->base(); + uint8_t *rom = memregion("maincpu")->base(); if(rom[0x870] == 0x0c && rom[0x871] == 0x78) { rom[0x870] = 0x38; |