| Previous | 15994 Revisions | Next |
| r5750 Wednesday 16th September, 2009 at 20:19:15 UTC by Miodrag Milanović |
|---|
| [APPLE2] Made floppy boot works. Need to clean checks and params for drives |
| [src/mess/devices] | appldriv.c |
| [src/mess/machine] | apple2.c |
| r5749 | r5750 | |
|---|---|---|
| 1110 | 1110 | |
| 1111 | 1111 | static int apple2_fdc_has_525(running_machine *machine) |
| 1112 | 1112 | { |
| 1113 | return device_count_tag_from_machine(machine, "apple525driv") > 0; | |
| 1113 | return 1 > 0;//device_count_tag_from_machine(machine, "apple525driv") > 0; | |
| 1114 | 1114 | } |
| 1115 | 1115 | |
| 1116 | 1116 | static void apple2_fdc_set_lines(const device_config *device, UINT8 lines) |
| r5749 | r5750 | |
|---|---|---|
| 262 | 262 | |
| 263 | 263 | static DEVICE_START( apple525_floppy ) |
| 264 | 264 | { |
| 265 | struct apple525_disk *disk; | |
| 266 | ||
| 265 | 267 | DEVICE_START_CALL(floppy); |
| 266 | flopimg_alloc_custom_data(device,sizeof(struct apple525_disk)); | |
| 268 | flopimg_alloc_custom_data(device,sizeof(struct apple525_disk)); | |
| 269 | ||
| 270 | disk = (struct apple525_disk *) flopimg_get_custom_data(device); | |
| 271 | ||
| 272 | disk->state = 0; | |
| 273 | disk->tween_tracks = 0; | |
| 274 | disk->track_loaded = 0; | |
| 275 | disk->track_dirty = 0; | |
| 276 | disk->position = 0; | |
| 277 | disk->spin_count = 0; | |
| 278 | ||
| 267 | 279 | } |
| 268 | 280 | |
| 269 | 281 |
| Previous | 15994 Revisions | Next |