Previous 15994 Revisions Next

r7444 Monday 22nd February, 2010 at 10:33:26 UTC by Miodrag Milanović
[AMSTRAD] Fixed GX4000 booting
[src/mess/drivers]amstrad.c
[src/mess/includes]amstrad.h
[src/mess/machine]amstrad.c

src/mess/includes/amstrad.h
r7443r7444
3232
3333MACHINE_START( amstrad );
3434MACHINE_RESET( amstrad );
35MACHINE_START( kccomp );
3536MACHINE_RESET( kccomp );
3637MACHINE_START( plus );
3738MACHINE_RESET( plus );
39MACHINE_START( gx4000 );
3840MACHINE_RESET( gx4000 );
41MACHINE_START( aleste );
3942MACHINE_RESET( aleste );
4043
4144SNAPSHOT_LOAD( amstrad );
src/mess/machine/amstrad.c
r7443r7444
32923292{
32933293
32943294   multiface_init(machine);
3295   amstrad_system_type = SYSTEM_CPC;
32953296}
32963297MACHINE_RESET( amstrad )
32973298{
32983299   int i;
32993300   UINT8 *rom = memory_region(machine, "maincpu");
33003301
3301   amstrad_system_type = SYSTEM_CPC;
3302
33033302   for (i=0; i<256; i++)
33043303   {
33053304      Amstrad_ROM_Table[i] = &rom[0x014000];
r7443r7444
33173316MACHINE_START( plus )
33183317{
33193318   amstrad_plus_asic_ram = memory_region(machine, "user1");  // 16kB RAM for ASIC, memory-mapped registers.
3319   amstrad_system_type = SYSTEM_PLUS;
33203320}
33213321
33223322
r7443r7444
33253325   int i;
33263326   UINT8 *rom = memory_region(machine, "maincpu");
33273327
3328   amstrad_system_type = SYSTEM_PLUS;
3329
33303328   for (i=0; i<128; i++)  // fill ROM table
33313329   {
33323330      Amstrad_ROM_Table[i] = &rom[0x4000];  // BASIC in system cart
r7443r7444
33593357   //  multiface_init();
33603358}
33613359
3360MACHINE_START( gx4000 )
3361{
3362   amstrad_plus_asic_ram = memory_region(machine, "user1");  // 16kB RAM for ASIC, memory-mapped registers.
3363   amstrad_system_type = SYSTEM_GX4000;
3364}
33623365
33633366MACHINE_RESET( gx4000 )
33643367{
33653368   int i;
33663369   UINT8 *rom = memory_region(machine, "maincpu");
33673370
3368   amstrad_system_type = SYSTEM_GX4000;
3369
33703371   for (i=0; i<128; i++)  // fill ROM table
33713372   {
33723373      Amstrad_ROM_Table[i] = &rom[0x4000];
r7443r7444
33983399   //  multiface_init();
33993400}
34003401
3402MACHINE_START( kccomp )
3403{
3404   multiface_init(machine);
3405   amstrad_system_type = SYSTEM_CPC;
3406}
34013407
3408
34023409MACHINE_RESET( kccomp )
34033410{
34043411   int i;
34053412   UINT8 *rom = memory_region(machine, "maincpu");
34063413
3407   amstrad_system_type = SYSTEM_CPC;
3408
34093414   for (i=0; i<256; i++)
34103415   {
34113416      Amstrad_ROM_Table[i] = &rom[0x014000];
r7443r7444
34243429}
34253430
34263431
3432MACHINE_START( aleste )
3433{
3434   multiface_init(machine);
3435   amstrad_system_type = SYSTEM_ALESTE;
3436}
3437
34273438MACHINE_RESET( aleste )
34283439{
34293440   int i;
34303441   UINT8 *rom = memory_region(machine, "maincpu");
34313442
3432   amstrad_system_type = SYSTEM_ALESTE;
3433
34343443   for (i=0; i<256; i++)
34353444   {
34363445      Amstrad_ROM_Table[i] = &rom[0x014000];
src/mess/drivers/amstrad.c
r7443r7444
924924
925925static MACHINE_DRIVER_START( kccomp )
926926   MDRV_IMPORT_FROM(amstrad)
927   MDRV_MACHINE_START(kccomp)
927928   MDRV_MACHINE_RESET(kccomp)
928929
929930   MDRV_PALETTE_INIT(kccomp)
r7443r7444
994995
995996   MDRV_QUANTUM_TIME(HZ(60))
996997
997   MDRV_MACHINE_START( plus )
998   MDRV_MACHINE_START( gx4000 )
998999   MDRV_MACHINE_RESET( gx4000 )
9991000
10001001   MDRV_I8255A_ADD( "ppi8255", amstrad_ppi8255_interface )
r7443r7444
10301031
10311032static MACHINE_DRIVER_START( aleste )
10321033   MDRV_IMPORT_FROM(amstrad)
1034   MDRV_MACHINE_START(aleste)
10331035   MDRV_MACHINE_RESET(aleste)
10341036
10351037   MDRV_SOUND_REPLACE("ay", AY8910, XTAL_16MHz / 16)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team