src/mess/machine/c2040.c
| r7595 | r7596 | |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | /*------------------------------------------------- |
| 292 | on_disk_0_change - disk 0 change handler |
| 293 | -------------------------------------------------*/ |
| 294 | |
| 295 | static void on_disk_0_change(running_device *image) |
| 296 | { |
| 297 | c2040_t *c2040 = get_safe_token(image->owner); |
| 298 | |
| 299 | read_current_track(c2040, 0); |
| 300 | } |
| 301 | |
| 302 | /*------------------------------------------------- |
| 303 | on_disk_1_change - disk 1 change handler |
| 304 | -------------------------------------------------*/ |
| 305 | |
| 306 | static void on_disk_1_change(running_device *image) |
| 307 | { |
| 308 | c2040_t *c2040 = get_safe_token(image->owner); |
| 309 | |
| 310 | read_current_track(c2040, 1); |
| 311 | } |
| 312 | |
| 313 | /*------------------------------------------------- |
| 292 | 314 | spindle_motor - spindle motor control |
| 293 | 315 | -------------------------------------------------*/ |
| 294 | 316 | |
| r7595 | r7596 | |
| 1495 | 1517 | c2040->unit[0].image = device->subdevice(FLOPPY_0); |
| 1496 | 1518 | c2040->unit[1].image = device->subdevice(FLOPPY_1); |
| 1497 | 1519 | |
| 1520 | /* install image callbacks */ |
| 1521 | floppy_install_unload_proc(c2040->unit[0].image, on_disk_0_change); |
| 1522 | floppy_install_load_proc(c2040->unit[0].image, on_disk_0_change); |
| 1523 | floppy_install_unload_proc(c2040->unit[1].image, on_disk_1_change); |
| 1524 | floppy_install_load_proc(c2040->unit[1].image, on_disk_1_change); |
| 1525 | |
| 1498 | 1526 | /* find GCR ROM */ |
| 1499 | 1527 | const region_info *region = device->subregion(C4040_REGION); |
| 1500 | 1528 | |
src/mess/machine/c1541.c
| r7595 | r7596 | |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | 304 | /*------------------------------------------------- |
| 305 | on_disk_change - disk change handler |
| 306 | -------------------------------------------------*/ |
| 307 | |
| 308 | static void on_disk_change(running_device *image) |
| 309 | { |
| 310 | c1541_t *c1541 = get_safe_token(image->owner); |
| 311 | |
| 312 | read_current_track(c1541); |
| 313 | } |
| 314 | |
| 315 | /*------------------------------------------------- |
| 305 | 316 | spindle_motor - spindle motor control |
| 306 | 317 | -------------------------------------------------*/ |
| 307 | 318 | |
| r7595 | r7596 | |
| 1139 | 1150 | c1541->bus = devtag_get_device(device->machine, config->bus_tag); |
| 1140 | 1151 | c1541->image = device->subdevice(FLOPPY_0); |
| 1141 | 1152 | |
| 1153 | /* install image callbacks */ |
| 1154 | floppy_install_unload_proc(c1541->image, on_disk_change); |
| 1155 | floppy_install_load_proc(c1541->image, on_disk_change); |
| 1156 | |
| 1142 | 1157 | /* allocate track buffer */ |
| 1143 | 1158 | // c1541->track_buffer = auto_alloc_array(device->machine, UINT8, G64_BUFFER_SIZE); |
| 1144 | 1159 | |
src/mess/machine/c1551.c
| r7595 | r7596 | |
| 184 | 184 | c1551->track_len = G64_DATA_START + ((c1551->track_buffer[1] << 8) | c1551->track_buffer[0]); |
| 185 | 185 | } |
| 186 | 186 | |
| 187 | /*------------------------------------------------- |
| 188 | on_disk_change - disk change handler |
| 189 | -------------------------------------------------*/ |
| 190 | |
| 191 | static void on_disk_change(running_device *image) |
| 192 | { |
| 193 | c1551_t *c1551 = get_safe_token(image->owner); |
| 194 | |
| 195 | read_current_track(c1551); |
| 196 | } |
| 197 | |
| 198 | /*------------------------------------------------- |
| 199 | spindle_motor - spindle motor control |
| 200 | -------------------------------------------------*/ |
| 201 | |
| 187 | 202 | static void spindle_motor(c1551_t *c1551, int mtr) |
| 188 | 203 | { |
| 189 | 204 | if (c1551->mtr != mtr) |
| r7595 | r7596 | |
| 201 | 216 | } |
| 202 | 217 | } |
| 203 | 218 | |
| 219 | /*------------------------------------------------- |
| 220 | step_motor - stepper motor control |
| 221 | -------------------------------------------------*/ |
| 222 | |
| 204 | 223 | static void step_motor(c1551_t *c1551, int mtr, int stp) |
| 205 | 224 | { |
| 206 | 225 | if (mtr && (c1551->stp != stp)) |
| r7595 | r7596 | |
| 228 | 247 | } |
| 229 | 248 | } |
| 230 | 249 | |
| 250 | /*------------------------------------------------- |
| 251 | c1551_port_r - M6510T port read |
| 252 | -------------------------------------------------*/ |
| 253 | |
| 231 | 254 | static UINT8 c1551_port_r( running_device *device, UINT8 direction ) |
| 232 | 255 | { |
| 233 | 256 | /* |
| r7595 | r7596 | |
| 693 | 716 | c1551->tpi1 = device->subdevice(M6523_1_TAG); |
| 694 | 717 | c1551->image = device->subdevice(FLOPPY_0); |
| 695 | 718 | |
| 719 | /* install image callbacks */ |
| 720 | floppy_install_unload_proc(c1551->image, on_disk_change); |
| 721 | floppy_install_load_proc(c1551->image, on_disk_change); |
| 722 | |
| 696 | 723 | /* allocate data timer */ |
| 697 | 724 | c1551->bit_timer = timer_alloc(device->machine, bit_tick, (void *)device); |
| 698 | 725 | |
src/mess/machine/c1571.c
| r7595 | r7596 | |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /*------------------------------------------------- |
| 224 | on_disk_change - disk change handler |
| 225 | -------------------------------------------------*/ |
| 226 | |
| 227 | static void on_disk_change(running_device *image) |
| 228 | { |
| 229 | c1571_t *c1571 = get_safe_token(image->owner); |
| 230 | |
| 231 | read_current_track(c1571); |
| 232 | } |
| 233 | |
| 234 | /*------------------------------------------------- |
| 224 | 235 | set_side - set disk side |
| 225 | 236 | -------------------------------------------------*/ |
| 226 | 237 | |
| r7595 | r7596 | |
| 945 | 956 | c1571->serial_bus = devtag_get_device(device->machine, config->serial_bus_tag); |
| 946 | 957 | c1571->image = device->subdevice(FLOPPY_0); |
| 947 | 958 | |
| 959 | /* install image callbacks */ |
| 960 | floppy_install_unload_proc(c1571->image, on_disk_change); |
| 961 | floppy_install_load_proc(c1571->image, on_disk_change); |
| 962 | |
| 948 | 963 | /* allocate data timer */ |
| 949 | 964 | c1571->bit_timer = timer_alloc(device->machine, bit_tick, (void *)device); |
| 950 | 965 | |
docs/messnew.txt
| r7595 | r7596 | |
| 20 | 20 | |
| 21 | 21 | System Driver Changes: |
| 22 | 22 | ---------------------- |
| 23 | | (none) |
| 24 | 23 | |
| 24 | - [MTX] Cleaned up driver and added cassette device. [Curt Coder] |
| 25 | 25 | |
| 26 | - [TANDY2K] Implemented DMA mux register. [Curt Coder] |
| 26 | 27 | |
| 28 | - [VICTOR9K] Connected MC6852 device. [Curt Coder] |
| 29 | |
| 30 | |
| 31 | |
| 27 | 32 | Imgtool Changes: |
| 28 | 33 | ---------------- |
| 29 | 34 | (none) |
| r7595 | r7596 | |
| 32 | 37 | |
| 33 | 38 | Source Changes: |
| 34 | 39 | ---------------- |
| 40 | |
| 35 | 41 | - [AMSTRAD CPC Family] Updated Hashes to GoodCPC V3.1415 [Cowering] |
| 42 | |
| 36 | 43 | - [Thomson MO5] Added Hashes from GoodMO5 V3.1415 [Cowering] |
| 44 | |
| 37 | 45 | - [Sega Pico] Updated Hashes to GoodPico V3.1415 [Cowering] |
| 46 | |
| 38 | 47 | - [MTX512] Updated Hashes to GoodMTX V3.1415 [Cowering] |
| 48 | |
| 39 | 49 | - [Nintendo Virtual Boy] Added Hashes from GoodVBoy V3.1415 [Cowering] |
| 40 | 50 | |
| 51 | - Added preliminary emulation of the MC6852 SSDA. [Curt Coder] |
| 52 | |
| 53 | - Added preliminary emulation of the 64H156 gate array device |
| 54 | (used in C1541 et al). [Curt Coder] |
| 55 | |
| 56 | - Added disk change handlers to the Commodore 1541 and 2040 family |
| 57 | disk drives. "Edge of Disgrace" demo now loads on C64. [Curt Coder] |
| 58 | |
| 59 | - [C2040] Added DOS 1 FDC ROM (parsed from disassembly). [Curt Coder] |
| 60 | |
| 61 | - Refactored the MOS6530 device to use devcb. [Curt Coder] |
| 62 | |
| 63 | |
| 64 | |
| 41 | 65 | 0.137 |
| 42 | 66 | |
| 43 | 67 | New System Drivers Supported: |