src/mess/drivers/orao.c
| r0 | r1819 | |
| 1 | /***************************************************************************
|
| 2 | |
| 3 | Orao driver by Miodrag Milanovic
|
| 4 | |
| 5 | 01/03/2008 Updated to work with latest SVN code
|
| 6 | 23/02/2008 Sound support added.
|
| 7 | 22/02/2008 Preliminary driver.
|
| 8 | |
| 9 | Driver is based on work of Josip Perusanec
|
| 10 |
|
| 11 | ****************************************************************************/
|
| 12 | |
| 13 | #include "driver.h"
|
| 14 | #include "cpu/m6502/m6502.h"
|
| 15 | #include "sound/dac.h"
|
| 16 | #include "includes/orao.h"
|
| 17 | |
| 18 | |
| 19 | /* Address maps */
|
| 20 | static ADDRESS_MAP_START(orao_mem, ADDRESS_SPACE_PROGRAM, 8)
|
| 21 | AM_RANGE( 0x0000, 0x5fff ) AM_RAM
|
| 22 | AM_RANGE( 0x6000, 0x7fff ) AM_RAM // video ram
|
| 23 | AM_RANGE( 0x8000, 0x9fff ) AM_READWRITE( orao_keyboard_r, orao_io_w )
|
| 24 | AM_RANGE( 0xa000, 0xafff ) AM_ROM // extension
|
| 25 | AM_RANGE( 0xb000, 0xbfff ) AM_ROM // DOS
|
| 26 | AM_RANGE( 0xc000, 0xdfff ) AM_ROM
|
| 27 | AM_RANGE( 0xe000, 0xffff ) AM_ROM
|
| 28 | ADDRESS_MAP_END
|
| 29 | |
| 30 | |
| 31 | /* Input ports */
|
| 32 | INPUT_PORTS_START( orao )
|
| 33 | PORT_START /* line 0 */
|
| 34 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 35 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT)
|
| 36 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Up") PORT_CODE(KEYCODE_UP)
|
| 37 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN)
|
| 38 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Righ") PORT_CODE(KEYCODE_RIGHT)
|
| 39 | PORT_START /* line 1 */
|
| 40 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 41 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER)
|
| 42 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Control") PORT_CODE(KEYCODE_LCONTROL)
|
| 43 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Control") PORT_CODE(KEYCODE_RCONTROL)
|
| 44 | PORT_BIT(0xC0, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 45 | PORT_START /* line 2 */
|
| 46 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 47 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1)
|
| 48 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2)
|
| 49 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F3") PORT_CODE(KEYCODE_F3)
|
| 50 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) |
| 51 | PORT_START /* line 3 */
|
| 52 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 53 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE)
|
| 54 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT)
|
| 55 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_RSHIFT)
|
| 56 | PORT_BIT(0xC0, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 57 | PORT_START /* line 4 */
|
| 58 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 59 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R)
|
| 60 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z)
|
| 61 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T)
|
| 62 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) |
| 63 | PORT_START /* line 5 */
|
| 64 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 65 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5)
|
| 66 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4)
|
| 67 | PORT_BIT(0xC0, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 68 | PORT_START /* line 6 */
|
| 69 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 70 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O)
|
| 71 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I)
|
| 72 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U)
|
| 73 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7) |
| 74 | PORT_START /* line 7 */
|
| 75 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 76 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8)
|
| 77 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9)
|
| 78 | PORT_BIT(0xC0, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 79 | PORT_START /* line 8 */
|
| 80 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 81 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E)
|
| 82 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q)
|
| 83 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W)
|
| 84 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) |
| 85 | PORT_START /* line 9 */
|
| 86 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 87 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2)
|
| 88 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3)
|
| 89 | PORT_BIT(0xC0, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 90 | PORT_START /* line 10 */
|
| 91 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 92 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L)
|
| 93 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J)
|
| 94 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K)
|
| 95 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) |
| 96 | PORT_START /* line 11 */
|
| 97 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 98 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(",") PORT_CODE(KEYCODE_COMMA)
|
| 99 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(".") PORT_CODE(KEYCODE_STOP)
|
| 100 | PORT_BIT(0xC0, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 101 | PORT_START /* line 12 */
|
| 102 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 103 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D)
|
| 104 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A)
|
| 105 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S)
|
| 106 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) |
| 107 | PORT_START /* line 13 */
|
| 108 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 109 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X)
|
| 110 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C)
|
| 111 | PORT_BIT(0xC0, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 112 | PORT_START /* line 14 */
|
| 113 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 114 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F)
|
| 115 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H)
|
| 116 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G)
|
| 117 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N) |
| 118 | PORT_START /* line 15 */
|
| 119 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 120 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B)
|
| 121 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V)
|
| 122 | PORT_BIT(0xC0, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 123 | PORT_START /* line 16 */
|
| 124 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ch") PORT_CODE(KEYCODE_COLON)
|
| 125 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Cj") PORT_CODE(KEYCODE_QUOTE)
|
| 126 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Zh") PORT_CODE(KEYCODE_SLASH)
|
| 127 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_TILDE) |
| 128 | PORT_START /* line 17 */
|
| 129 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 130 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Del") PORT_CODE(KEYCODE_BACKSPACE)
|
| 131 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("^") PORT_CODE(KEYCODE_BACKSLASH)
|
| 132 | PORT_BIT(0xC0, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 133 | PORT_START /* line 18 */
|
| 134 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P)
|
| 135 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Dj") PORT_CODE(KEYCODE_CLOSEBRACE)
|
| 136 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Sh") PORT_CODE(KEYCODE_OPENBRACE)
|
| 137 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(";") PORT_CODE(KEYCODE_EQUALS) |
| 138 | PORT_START /* line 19 */
|
| 139 | PORT_BIT(0x0F, IP_ACTIVE_HIGH, IPT_UNUSED)
|
| 140 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS)
|
| 141 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0)
|
| 142 | PORT_BIT(0xC0, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 143 | |
| 144 | INPUT_PORTS_END
|
| 145 |
|
| 146 | /* Machine driver */
|
| 147 | static MACHINE_DRIVER_START( orao )
|
| 148 | /* basic machine hardware */
|
| 149 | MDRV_CPU_ADD_TAG("main", M6502, 1000000) |
| 150 | MDRV_CPU_PROGRAM_MAP(orao_mem, 0)
|
| 151 | MDRV_MACHINE_RESET( orao )
|
| 152 |
|
| 153 | /* video hardware */ |
| 154 | MDRV_SCREEN_ADD("main", RASTER)
|
| 155 | MDRV_SCREEN_REFRESH_RATE(50)
|
| 156 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
|
| 157 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
|
| 158 | MDRV_SCREEN_SIZE(256, 256)
|
| 159 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1)
|
| 160 | MDRV_PALETTE_LENGTH(2)
|
| 161 | MDRV_PALETTE_INIT( orao ) |
| 162 |
|
| 163 | MDRV_VIDEO_START(orao)
|
| 164 | MDRV_VIDEO_UPDATE(orao)
|
| 165 | |
| 166 | /* audio hardware */
|
| 167 | MDRV_SPEAKER_STANDARD_MONO("mono")
|
| 168 | MDRV_SOUND_ADD(DAC, 0)
|
| 169 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 8.00)
|
| 170 | MACHINE_DRIVER_END
|
| 171 |
|
| 172 | /* ROM definition */
|
| 173 | ROM_START( orao )
|
| 174 | ROM_REGION( 0x10000, REGION_CPU1, ROMREGION_ERASEFF )
|
| 175 | ROM_LOAD( "bas12.rom", 0xc000, 0x2000, CRC(42ae6f69) SHA1(b9d4a544fae13a9c492af027545178addd557111) )
|
| 176 | ROM_LOAD( "crt12.rom", 0xe000, 0x2000, CRC(94ebdc94) SHA1(3959d717f96558823ccc806c842d2fb5ab0c3890) )
|
| 177 | ROM_END
|
| 178 | |
| 179 | ROM_START( orao103 )
|
| 180 | ROM_REGION( 0x10000, REGION_CPU1, ROMREGION_ERASEFF )
|
| 181 | ROM_LOAD( "bas13.rom", 0xc000, 0x2000, CRC(35daf5da) SHA1(499c5a4bd930c26ec6226623c2793b4c7f771658) )
|
| 182 | ROM_LOAD( "crt13.rom", 0xe000, 0x2000, CRC(e7076014) SHA1(0e213287b0b520440af6a2a6297788a9356818c2) ) |
| 183 | ROM_END
|
| 184 | |
| 185 | /* Driver */
|
| 186 |
|
| 187 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */
|
| 188 | COMP( 1984, orao, 0, 0, orao, orao, orao, NULL, "PEL Varazdin", "Orao 102", 0)
|
| 189 | COMP( 1985, orao103, orao, 0, orao, orao, orao103, NULL, "PEL Varazdin", "Orao 103", 0)
|
| 190 | |
src/mess/drivers/galeb.c
| r0 | r1819 | |
| 1 | /***************************************************************************
|
| 2 | |
| 3 | Galeb driver by Miodrag Milanovic
|
| 4 | |
| 5 | 01/03/2008 Updated to work with latest SVN code
|
| 6 | 23/02/2008 Sound support added.
|
| 7 | 22/02/2008 Preliminary driver.
|
| 8 | |
| 9 | Driver is based on work of Josip Perusanec
|
| 10 |
|
| 11 | ****************************************************************************/
|
| 12 | |
| 13 | |
| 14 | #include "driver.h"
|
| 15 | #include "cpu/m6502/m6502.h"
|
| 16 | #include "sound/dac.h"
|
| 17 | #include "includes/galeb.h"
|
| 18 | |
| 19 | GFXDECODE_START( galeb )
|
| 20 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galeb_charlayout, 0, 1 )
|
| 21 | GFXDECODE_END
|
| 22 | |
| 23 | /* Address maps */
|
| 24 | static ADDRESS_MAP_START(galeb_mem, ADDRESS_SPACE_PROGRAM, 8)
|
| 25 | AM_RANGE( 0x0000, 0x1fff ) AM_RAM // RAM
|
| 26 | AM_RANGE( 0xbfe0, 0xbfe7 ) AM_READ ( galeb_keyboard_r ) |
| 27 | AM_RANGE( 0xbfe0, 0xbfe0 ) AM_WRITE( galeb_speaker_w ) |
| 28 | AM_RANGE( 0xb000, 0xb3ff ) AM_RAM // video ram |
| 29 | AM_RANGE( 0xc000, 0xc7ff ) AM_ROM // BASIC 01 ROM
|
| 30 | AM_RANGE( 0xc800, 0xcfff ) AM_ROM // BASIC 02 ROM
|
| 31 | AM_RANGE( 0xd000, 0xd7ff ) AM_ROM // BASIC 03 ROM
|
| 32 | AM_RANGE( 0xd800, 0xdfff ) AM_ROM // BASIC 04 ROM
|
| 33 | AM_RANGE( 0xf000, 0xf7ff ) AM_ROM // Monitor ROM
|
| 34 | AM_RANGE( 0xf800, 0xffff ) AM_ROM // System ROM
|
| 35 | ADDRESS_MAP_END
|
| 36 | |
| 37 | /* Input ports */
|
| 38 | INPUT_PORTS_START( galeb )
|
| 39 | PORT_START /* line 0 */
|
| 40 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Delete") PORT_CODE(KEYCODE_BACKSPACE)
|
| 41 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE)
|
| 42 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER)
|
| 43 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("ESC") PORT_CODE(KEYCODE_ESC)
|
| 44 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 45 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CTL") PORT_CODE(KEYCODE_RCONTROL)
|
| 46 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CTL") PORT_CODE(KEYCODE_LCONTROL)
|
| 47 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("GR") PORT_CODE(KEYCODE_LALT)
|
| 48 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("GR") PORT_CODE(KEYCODE_RALT)
|
| 49 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_RSHIFT)
|
| 50 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT)
|
| 51 | PORT_START /* line 1 */
|
| 52 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("^") PORT_CODE(KEYCODE_TILDE)
|
| 53 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Down - Up") PORT_CODE(KEYCODE_DOWN)
|
| 54 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_COLON)
|
| 55 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1)
|
| 56 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 57 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q)
|
| 58 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A)
|
| 59 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Z)
|
| 60 | PORT_START /* line 2 */
|
| 61 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Dj") PORT_CODE(KEYCODE_CLOSEBRACE)
|
| 62 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left - Right") PORT_CODE(KEYCODE_LEFT)
|
| 63 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(";") PORT_CODE(KEYCODE_EQUALS)
|
| 64 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2)
|
| 65 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("/") PORT_CODE(KEYCODE_SLASH)
|
| 66 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W)
|
| 67 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S)
|
| 68 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X)
|
| 69 | PORT_START /* line 3 */
|
| 70 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Sh") PORT_CODE(KEYCODE_OPENBRACE)
|
| 71 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS)
|
| 72 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Cj") PORT_CODE(KEYCODE_QUOTE)
|
| 73 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3)
|
| 74 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Zh") PORT_CODE(KEYCODE_BACKSLASH)
|
| 75 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E)
|
| 76 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D)
|
| 77 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C)
|
| 78 | PORT_START /* line 4 */
|
| 79 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P)
|
| 80 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) |
| 81 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ch") PORT_CODE(KEYCODE_COLON)
|
| 82 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4)
|
| 83 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(".") PORT_CODE(KEYCODE_STOP)
|
| 84 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R)
|
| 85 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F)
|
| 86 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V)
|
| 87 | PORT_START /* line 5 */
|
| 88 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O)
|
| 89 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9)
|
| 90 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L)
|
| 91 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5)
|
| 92 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(",") PORT_CODE(KEYCODE_COMMA)
|
| 93 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T)
|
| 94 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G)
|
| 95 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B)
|
| 96 | PORT_START /* line 6 */
|
| 97 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 98 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 99 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J)
|
| 100 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6)
|
| 101 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 102 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Y)
|
| 103 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H)
|
| 104 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N)
|
| 105 | PORT_START /* line 7 */
|
| 106 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I)
|
| 107 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8)
|
| 108 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K)
|
| 109 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7)
|
| 110 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M)
|
| 111 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U)
|
| 112 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 113 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED)
|
| 114 | INPUT_PORTS_END
|
| 115 |
|
| 116 | /* Machine driver */
|
| 117 | static MACHINE_DRIVER_START( galeb )
|
| 118 | /* basic machine hardware */
|
| 119 | MDRV_CPU_ADD_TAG("main", M6502, 1000000) |
| 120 | MDRV_CPU_PROGRAM_MAP(galeb_mem, 0) |
| 121 | MDRV_MACHINE_RESET( galeb )
|
| 122 |
|
| 123 | /* video hardware */
|
| 124 | MDRV_SCREEN_ADD("main", RASTER)
|
| 125 | MDRV_SCREEN_REFRESH_RATE(50)
|
| 126 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
|
| 127 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
|
| 128 | MDRV_SCREEN_SIZE(48*8, 16*8)
|
| 129 | MDRV_SCREEN_VISIBLE_AREA(0, 48*8-1, 0, 16*8-1)
|
| 130 | MDRV_PALETTE_LENGTH(2) // mono
|
| 131 | MDRV_GFXDECODE( galeb )
|
| 132 | MDRV_PALETTE_INIT( galeb ) |
| 133 |
|
| 134 | MDRV_VIDEO_START(galeb)
|
| 135 | MDRV_VIDEO_UPDATE(galeb)
|
| 136 | |
| 137 | /* audio hardware */
|
| 138 | MDRV_SPEAKER_STANDARD_MONO("mono")
|
| 139 | MDRV_SOUND_ADD(DAC, 0)
|
| 140 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 8.00)
|
| 141 | MACHINE_DRIVER_END
|
| 142 |
|
| 143 | /* ROM definition */
|
| 144 | ROM_START( galeb )
|
| 145 | ROM_REGION( 0x10000, REGION_CPU1, ROMREGION_ERASEFF )
|
| 146 | ROM_LOAD( "bas01.rom", 0xc000, 0x0800, CRC(9b19ed58) SHA1(ebfc27af8dbabfb233f9888e6a0a0dfc87ae1691) )
|
| 147 | ROM_LOAD( "bas02.rom", 0xc800, 0x0800, CRC(3f320a84) SHA1(4ea082b4269dca6152426b1f720c7508122d3cb7) )
|
| 148 | ROM_LOAD( "bas03.rom", 0xd000, 0x0800, CRC(f122ad10) SHA1(3c7c1dd67268230d179a00b0f8b35be80c2b7035) )
|
| 149 | ROM_LOAD( "bas04.rom", 0xd800, 0x0800, CRC(b5372a83) SHA1(f93b73d98b943c6791f46617418fb5e4238d75bd) )
|
| 150 | ROM_LOAD( "exmd.rom", 0xf000, 0x0800, CRC(1bcb1375) SHA1(fda3361d238720a3d309644093da9832d5aff661) ) |
| 151 | ROM_LOAD( "makbug.rom",0xf800, 0x0800, CRC(91e38e79) SHA1(2b6439a09a470cda9c81b9d453c6380b99716989) )
|
| 152 | ROM_REGION(0x0800, REGION_GFX1,0)
|
| 153 | ROM_LOAD ("chrgen.bin", 0x0000, 0x0800, CRC(409a800e) SHA1(0efe429dd6c0568032636e691d9865a623afeb55))
|
| 154 | |
| 155 | ROM_END
|
| 156 | |
| 157 | /* Driver */
|
| 158 |
|
| 159 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */
|
| 160 | COMP( 1981, galeb, 0, 0, galeb, galeb, galeb, NULL, "PEL Varazdin", "Galeb", 0)
|