src/mess/drivers/xor100.c
| r4742 | r4743 | |
| 1 | | /*************************************************************************** |
| 1 | /**************************************************************************************************** |
| 2 | 2 | |
| 3 | 3 | XOR-100-12 |
| 4 | 4 | |
| 5 | 5 | 12/05/2009 Skeleton driver. |
| 6 | 6 | |
| 7 | | ****************************************************************************/ |
| 7 | Execution of this monitor rom starts at F800. |
| 8 | 8 | |
| 9 | I/O sequence: read 0A, discard result |
| 10 | read 0B, output result to 0B |
| 11 | send the sequence AA 40 4E 37 to 01, then to 03 (programming a device?) |
| 12 | L1:read 03 to see if display device is ready |
| 13 | write ascii character to 02 goto L1 until signon message is displayed |
| 14 | in same fashion display top of memory (F800) |
| 15 | display prompt character (*) wait for input |
| 16 | read 03 to see if a key is being input, if so read 02 and display it |
| 17 | if illegal input, display ? then display prompt on a new line |
| 18 | |
| 19 | To summarise: out 01 and out 03 - program a device |
| 20 | out 02 - display a character |
| 21 | in 02 - read character from keyboard |
| 22 | in 03 - get busy status of display (bit 0) and keyboard (bit 1) High=ready |
| 23 | |
| 24 | *****************************************************************************************************/ |
| 25 | |
| 9 | 26 | #include "driver.h" |
| 10 | 27 | #include "cpu/z80/z80.h" |
| 11 | 28 | |
| 12 | 29 | static ADDRESS_MAP_START(xor100_mem, ADDRESS_SPACE_PROGRAM, 8) |
| 13 | 30 | ADDRESS_MAP_UNMAP_HIGH |
| 31 | AM_RANGE( 0x0000, 0xf7ff ) AM_RAM |
| 32 | AM_RANGE( 0xf800, 0xffff ) AM_ROM |
| 14 | 33 | ADDRESS_MAP_END |
| 15 | 34 | |
| 16 | | static ADDRESS_MAP_START( xor100_io , ADDRESS_SPACE_IO, 8) |
| 35 | static ADDRESS_MAP_START(xor100_io, ADDRESS_SPACE_IO, 8) |
| 17 | 36 | ADDRESS_MAP_UNMAP_HIGH |
| 37 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 38 | // AM_RANGE( 0x01, 0x01 ) AM_WRITE(program device) |
| 39 | // AM_RANGE( 0x02, 0x02 ) AM_READWRITE(read keyboard, display character) |
| 40 | // AM_RANGE( 0x03, 0x03 ) AM_READWRITE(read status, program device) |
| 18 | 41 | ADDRESS_MAP_END |
| 19 | 42 | |
| 20 | 43 | /* Input ports */ |
| r4742 | r4743 | |
| 62 | 85 | |
| 63 | 86 | /* ROM definition */ |
| 64 | 87 | ROM_START( xor100 ) |
| 65 | | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) |
| 66 | | ROM_LOAD( "mon185.bin", 0x0000, 0x0800, CRC(0d0bda8d) SHA1(11c83f7cd7e6a570641b44a2f2cc5737a7dd8ae3)) |
| 88 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 89 | ROM_LOAD( "mon185.bin", 0xf800, 0x0800, CRC(0d0bda8d) SHA1(11c83f7cd7e6a570641b44a2f2cc5737a7dd8ae3)) |
| 67 | 90 | |
| 68 | 91 | ROM_END |
| 69 | 92 | |
| 70 | 93 | /* Driver */ |
| 71 | 94 | |
| 72 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 73 | | COMP( ????, xor100, 0, 0, xor100, xor100, 0, xor100, "Unknown", "XOR-100-12", GAME_NOT_WORKING) |
| 95 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 96 | COMP( ????, xor100, 0, 0, xor100, xor100, 0, xor100, "Xor Data Science", "XOR-100-12", GAME_NOT_WORKING) |
| 74 | 97 | |