summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/minimaws/lib/auxverbs.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-01-0268340: Interrupt overhaul AJR8-92/+159
- Interrupts are now properly acknowledged and arbitrated. (Many remain unimplemented.) - Interrupts are no longer automatically cleared upon acknowledgment except for the Programmable Interrupt Timer. - Timer unit clears COM and sets TC and TO in the status register on applicable conditions. - Timer unit's confusion of IE0 (TC IRQ enable) with IE2 (TO IRQ enable) has been sorted out.
2019-01-03srcclean: treat *.xslt as XML (nw) Vas Crabb1-1/+2
2019-01-03Add some example XSLTs that operate on -listxml output Vas Crabb3-0/+136
2019-01-02Add gitignore to src/lib/netlist. (nw) couriersud2-1/+6
Also clean up doxygen genereated files in netlist makefile.
2019-01-02Fix SUBTARGET=nl build. (nw) couriersud2-2/+7
2019-01-02Fix compile. (nw) couriersud1-0/+1
2019-01-02hh_sm510: code review bjack (nw) hap1-8/+7
2019-01-02minor bugfix and cleanup (#4456) Risugami1-5/+4
Fixes leader lamp
2019-01-02gsword.cpp: update notes (nw) Vas Crabb1-5/+27
2019-01-02(nw) We have a separate manufacturer field. Vas Crabb2-80/+80
I've tried to dig up marketing material for systems to check: * The "Eagle PC" really was marketed as "Eagle PC" with various submodels (e.g. "Spirit", "II" and "Turbo"). * "ITT XTRA" was marketed using that name. * The IBM 5550 line was marketed as the "5550" (not "IBM 5550" and not "PC 5550"). * Columbia Data Products did not use "CDP" in the marketing name for the MPC 1600.
2019-01-02bfm_sc4.cpp, ymz280b.cpp: Reduce logging spam (nw) AJR2-5/+10
2019-01-01ds3100: Preliminary full implementation of DEC DC7085 quad UART. [R. Belmont] arbee2-6/+516
2019-01-0168340: Preliminary cleanups (nw) AJR4-27/+27
2019-01-0168307: More accurate emulation of internal priority interrupt controller AJR7-67/+224
2019-01-01pc.cpp: Marked the Compaq Portable video ROM as BAD_DUMP. rfka011-1/+2
2019-01-01Add 'pangbp' (nw) ClawGrip1-0/+1
2019-01-01New NOT_WORKING clone ClawGrip1-67/+100
------------------------------- Pang (bootleg, set 6) [ClawGrip, Recreativas.org, The Dumping Union]
2019-01-01tecmosys.cpp: Modify game name / description based on suggestions by fellow ↵ braintro1-2/+3
devs (nw)
2019-01-01new working clone - Tetris Plus 2 v2.7 braintro2-5/+32
Turns out v2.7 WAS dumped.... in 2002!!! New Working Clone Added -------------------------------------- Tetris Plus 2 (World, V2.7) [Team Japump!!!]
2019-01-01taito_en: Eliminate set_input_line_vector (nw) AJR2-12/+5
2019-01-01Games promoted to WORKING Ted Green1-7/+12
San Francisco Rush 2049 Clones promoted to WORKING San Francisco Rush 2049: Special Edition
2019-01-01voodoo: Add some pre-defined rasterizers for sf2049se (nw) Ted Green1-0/+18
2019-01-01dcs: Fixed ram bank mapping in Denver DCS audio (nw) Ted Green1-11/+9
2019-01-01New working machine added Henrik Algestam2-0/+93
----------- Black Jack (Nintendo Game & Watch) [algestam]
2019-01-01additional documentation on compiling MAME (nw) Vas Crabb2-2/+269
2019-01-01speglsht.cpp : Typo cam9001-1/+1
2019-01-01mips1: fix stupid tlb error (nw) Patrick Mackinlay1-3/+3
2019-01-01tetrisp2.cpp: Show version number for World set of Tetris Plus 2 & add ↵ braintro2-2/+4
comment about v2.7 (nw)
2019-01-01new working clone - Bubble 2000 v1.2 braintro2-55/+142
New Working Clone Added ------------------------------------------ Bubble 2000 V1.2 [Kevin Eshbach, The Dumping Union]
2019-01-01Keep track of which SDL input subsystems were initialized (nw) Justin Kerk1-4/+16
2018-12-31msx: Use input merger device for IRQ (nw) AJR3-67/+22
2018-12-31ym2148: Flag framing errors; add error reset command; misc. small changes AJR2-38/+48
2018-12-31Fix clang build [-Werror,-Wreorder] (nw) AJR1-3/+3
2019-01-01wd33c9x: somebody dropped this (nw) Patrick Mackinlay3-0/+15
2018-12-31at.cpp: Correct Compaq Portable names to show up ... (#4443) rfka014-693/+841
* at.cpp: Correct Compaq Portable names to show up when an incomplete name is entered on the command line. * compc.cpp: Moved appropriate comments over from pc.cpp. * pc.cpp: Reorganised for easier readability, updated comments, added Eagle Spirit PC, Compaq Portable and CDP MPC 1600 * pc.cpp: Added ITT XTRA. Boots and works, despite keyboard error. Dump of original graphics card is missing.
2018-12-31New NSCSI device for WD33C9x SCSI Controllers (#4449) tyfighter3-4/+1796
* New NSCSI device for WD33C9x SCSI Controllers Add a new NSCSI device model for the WD33C9x family of SCSI Controllers. * Add missing shortname calls to logging lines Add missing shortname calls to logging lines * Correct spaces -> tabs Correct spaces -> tabs
2018-12-31fs3216: Add X2212 dump [Bitsavers] AJR1-2/+5
- Fix X2212 recall and store mixup (nw)
2018-12-31Mark empty PLD dumps from protected devices as NO_DUMP (nw) ClawGrip1-2/+2
For 18CV8 PLDs
2018-12-31more SEGA FD1089 changes (nw) andreasnaive2-6/+6
2018-12-31aristmk5.cpp: added MACHINE_IMPERFECT_TIMING flag, since games run twice as ↵ Ivan Vangelista1-1/+1
fast as they should (nw)
2018-12-31funkyjet.h: forgot to change this too, after moving funkyjetb to tumbleb.cpp ↵ Ivan Vangelista1-8/+6
(nw)
2018-12-31restore additional Sega 315-5313 palette entries used by 32X (nw) Vas Crabb2-5/+9
2018-12-31 new e-kara Software List entries [Sean Riddle, David Haywood] + Play TV ↵ David Haywood8-27/+300
Opus working [Sean Riddle, David Haywood, Peter Wilhelmsen] (#4446) * new e-kara Software List entries [Sean Riddle, David Haywood] ekara_japan:ec0011 J-Pop Mix Volume 6 (Japan) (EC0011-JPM) ekara_japan:ec0018 1982-84 Volume 1 (Japan) (EC0018-G82) ekara_japan:ec0021 J-Pop Mix Volume 9 (Japan) (EC0021-JPM) ekara_japan:ec0024 J-Pop Mix Volume 12 (Japan) (EC0024-JPM) ekara_japan:ec0030 ENK Volume 3 (Japan) (EC0030-ENK) ekara_japan:ec0033 J-Pop Mix Volume 17 (Japan) (EC0033-JPM) ekara_japan:ec0004 J-Pop Mix Volume 4 (Japan) (EC0004-JPM) ekara_japan:ec0044a Artist Selection Volume 9 (Every Little Thing) (Japan) (EC0044-ATS) (set 2) ekara_japan:ec0047 DUE Volume 1 (Japan) (EC0047-DUE) ekara_japan:ec0051 J-Pop Mix Volume 21 (Japan) (EC0051-JPM) ekara_japan:ec0052 ENK Volume 7 (Japan) (EC0052-ENK) ekara_japan:ec0061 J-Pop Mix Volume 27 (Japan) (EC0061-JPM) ekara_japan:ec0063 J-Pop Mix Volume 29 (Japan) (EC0063-JPM) * notes on the weird G10 card * confirmed cart (nw) * document highest numbers seen in these series (nw) * (nw) * the new dump by Sean looks good, the old dump by Team Europe seems to have a bad bit based on data analysis (nw) * (nw) * (nw) * both dumps have been verified multiple times, but based on data analyzsis I think this is bitrot, leave it as a comment for reference just in case tho (nw) * new WORKING machines : Play TV Opus (NTSC) [Sean Riddle, David Haywood, Peter Wilhelmsen]
2018-12-31fix regressions in redclash, redclashk, and trackfld.cpp (nw) Vas Crabb2-1/+2
2018-12-31bus/einstein/pipe: Eliminate MCFG_ macros; add bus clock (nw) AJR3-30/+23
2018-12-30fs3216: Map the other slot ROMs (nw) AJR1-0/+3
2018-12-30fs3216: Draw messages on screen (nw) AJR1-3/+20
2018-12-30fs3216: Map video card (nw) AJR1-3/+7
2018-12-31fix palette regressions in elfin, fmaniac3, inufuku, jumpjump, kdynastg, ↵ Vas Crabb6-6/+7
xiles, xfilesk, wbeachvl, wbeachvl12, wbeachvl13, and mugsmash (nw)
2018-12-31Better Emscripten SDL fix (nw) Justin Kerk1-4/+5
modifiers; ioport_port *m_io_port[11]; required_device<cpu_device> m_maincpu; }; // okean240 requires bit 4 to change READ8_MEMBER(okean240_state::okean240_kbd_status_r) { m_tog ^= 0x18; if (m_term_data) return m_tog | 2; else return m_tog & 0x18; } // see if a key is pressed and indicate status READ8_MEMBER(okean240_state::okean240a_kbd_status_r) { uint8_t i,j; m_tog ^= 0x18; for (i = 0; i < 11; i++) { j = m_io_port[i]->read(); if (j) return m_tog | 2; } m_j = 0; return m_tog & 0x18; } // for test rom READ8_MEMBER(okean240_state::term_status_r) { return (m_term_data) ? 3 : 1; } READ8_MEMBER(okean240_state::okean240_port40_r) { // port 40 (get ascii key value) return term_r(space, offset); } READ8_MEMBER(okean240_state::okean240_port41_r) { // port 41 bit 1 (test rom status bit) m_tog ^= 6; return m_tog; } READ8_MEMBER(okean240_state::okean240a_port40_r) { // port 40 (get a column) for (uint8_t i = 0; i < 11; i++) { uint8_t j = m_io_port[i]->read(); if (j) { if (j==m_j) return 0; m_j=j; return j; } } m_j=0; return 0; } READ8_MEMBER(okean240_state::okean240a_port41_r) { // port 41 bits 6&7 (modifier keys), and bit 1 (test rom status bit) { m_tog ^= 2; return m_tog | m_io_modifiers->read(); } } READ8_MEMBER(okean240_state::okean240a_port42_r) { // port 42 (get a row) for (uint8_t i = 0; i < 11; i++) { if (m_io_port[i]->read() ) return i; } return 0; } // This is a keyboard acknowledge pulse, it goes high then // straightaway low, if reading port 40 indicates a key is pressed. WRITE8_MEMBER(okean240_state::okean240_port42_w) { // okean240: port 42 bit 7 // okean240a: port 42 bit 4 } // for test rom READ8_MEMBER(okean240_state::term_r) { uint8_t ret = m_term_data; m_term_data = 0; return ret; } WRITE8_MEMBER(okean240_state::scroll_w) { m_scroll = data; } void okean240_state::okean240_mem(address_map &map) { map.unmap_value_high(); map(0x0000, 0x07ff).bankrw("boot"); map(0x0800, 0x3fff).ram(); map(0x4000, 0x7fff).ram().share("videoram"); map(0x8000, 0xbfff).ram(); map(0xc000, 0xffff).rom(); } void okean240_state::okean240_io(address_map &map) { map.global_mask(0xff); map(0x40, 0x43).rw("ppikbd", FUNC(i8255_device::read), FUNC(i8255_device::write)); map(0x60, 0x63).rw("pit", FUNC(pit8253_device::read), FUNC(pit8253_device::write)); map(0x80, 0x81).rw("pic", FUNC(pic8259_device::read), FUNC(pic8259_device::write)); map(0x80, 0x80).r(FUNC(okean240_state::okean240_kbd_status_r)); map(0xa0, 0xa0).r(FUNC(okean240_state::term_r)); map(0xa1, 0xa1).r(FUNC(okean240_state::term_status_r)); map(0xc0, 0xc3).rw("ppic", FUNC(i8255_device::read), FUNC(i8255_device::write)); map(0xe0, 0xe3).rw("ppie", FUNC(i8255_device::read), FUNC(i8255_device::write)); } void okean240_state::okean240a_io(address_map &map) { map.global_mask(0xff); map(0x40, 0x43).rw("ppikbd", FUNC(i8255_device::read), FUNC(i8255_device::write)); map(0x60, 0x63).rw("pit", FUNC(pit8253_device::read), FUNC(pit8253_device::write)); map(0x80, 0x81).rw("pic", FUNC(pic8259_device::read), FUNC(pic8259_device::write)); map(0x80, 0x80).r(FUNC(okean240_state::okean240a_kbd_status_r)); map(0xa0, 0xa0).rw("uart", FUNC(i8251_device::data_r), FUNC(i8251_device::data_w)); map(0xa1, 0xa1).rw("uart", FUNC(i8251_device::status_r), FUNC(i8251_device::control_w)); map(0xc0, 0xc3).rw("ppic", FUNC(i8255_device::read), FUNC(i8255_device::write)); map(0xe0, 0xe3).rw("ppie", FUNC(i8255_device::read), FUNC(i8255_device::write)); // AM_RANGE(0x00, 0x1f)=ppa00.data // AM_RANGE(0x20, 0x23)=dsk.data // AM_RANGE(0x24, 0x24)=dsk.wait // AM_RANGE(0x25, 0x25)=dskctl.data // AM_RANGE(0x40, 0x5f)=ppa40.data // AM_RANGE(0x60, 0x7f)=tim.data // AM_RANGE(0x80, 0x81)=intctl.data // AM_RANGE(0xa0, 0xa1)=comport.data // AM_RANGE(0xc0, 0xdf)=ppaC0.data // AM_RANGE(0xe0, 0xff)=ppaE0.data } void okean240_state::okean240t_io(address_map &map) { map.global_mask(0xff); map(0x20, 0x23).nopw(); map(0x40, 0x43).rw("ppikbd", FUNC(i8255_device::read), FUNC(i8255_device::write)); map(0x60, 0x63).rw("pit", FUNC(pit8253_device::read), FUNC(pit8253_device::write)); map(0x80, 0x81).rw("pic", FUNC(pic8259_device::read), FUNC(pic8259_device::write)); map(0x80, 0x80).r(FUNC(okean240_state::okean240_kbd_status_r)); map(0xa0, 0xa0).rw("uart", FUNC(i8251_device::data_r), FUNC(i8251_device::data_w)); map(0xa1, 0xa1).rw("uart", FUNC(i8251_device::status_r), FUNC(i8251_device::control_w)); map(0xc0, 0xc3).rw("ppic", FUNC(i8255_device::read), FUNC(i8255_device::write)); map(0xe0, 0xe3).rw("ppie", FUNC(i8255_device::read), FUNC(i8255_device::write)); } /* Input ports */ static INPUT_PORTS_START( okean240 ) INPUT_PORTS_END static INPUT_PORTS_START( okean240a ) PORT_START("X0") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_UNUSED) // comma PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_UNUSED) // minus PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_UNUSED) // null PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_UNUSED) // null PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_UNUSED) // null PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("num7") PORT_CODE(KEYCODE_7_PAD) PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("num8") PORT_CODE(KEYCODE_8_PAD) PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("num9") PORT_CODE(KEYCODE_9_PAD) PORT_START("X1") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC) PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_UNUSED) // null PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_UNUSED) // null PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_UNUSED) // null PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("num0") PORT_CODE(KEYCODE_0_PAD) PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("numdel") PORT_CODE(KEYCODE_DEL_PAD) PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("numenter") PORT_CODE(KEYCODE_ENTER_PAD) PORT_START("X2") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("@ `") PORT_CODE(KEYCODE_TILDE) PORT_CHAR('@') PORT_CHAR('`') PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J) PORT_CHAR('j') PORT_CHAR('J') PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) PORT_CHAR('f') PORT_CHAR('F') PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) PORT_CHAR('q') PORT_CHAR('Q') PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_UNUSED) // null PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("num1") PORT_CODE(KEYCODE_1_PAD) PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("num2") PORT_CODE(KEYCODE_2_PAD) PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("num3") PORT_CODE(KEYCODE_3_PAD) PORT_START("X3") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_UNUSED) //9E PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("1 !") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) PORT_CHAR('c') PORT_CHAR('C') PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) PORT_CHAR('y') PORT_CHAR('Y') PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("^ ~") PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('^') PORT_CHAR('~') PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("num4") PORT_CODE(KEYCODE_4_PAD) PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("num5") PORT_CODE(KEYCODE_5_PAD) PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("num6") PORT_CODE(KEYCODE_6_PAD) PORT_START("X4") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_UNUSED) //81 PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("2 \"") PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('"') PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U) PORT_CHAR('u') PORT_CHAR('U') PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) PORT_CHAR('w') PORT_CHAR('W') PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) PORT_CHAR('s') PORT_CHAR('S') PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_UNUSED) // plus PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_UNUSED) //7F PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_UNUSED) //03 PORT_START("X5") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_UNUSED) //86 PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("3 #") PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) PORT_CHAR('k') PORT_CHAR('K') PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) PORT_CHAR('a') PORT_CHAR('A') PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) PORT_CHAR('m') PORT_CHAR('M') PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Backspace") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_UNUSED) //99 PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_UNUSED) //8B PORT_START("X6") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("4 $") PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) PORT_CHAR('e') PORT_CHAR('E') PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P) PORT_CHAR('p') PORT_CHAR('P') PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I) PORT_CHAR('i') PORT_CHAR('I') PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_UNUSED) //84 PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("/ ?") PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') PORT_START("X7") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_UNUSED) //92 prints # and line feed PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("5 %") PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N) PORT_CHAR('n') PORT_CHAR('N') PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) PORT_CHAR('r') PORT_CHAR('R') PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) PORT_CHAR('t') PORT_CHAR('T') PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_UNUSED) //98 PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_UNUSED) //85 cr and line feed PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("_") PORT_CODE(KEYCODE_END) PORT_START("X8") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_UNUSED) //83 cancel input PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("6 &") PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) PORT_CHAR('g') PORT_CHAR('G') PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) PORT_CHAR('o') PORT_CHAR('O') PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('x') PORT_CHAR('X') PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(". >") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(": *") PORT_CODE(KEYCODE_QUOTE) PORT_CHAR(':') PORT_CHAR('*') PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("- =") PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('=') PORT_START("X9") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("7 '") PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("[ {") PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR('[') PORT_CHAR('{') PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) PORT_CHAR('l') PORT_CHAR('L') PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('b') PORT_CHAR('B') PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_UNUSED) //93 PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("\\ |") PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR('\\') PORT_CHAR('|') PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) PORT_CHAR('h') PORT_CHAR('H') PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) PORT_CHAR('0') PORT_START("XA") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("8 (") PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('(') PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("] }") PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(']') PORT_CHAR('}') PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) PORT_CHAR('d') PORT_CHAR('D') PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("; +") PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR('+') PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(", <") PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR('<') PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) PORT_CHAR('v') PORT_CHAR('V') PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('z') PORT_CHAR('Z') PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("9 )") PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR(')') PORT_START("MODIFIERS") PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_SHIFT_2) PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1) INPUT_PORTS_END void okean240_state::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) { switch (id) { case TIMER_OKEAN_BOOT: /* after the first 6 bytes have been read from ROM, switch the ram back in */ membank("boot")->set_entry(0); break; default: assert_always(false, "Unknown id in okean240_state::device_timer"); } } void okean240_state::machine_start() { char kbdrow[6]; for (int i = 0; i < 11; i++) { sprintf(kbdrow,"X%X",i); m_io_port[i] = ioport(kbdrow); } } void okean240_state::machine_reset() { timer_set(attotime::from_usec(10), TIMER_OKEAN_BOOT); membank("boot")->set_entry(1); m_term_data = 0; m_j = 0; m_scroll = 0; } void okean240_state::kbd_put(u8 data) { m_term_data = data; } void okean240_state::init_okean240() { uint8_t *RAM = memregion("maincpu")->base(); membank("boot")->configure_entries(0, 2, &RAM[0x0000], 0xe000); } void okean240_state::video_start() { } uint32_t okean240_state::screen_update_okean240(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { uint8_t gfx,ma; // ma must be 8bit uint16_t x,y; for (y = 0; y < 256; y++) { ma = y + m_scroll; uint16_t *p = &bitmap.pix16(y); for (x = 0; x < 0x4000; x+=0x200) { gfx = m_p_videoram[x|ma] | m_p_videoram[x|ma|0x100]; /* Display a scanline of a character */ *p++ = BIT(gfx, 0); *p++ = BIT(gfx, 1); *p++ = BIT(gfx, 2); *p++ = BIT(gfx, 3); *p++ = BIT(gfx, 4); *p++ = BIT(gfx, 5); *p++ = BIT(gfx, 6); *p++ = BIT(gfx, 7); } } return 0; } /* F4 Character Displayer */ static const gfx_layout okean240_charlayout = { 8, 7, /* 8 x 7 characters */ 160, /* 160 characters */ 1, /* 1 bits per pixel */ { 0 }, /* no bitplanes */ /* x offsets */ { 7, 6, 5, 4, 3, 2, 1, 0 }, /* y offsets */ { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8 }, 8*7 /* every char takes 7 bytes */ }; static GFXDECODE_START( gfx_okean240 ) GFXDECODE_ENTRY( "maincpu", 0xec08, okean240_charlayout, 0, 1 ) GFXDECODE_END static GFXDECODE_START( gfx_okean240a ) GFXDECODE_ENTRY( "maincpu", 0xef63, okean240_charlayout, 0, 1 ) GFXDECODE_END MACHINE_CONFIG_START(okean240_state::okean240t) /* basic machine hardware */ MCFG_DEVICE_ADD("maincpu",I8080, XTAL(12'000'000) / 6) MCFG_DEVICE_PROGRAM_MAP(okean240_mem) MCFG_DEVICE_IO_MAP(okean240t_io) i8251_device &uart(I8251(config, "uart", 0)); uart.txd_handler().set("rs232", FUNC(rs232_port_device::write_txd)); uart.dtr_handler().set("rs232", FUNC(rs232_port_device::write_dtr)); uart.rts_handler().set("rs232", FUNC(rs232_port_device::write_rts)); MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, "terminal") MCFG_RS232_RXD_HANDLER(WRITELINE("uart", i8251_device, write_rxd)) MCFG_RS232_DSR_HANDLER(WRITELINE("uart", i8251_device, write_dsr)) MCFG_RS232_CTS_HANDLER(WRITELINE("uart", i8251_device, write_cts)) MCFG_DEVICE_ADD("ppikbd", I8255, 0) MCFG_I8255_IN_PORTA_CB(READ8(*this, okean240_state, okean240_port40_r)) MCFG_I8255_IN_PORTB_CB(READ8(*this, okean240_state, okean240_port41_r)) MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, okean240_state, okean240_port42_w)) MCFG_DEVICE_ADD("ppic", I8255, 0) MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, okean240_state, scroll_w)) MCFG_DEVICE_ADD("ppie", I8255, 0) pit8253_device &pit(PIT8253(config, "pit", 0)); pit.set_clk<1>(3072000); // artificial rate pit.out_handler<1>().set("uart", FUNC(i8251_device::write_txc)); pit.out_handler<1>().append("uart", FUNC(i8251_device::write_rxc)); MCFG_DEVICE_ADD("pic", PIC8259, 0) /* video hardware */ MCFG_SCREEN_ADD("screen1", RASTER) MCFG_SCREEN_REFRESH_RATE(50) MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ MCFG_SCREEN_SIZE(256, 256) MCFG_SCREEN_VISIBLE_AREA(0, 255, 0, 255) MCFG_SCREEN_UPDATE_DRIVER(okean240_state, screen_update_okean240) MCFG_SCREEN_PALETTE("palette") MCFG_PALETTE_ADD_MONOCHROME("palette") MACHINE_CONFIG_END MACHINE_CONFIG_START(okean240_state::okean240a) okean240t(config); MCFG_DEVICE_MODIFY("maincpu") MCFG_DEVICE_IO_MAP(okean240a_io) MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_okean240a) MCFG_DEVICE_REMOVE("rs232") MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, "keyboard") MCFG_RS232_RXD_HANDLER(WRITELINE("uart", i8251_device, write_rxd)) MCFG_RS232_DSR_HANDLER(WRITELINE("uart", i8251_device, write_dsr)) MCFG_RS232_CTS_HANDLER(WRITELINE("uart", i8251_device, write_cts)) MCFG_DEVICE_MODIFY("ppikbd") MCFG_I8255_IN_PORTA_CB(READ8(*this, okean240_state, okean240a_port40_r)) MCFG_I8255_IN_PORTB_CB(READ8(*this, okean240_state, okean240a_port41_r)) MCFG_I8255_IN_PORTC_CB(READ8(*this, okean240_state, okean240a_port42_r)) MCFG_DEVICE_MODIFY("pit") MCFG_PIT8253_CLK1(1536000) // artificial rate MACHINE_CONFIG_END MACHINE_CONFIG_START(okean240_state::okean240) okean240t(config); MCFG_DEVICE_MODIFY("maincpu") MCFG_DEVICE_IO_MAP(okean240_io) MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_okean240) MCFG_DEVICE_REMOVE("uart") MCFG_DEVICE_REMOVE("rs232") MCFG_DEVICE_MODIFY("pit") MCFG_PIT8253_OUT1_HANDLER(NOOP) MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0) MCFG_GENERIC_KEYBOARD_CB(PUT(okean240_state, kbd_put)) MACHINE_CONFIG_END /* ROM definition */ ROM_START( okean240 ) ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) ROM_LOAD( "monitor.bin", 0xe000, 0x2000, CRC(587799bc) SHA1(1f677afa96722ca4ed2643eaca243548845fc854) ) ROM_LOAD( "cpm80.bin", 0xc000, 0x2000, CRC(7378e4f9) SHA1(c3c06c6f2e953546452ca6f82140a79d0e4953b4) ) ROM_END ROM_START( okean240a ) ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) ROM_LOAD( "fddmonitor.bin", 0xe000, 0x2000, CRC(bcac5ca0) SHA1(602ab824704d3d5d07b3787f6227ff903c33c9d5) ) ROM_LOAD( "fddcpm80.bin", 0xc000, 0x2000, CRC(b89a7e16) SHA1(b8f937c04f430be18e48f296ed3ef37194171204) ) ROM_END ROM_START( okean240t ) ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) ROM_LOAD( "test.bin", 0xe000, 0x0800, CRC(e9e2b7b9) SHA1(e4e0b6984a2514b6ba3e97500d487ea1a68b7577) ) ROM_END /* Driver */ // YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS COMP( 1986, okean240, 0, 0, okean240, okean240, okean240_state, init_okean240, "<unknown>", "Okeah-240", MACHINE_NOT_WORKING | MACHINE_NO_SOUND) COMP( 1986, okean240a, okean240, 0, okean240a, okean240a, okean240_state, init_okean240, "<unknown>", "Ocean-240 with FDD", MACHINE_NOT_WORKING | MACHINE_NO_SOUND) COMP( 1986, okean240t, okean240, 0, okean240t, okean240, okean240_state, init_okean240, "<unknown>", "Ocean-240 Test ROM", MACHINE_NOT_WORKING | MACHINE_NO_SOUND)