Previous 15994 Revisions Next

r5984 Tuesday 6th October, 2009 at 10:54:20 UTC by Angelo Salese
[X1]: downgraded the Sharp X-1 by removing stuff that is actually x1turbo exclusive, promoted to working status.
[src/mess/drivers]pc6001.c x1.c

src/mess/drivers/pc6001.c
r5983r5984
88   TODO:
99   - Hook up tape loading, images that are floating around the net are already
1010     ADC'ed, so they should be easy to implement (but not exactly faithful)
11   - cassette handling requires a decap of the MCU. It could be possible to
12     do some tight synch between the master CPU and a code simulation,but I think
13     it's not worth the effort...
1114   - Currently rewriting the video part without the MC6847 for two reasons:
1215      A) the later models have a custom video chip in the place of the MC6847,
1316         so this implementation will be used in the end.
1417      B) It's easier to me to see what the attribute vram does since I don't
1518         have any docs atm.
16   - cassette handling requires a decap of the MCU. It could be possible to
17     do some tight synch between the master CPU and a code simulation...
1819
1920==================================================================================
2021
r5983r5984
941942   ROM_LOAD( "cgrom60.60", 0x0000, 0x1000, CRC(b0142d32) SHA1(9570495b10af5b1785802681be94b0ea216a1e26) )
942943   ROM_RELOAD(             0x1000, 0x1000 )
943944
945   ROM_REGION( 0x1000, "mcu", ROMREGION_ERASEFF )
946   ROM_LOAD( "i8049", 0x0000, 0x1000, NO_DUMP )
947
944948   ROM_REGION( 0x10000, "cas", ROMREGION_ERASEFF )
945949   /* Load here your tape for now (and change the cas length macro according to what MESS returns) */
946950//   ROM_LOAD( "car.cas", 0x0000, CAS_LENGTH, CRC(1) SHA1(1) )
r5983r5984
956960   ROM_REGION( 0x1000, "gfx1", 0 )
957961   ROM_LOAD( "cgrom60.60a", 0x0000, 0x1000, CRC(49c21d08) SHA1(9454d6e2066abcbd051bad9a29a5ca27b12ec897) )
958962
963   ROM_REGION( 0x1000, "mcu", ROMREGION_ERASEFF )
964   ROM_LOAD( "i8049", 0x0000, 0x1000, NO_DUMP )
965
959966   ROM_REGION( 0x10000, "cas", ROMREGION_ERASEFF )
960967
961968   ROM_REGION( 0x4000, "cart_img", ROMREGION_ERASE00 )
r5983r5984
970977   ROM_LOAD( "cgrom60m.62", 0x1e000, 0x2000, CRC(3ce48c33) SHA1(f3b6c63e83a17d80dde63c6e4d86adbc26f84f79) )
971978   ROM_LOAD( "kanjirom.62", 0x20000, 0x8000, CRC(20c8f3eb) SHA1(4c9f30f0a2ebbe70aa8e697f94eac74d8241cadd) )
972979
980   ROM_REGION( 0x1000, "mcu", ROMREGION_ERASEFF )
981   ROM_LOAD( "i8049", 0x0000, 0x1000, NO_DUMP )
982
973983   ROM_REGION( 0x1000, "gfx1", 0 )
974984   ROM_COPY( "maincpu", 0x1c000, 0x00000, 0x1000 )
975985
r5983r5984
985995   ROM_LOAD( "systemrom1.64", 0x0000, 0x10000, CRC(b6fc2db2) SHA1(dd48b1eee60aa34780f153359f5da7f590f8dff4) )
986996   ROM_LOAD( "systemrom2.64", 0x10000, 0x10000, CRC(55a62a1d) SHA1(3a19855d290fd4ac04e6066fe4a80ecd81dc8dd7) )
987997
998   ROM_REGION( 0x1000, "mcu", ROMREGION_ERASEFF )
999   ROM_LOAD( "i8049", 0x0000, 0x1000, NO_DUMP )
1000
9881001   ROM_REGION( 0x4000, "gfx1", 0 )
9891002   ROM_LOAD( "cgrom68.64", 0x0000, 0x4000, CRC(73bc3256) SHA1(5f80d62a95331dc39b2fb448a380fd10083947eb) )
9901003
r5983r5984
10041017   ROM_LOAD( "cgrom66.66",  0x2000, 0x2000, CRC(3ce48c33) SHA1(f3b6c63e83a17d80dde63c6e4d86adbc26f84f79) )
10051018   ROM_LOAD( "kanjirom.66", 0x4000, 0x8000, CRC(20c8f3eb) SHA1(4c9f30f0a2ebbe70aa8e697f94eac74d8241cadd) )
10061019
1020   ROM_REGION( 0x1000, "mcu", ROMREGION_ERASEFF )
1021   ROM_LOAD( "i8049", 0x0000, 0x1000, NO_DUMP )
1022
10071023   ROM_REGION( 0x10000, "cas", ROMREGION_ERASEFF )
10081024
10091025   ROM_REGION( 0x4000, "cart_img", ROMREGION_ERASE00 )
r5983r5984
10231039   ROM_REGION( 0x4000, "gfx1", 0 )
10241040   ROM_LOAD( "cgrom68.68", 0x0000, 0x4000, CRC(73bc3256) SHA1(5f80d62a95331dc39b2fb448a380fd10083947eb) )
10251041
1042   ROM_REGION( 0x1000, "mcu", ROMREGION_ERASEFF )
1043   ROM_LOAD( "i8049", 0x0000, 0x1000, NO_DUMP )
1044
10261045   ROM_REGION( 0x10000, "cas", ROMREGION_ERASEFF )
10271046
10281047   ROM_REGION( 0x4000, "cart_img", ROMREGION_ERASE00 )
src/mess/drivers/x1.c
r5983r5984
66
77    TODO:
88    - Understand how keyboard works and decap/dump the keyboard MCU if possible;
9    - Hook-up .tap image formats (.rom too?);
9    - Hook-up remaining .tap image formats;
10    - Implement .rom format support (needs an image for it);
11    - Implement write support for the .d88 based images, later x1turbo games uses it as a copy
12      protection mechanism;
1013    - Implement tape commands;
1114    - Sort out / redump the BIOS gfx roms;
12    - Implement the interrupts (uses IM 2), basically used by the keyboard.
13    - Implement DMA,CTC and SIO, they are X1Turbo only features.
14    - Improve the z80DMA core, it's so incomplete that nothing that uses it works;
15    - Implement SIO, they are X1Turbo only features.
1516    - clean-ups!
16    - x1turbo: understand how irq generation works for the ym-2151;
1717    - There are various unclear video things, these are:
1818        - Understand why some games still doesn't upload the proper PCG index;
1919        - Implement PCG reading, used by Maison Ikkoku, Mule and Gyajiko for kanji reading.
2020          Is there a way to select which ROM to use?
21        - Implement the scrn regs;
21        - Implement the remaining scrn regs;
2222        - Interlace mode?
2323        - Implement the new features of the x1turbo, namely the 4096 color feature amongst other
2424          things
r5983r5984
12651265   else if(offset >= 0x1900 && offset <= 0x19ff)   { return sub_io_r(space, 0); }
12661266   else if(offset >= 0x1a00 && offset <= 0x1aff)   { return ppi8255_r(devtag_get_device(space->machine, "ppi8255_0"), (offset-0x1a00) & 3); }
12671267   else if(offset >= 0x1b00 && offset <= 0x1bff)   { return ay8910_r(devtag_get_device(space->machine, "ay"), 0); }
1268   else if(offset >= 0x1f80 && offset <= 0x1f8f)   { return z80dma_r(devtag_get_device(space->machine, "dma"), 0); }
1269   else if(offset >= 0x1f90 && offset <= 0x1f91)   { return z80sio_c_r(devtag_get_device(space->machine, "sio"), (offset-0x1f90) & 1); }
1270   else if(offset >= 0x1f92 && offset <= 0x1f93)   { return z80sio_d_r(devtag_get_device(space->machine, "sio"), (offset-0x1f92) & 1); }
1268//   else if(offset >= 0x1f80 && offset <= 0x1f8f)   { return z80dma_r(devtag_get_device(space->machine, "dma"), 0); }
1269//   else if(offset >= 0x1f90 && offset <= 0x1f91)   { return z80sio_c_r(devtag_get_device(space->machine, "sio"), (offset-0x1f90) & 1); }
1270//   else if(offset >= 0x1f92 && offset <= 0x1f93)   { return z80sio_d_r(devtag_get_device(space->machine, "sio"), (offset-0x1f92) & 1); }
12711271   else if(offset >= 0x1fa0 && offset <= 0x1fa3)   { return z80ctc_r(devtag_get_device(space->machine, "ctc"), offset-0x1fa0); }
12721272   else if(offset >= 0x1fa8 && offset <= 0x1fab)   { return z80ctc_r(devtag_get_device(space->machine, "ctc"), offset-0x1fa8); }
12731273//  else if(offset >= 0x1fd0 && offset <= 0x1fdf)   { return x1_scrn_r(space,offset-0x1fd0); }
1274   else if(offset == 0x1fe0)                  { return x1_blackclip_r(space,0); }
1274//   else if(offset == 0x1fe0)                  { return x1_blackclip_r(space,0); }
12751275   else if(offset >= 0x2000 && offset <= 0x2fff)   { return colorram[offset-0x2000]; }
12761276   else if(offset >= 0x3000 && offset <= 0x3fff)   { return videoram[offset-0x3000]; }
12771277   else if(offset >= 0x4000 && offset <= 0xffff)   { return gfx_bitmap_ram[offset-0x4000+(scrn_reg.gfx_bank*0xc000)]; }
r5983r5984
13021302   else if(offset >= 0x1c00 && offset <= 0x1cff)   { ay8910_address_w(devtag_get_device(space->machine, "ay"), 0,data); }
13031303   else if(offset >= 0x1d00 && offset <= 0x1dff)   { rom_bank_1_w(space,0,data); }
13041304   else if(offset >= 0x1e00 && offset <= 0x1eff)   { rom_bank_0_w(space,0,data); }
1305   else if(offset >= 0x1f80 && offset <= 0x1f8f)   { z80dma_w(devtag_get_device(space->machine, "dma"), 0,data); }
1306   else if(offset >= 0x1f90 && offset <= 0x1f91)   { z80sio_c_w(devtag_get_device(space->machine, "sio"), (offset-0x1f90) & 1,data); }
1307   else if(offset >= 0x1f92 && offset <= 0x1f93)   { z80sio_d_w(devtag_get_device(space->machine, "sio"), (offset-0x1f92) & 1,data); }
1305//   else if(offset >= 0x1f80 && offset <= 0x1f8f)   { z80dma_w(devtag_get_device(space->machine, "dma"), 0,data); }
1306//   else if(offset >= 0x1f90 && offset <= 0x1f91)   { z80sio_c_w(devtag_get_device(space->machine, "sio"), (offset-0x1f90) & 1,data); }
1307//   else if(offset >= 0x1f92 && offset <= 0x1f93)   { z80sio_d_w(devtag_get_device(space->machine, "sio"), (offset-0x1f92) & 1,data); }
13081308   else if(offset >= 0x1fa0 && offset <= 0x1fa3)   { z80ctc_w(devtag_get_device(space->machine, "ctc"), offset-0x1fa0,data); }
13091309   else if(offset >= 0x1fa8 && offset <= 0x1fab)   { z80ctc_w(devtag_get_device(space->machine, "ctc"), offset-0x1fa8,data); }
13101310//  else if(offset == 0x1fb0)                       { x1turbo_pal_w(space,0,data); }
r5983r5984
13121312//  else if(offset == 0x1fc0)                       { x1turbo_txdisp_w(space,0,data); }
13131313//  else if(offset == 0x1fc5)                       { x1turbo_gfxpal_w(space,0,data); }
13141314   else if(offset >= 0x1fd0 && offset <= 0x1fdf)   { x1_scrn_w(space,0,data); }
1315   else if(offset == 0x1fe0)                  { x1_blackclip_w(space,0,data); }
1315//   else if(offset == 0x1fe0)                  { x1_blackclip_w(space,0,data); }
13161316   else if(offset >= 0x2000 && offset <= 0x2fff)   { colorram[offset-0x2000] = data; }
13171317   else if(offset >= 0x3000 && offset <= 0x3fff)   { videoram[offset-0x3000] = pcg_write_addr = data; }
13181318   else if(offset >= 0x4000 && offset <= 0xffff)   { gfx_bitmap_ram[offset-0x4000+(scrn_reg.gfx_bank*0xc000)] = data; }
r5983r5984
19161916{
19171917   { "x1kb" },
19181918   { "ctc" },
1919   { NULL }
1920};
1921
1922static const z80_daisy_chain x1turbo_daisy[] =
1923{
1924   { "x1kb" },
1925   { "ctc" },
19191926//  { "dma" },
19201927//  { "sio" },
19211928   { NULL }
r5983r5984
21032110   MDRV_CPU_CONFIG(x1_daisy)
21042111
21052112   MDRV_Z80CTC_ADD( "ctc", XTAL_4MHz , ctc_intf )
2106   MDRV_Z80SIO_ADD( "sio", XTAL_4MHz , sio_intf )
2107   MDRV_Z80DMA_ADD( "dma", XTAL_4MHz , x1_dma )
21082113
21092114   MDRV_DEVICE_ADD("x1kb", DEVICE_GET_INFO_NAME(x1_keyboard_getinfo), 0)
21102115
r5983r5984
21502155
21512156   MDRV_CPU_MODIFY("maincpu")
21522157   MDRV_CPU_IO_MAP(x1turbo_io)
2158   MDRV_CPU_CONFIG(x1turbo_daisy)
21532159
2160   MDRV_Z80SIO_ADD( "sio", XTAL_4MHz , sio_intf )
2161   MDRV_Z80DMA_ADD( "dma", XTAL_4MHz , x1_dma )
2162
21542163   MDRV_SOUND_ADD("ym", YM2151, XTAL_4MHz) //unknown clock / divider
21552164//  MDRV_SOUND_CONFIG(ay8910_config)
21562165   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
r5983r5984
22612270
22622271
22632272/*    YEAR  NAME       PARENT  COMPAT   MACHINE  INPUT  INIT  CONFIG COMPANY   FULLNAME      FLAGS */
2264COMP( 1982, x1,        0,      0,       x1,      x1,    0,    0,    "Sharp",  "X1 (CZ-800C)",         GAME_NOT_WORKING)
2265COMP( 1984, x1ck,      x1,     0,       x1,      x1,    0,    0,    "Sharp",  "X1Ck (CZ-804C)",       GAME_NOT_WORKING)
2273COMP( 1982, x1,        0,      0,       x1,      x1,    0,    0,    "Sharp",  "X1 (CZ-800C)",         0)
2274COMP( 1984, x1ck,      x1,     0,       x1,      x1,    0,    0,    "Sharp",  "X1Ck (CZ-804C)",       0)
22662275COMP( 1984, x1turbo,   x1,     0,       x1turbo, x1,    0,    0,    "Sharp",  "X1 Turbo (CZ-850C)",   GAME_NOT_WORKING)
22672276COMP( 1986, x1turboz,  x1,     0,       x1turbo, x1,    0,    0,    "Sharp",  "X1 Turbo Z (CZ-880C)", GAME_NOT_WORKING)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team