Previous 15994 Revisions Next

r3897 Friday 19th December, 2008 at 22:38:39 UTC by Wilbert Pol
Removed deprecat.h from machine/vc1541.c
[src/mess/includes]vc1541.h
[src/mess/machine]c128.c c16.c c64.c vc1541.c vc20.c

src/mess/includes/vc1541.h
r3896r3897
4949};
5050
5151
52int drive_config(int type, int id, int mode, int cpunr, int devicenr);
52int drive_config(running_machine *machine, int type, int id, int mode, int cpunr, int devicenr);
5353void drive_reset(void);
5454
5555void vc1541_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info);
src/mess/machine/vc1541.c
r3896r3897
137137
138138
139139#include "driver.h"
140#include "deprecat.h"
141140#include "image.h"
142141#include "cpu/m6502/m6502.h"
143142#include "machine/6522via.h"
r3896r3897
13581357
13591358**************************************/
13601359
1361int drive_config (int type, int id, int mode, int cpunr, int devicenr)
1360int drive_config (running_machine *machine, int type, int id, int mode, int cpunr, int devicenr)
13621361{
13631362   drive->type = type;
13641363   drive->cpunumber = cpunr;
13651364   drive->drive.serial.deviceid = devicenr;
1366   drive->timer = timer_alloc(Machine, drive_timer, NULL);
1365   drive->timer = timer_alloc(machine, drive_timer, NULL);
13671366
13681367   if (type == type_1551)
13691368   {
r3896r3897
13721371
13731372      /* time should be small enough to allow quitting of the irq
13741373      line before the next interrupt is triggered */
1375      drive->drive.c1551.irq_timer = timer_alloc(Machine, c1551_irq_timer, NULL);
1374      drive->drive.c1551.irq_timer = timer_alloc(machine, c1551_irq_timer, NULL);
13761375      timer_adjust_periodic(drive->drive.c1551.irq_timer, attotime_zero, 0, ATTOTIME_IN_HZ(60));
13771376   }
13781377
src/mess/machine/c128.c
r3896r3897
941941DRIVER_INIT( c128d )
942942{
943943   DRIVER_INIT_CALL( c128 );
944//   drive_config (type_1541, 0, 0, 1, 8);
944//   drive_config (machine, type_1541, 0, 0, 1, 8);
945945}
946946
947947DRIVER_INIT( c128dpal )
948948{
949949   DRIVER_INIT_CALL( c128d );
950//   drive_config (type_1541, 0, 0, 1, 8);
950//   drive_config (machine, type_1541, 0, 0, 1, 8);
951951}
952952
953953
src/mess/machine/c16.c
r3896r3897
481481   memset(mess_ram + (0xfd40 % mess_ram_size), 0xff, 0x20);
482482   
483483   if (has_c1551)      /* C1551 */
484      drive_config (type_1551, 0, 0, 1, 8);
484      drive_config (machine, type_1551, 0, 0, 1, 8);
485485
486486   if (has_vc1541)      /* VC1541 */
487      drive_config (type_1541, 0, 0, 1, 8);
487      drive_config (machine, type_1541, 0, 0, 1, 8);
488488}
489489
490490static void c16_driver_init(running_machine *machine)
src/mess/machine/vc20.c
r3896r3897
569569   datasette_timer = timer_alloc(machine, vic20_tape_timer, NULL);
570570
571571   if (has_vc1541)
572      drive_config (type_1541, 0, 0, 1, 8);
572      drive_config (machine, type_1541, 0, 0, 1, 8);
573573}
574574
575575DRIVER_INIT( vc20 )
src/mess/machine/c64.c
r3896r3897
10771077   c64_tape_on = 0;
10781078   c64_pal = 1;
10791079   c64_common_driver_init (machine);
1080   drive_config (type_1541, 0, 0, 1, 8);
1080   drive_config (machine, type_1541, 0, 0, 1, 8);
10811081}
10821082
10831083void c64_common_init_machine (running_machine *machine)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team