| Previous | 15994 Revisions | Next |
| r3247 Friday 12th September, 2008 at 18:15:22 UTC by Fabio Priuli |
|---|
| [SX64] Enabled VC1541 CPU, floppy emulation is non-existent but it doesn't crash anymore |
| [src/mess/drivers] | c64.c |
| [src/mess/machine] | c16.c c64.c |
| r3246 | r3247 | |
|---|---|---|
| 68 | 68 | static UINT8 *c16_memory_28000; |
| 69 | 69 | static UINT8 *c16_memory_2c000; |
| 70 | 70 | |
| 71 | int has_c1551 = 0, has_vc1541 = 0, has_iec8 = 0, has_iec9 = 0; // Notice that iec8 & iec9 have never been implemented | |
| 71 | static int has_c1551 = 0, has_vc1541 = 0, has_iec8 = 0, has_iec9 = 0; // Notice that iec8 & iec9 have never been implemented | |
| 72 | 72 | |
| 73 | 73 | static UINT8 read_cfg1(running_machine *machine) |
| 74 | 74 | { |
| r3246 | r3247 | |
|---|---|---|
| 85 | 85 | int c64_tape_on = 1; |
| 86 | 86 | static int c64_cia1_on = 1; |
| 87 | 87 | static int c64_io_enabled = 0; |
| 88 | static int is_sx64 = 0; // temporary workaround until we implement full vc1541 emulation for every c64 set | |
| 88 | 89 | |
| 89 | ||
| 90 | 90 | static UINT8 serial_clock, serial_data, serial_atn; |
| 91 | 91 | static UINT8 vicirq = 0; |
| 92 | 92 | |
| r3246 | r3247 | |
| 1047 | 1047 | DRIVER_INIT( sx64 ) |
| 1048 | 1048 | { |
| 1049 | 1049 | VC1541_CONFIG vc1541 = { 1, 8 }; |
| 1050 | is_sx64 = 1; | |
| 1050 | 1051 | c64_tape_on = 0; |
| 1051 | 1052 | c64_pal = 1; |
| 1052 | 1053 | c64_common_driver_init (machine); |
| r3246 | r3247 | |
| 1055 | 1056 | |
| 1056 | 1057 | void c64_common_init_machine (running_machine *machine) |
| 1057 | 1058 | { |
| 1058 | #ifdef VC1541 | |
| 1059 | vc1541_reset (); | |
| 1060 | #endif | |
| 1059 | if (is_sx64) | |
| 1060 | vc1541_reset (); | |
| 1061 | 1061 | |
| 1062 | 1062 | if (c64_cia1_on) |
| 1063 | 1063 | { |
| r3246 | r3247 | |
|---|---|---|
| 581 | 581 | |
| 582 | 582 | static MACHINE_DRIVER_START( sx64 ) |
| 583 | 583 | MDRV_IMPORT_FROM( c64pal ) |
| 584 | ||
| 584 | ||
| 585 | 585 | MDRV_SOUND_REMOVE( "dac" ) |
| 586 | 586 | MDRV_CASSETTE_REMOVE( "cassette" ) |
| 587 | 587 | #ifdef CPU_SYNC |
| Previous | 15994 Revisions | Next |