Previous 15994 Revisions Next

r3956 Monday 22nd December, 2008 at 19:28:50 UTC by Wilbert Pol
[IBM5150] Added new rev1 bios dump.
[PC1640] Updated memory maps and changed to use the new EGA implementation.
[src/mess/drivers]pc.c
[src/mess/machine]pc.c

src/mess/machine/pc.c
r3955r3956
13451345
13461346DRIVER_INIT( pc1640 )
13471347{
1348   const address_space *space = cpu_get_address_space( machine->cpu[0], ADDRESS_SPACE_PROGRAM );
13491348   const address_space *io_space = cpu_get_address_space( machine->cpu[0], ADDRESS_SPACE_IO );
13501349
1351   pc_vga_init(machine, &vga_interface, NULL);
1352   memory_install_read16_handler(space, 0xa0000, 0xaffff, 0, 0, SMH_BANK1 );
1353   memory_install_read16_handler(space, 0xb0000, 0xb7fff, 0, 0, SMH_BANK2 );
1354   memory_install_read16_handler(space, 0xb8000, 0xbffff, 0, 0, SMH_BANK3 );
1355
1356   memory_install_write16_handler(space, 0xa0000, 0xaffff, 0, 0, SMH_BANK1 );
1357   memory_install_write16_handler(space, 0xb0000, 0xb7fff, 0, 0, SMH_BANK2 );
1358   memory_install_write16_handler(space, 0xb8000, 0xbffff, 0, 0, SMH_BANK3 );
1359
1360   memory_install_read16_handler(io_space, 0x3b0, 0x3bf, 0, 0, vga_port16le_03b0_r );
1361   memory_install_read16_handler(io_space, 0x3c0, 0x3cf, 0, 0, paradise_ega16le_03c0_r );
1362   memory_install_read16_handler(io_space, 0x3d0, 0x3df, 0, 0, pc1640_16le_port3d0_r );
1363
1364   memory_install_write16_handler(io_space, 0x3b0, 0x3bf, 0, 0, vga_port16le_03b0_w );
1365   memory_install_write16_handler(io_space, 0x3c0, 0x3cf, 0, 0, vga_port16le_03c0_w );
1366   memory_install_write16_handler(io_space, 0x3d0, 0x3df, 0, 0, vga_port16le_03d0_w );
1367
13681350   memory_install_read16_handler(io_space, 0x278, 0x27b, 0, 0, pc1640_16le_port278_r );
13691351   memory_install_read16_handler(io_space, 0x4278, 0x427b, 0, 0, pc1640_16le_port4278_r );
13701352
src/mess/drivers/pc.c
r3955r3956
5959- Optional up to 2 external 360KB double-sided 5 1/4" floppy drive
6060
6161
62Amstrad PC1640
63==============
64
65More information can be found at http://www.seasip.info/AmstradXT/1640tech/index.html
66
67
6268Tandy 1000
6369==========
6470
r3955r3956
112118#include "video/pc_mda.h"
113119#include "video/pc_aga.h"
114120#include "video/pc_t1t.h"
121#include "video/pc_ega.h"
115122#include "video/pc_video.h"
116123
117124#include "includes/pc_ide.h"
r3955r3956
411418   AM_RANGE(0xa0000, 0xbffff) AM_NOP
412419   AM_RANGE(0xc0000, 0xc7fff) AM_ROM
413420   AM_RANGE(0xc8000, 0xcffff) AM_ROM
414   AM_RANGE(0xd0000, 0xfbfff) AM_NOP
415   AM_RANGE(0xfc000, 0xfffff) AM_ROM
421   AM_RANGE(0xd0000, 0xeffff) AM_NOP
422   AM_RANGE(0xf0000, 0xfffff) AM_ROM
416423ADDRESS_MAP_END
417424
418425
r3955r3956
17801787   MDRV_INS8250_ADD( "ins8250_3", ibm5150_com_interface[3] )         /* TODO: Verify model */
17811788
17821789   /* video hardware */
1783   MDRV_IMPORT_FROM(pcvideo_pc1640)
1784   MDRV_SCREEN_MODIFY("main")
1785   MDRV_SCREEN_REFRESH_RATE(60)
1786   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
1790   MDRV_IMPORT_FROM( pcvideo_ega )
17871791
17881792   /* sound hardware */
17891793   MDRV_SPEAKER_STANDARD_MONO("mono")
r3955r3956
20272031   ROMX_LOAD("5700027.u30", 0xf8000, 0x2000, CRC(bfff99b8) SHA1(ca2f126ba69c1613b7b5a4137d8d8cf1db36a8e6), ROM_BIOS(2))      /* ROM Basic 1.0 F8000-F9FFF */
20282032   ROMX_LOAD("5700035.u31", 0xfa000, 0x2000, CRC(9fe4ec11) SHA1(89af8138185938c3da3386f97d3b0549a51de5ef), ROM_BIOS(2))      /* ROM Basic 1.0 FA000-FBFFF */
20292033   ROMX_LOAD("5700043.u32", 0xfc000, 0x2000, CRC(ea2794e6) SHA1(22fe58bc853ffd393d5e2f98defda7456924b04f), ROM_BIOS(2))      /* ROM Basic 1.0 FC000-FDFFF */
2030   ROMX_LOAD("5700051.u33", 0xfe000, 0x2000, NO_DUMP, ROM_BIOS(2))
2034   ROMX_LOAD("5700051.u33", 0xfe000, 0x2000, CRC(12d33fb8) SHA1(f046058faa016ad13aed5a082a45b21dea43d346), ROM_BIOS(2))      /* TODO: ROM is pending verification */
20312035
20322036   /* IBM PC 5150 (rev 2: 10/19/81) 2-screw case, 16-64k MB w/MDA Card, ROM Basic 1.0 */
20332037   ROM_SYSTEM_BIOS( 2, "rev2", "IBM PC 5150 5700671 10/19/81" )
r3955r3956
24562460ROM_START( pc1640 )
24572461//    ROM_REGION(0x100000,"main", 0)
24582462   ROM_REGION16_LE(0x100000,"main", 0)
2459   ROM_LOAD("40100", 0xc0000, 0x8000, CRC(d2d1f1ae) SHA1(98302006ee38a17c09bd75504cc18c0649174e33)) // this bios seams to be made for the amstrad pc
2463   ROM_LOAD("40100", 0xc0000, 0x8000, CRC(d2d1f1ae) SHA1(98302006ee38a17c09bd75504cc18c0649174e33)) /* Internal Graphics Adapter ROM */
24602464   ROM_LOAD("wdbios.rom",  0xc8000, 0x02000, CRC(8e9e2bd4) SHA1(601d7ceab282394ebab50763c267e915a6a2166a)) /* WDC IDE Superbios 2.0 (06/28/89) Expansion Rom C8000-C9FFF  */
2465
24612466   ROM_LOAD16_BYTE("40043.v3", 0xfc001, 0x2000, CRC(e40a1513) SHA1(447eff2057e682e51b1c7593cb6fad0e53879fa8)) // v3
2467   ROM_RELOAD(0xf8001,0x2000)
2468   ROM_RELOAD(0xf4001,0x2000)
2469   ROM_RELOAD(0xf0001,0x2000)
24622470   ROM_LOAD16_BYTE("40044.v3", 0xfc000, 0x2000, CRC(f1c074f3) SHA1(a055ea7e933d137623c22fe24004e870653c7952))
2471   ROM_RELOAD(0xf8000,0x2000)
2472   ROM_RELOAD(0xf4000,0x2000)
2473   ROM_RELOAD(0xf0000,0x2000)
2474
24632475   ROM_REGION(0x08100,"gfx1", 0)
24642476   ROM_LOAD("40045.bin",     0x00000, 0x02000, CRC(dd5e030f) SHA1(7d858bbb2e8d6143aa67ab712edf5f753c2788a7))
2477
2478   ROM_REGION(0x50000, "gfx2", ROMREGION_ERASE00)
24652479ROM_END
24662480
24672481

Previous 15994 Revisions Next


© 1998-2018 The MESS Team