src/mess/machine/c16.c
| r3133 | r3134 | |
| 91 | 91 | return result; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | | /** |
| 94 | /* |
| 95 | 95 | ddr bit 1 port line is output |
| 96 | 96 | port bit 1 port line is high |
| 97 | 97 | |
| r3133 | r3134 | |
| 113 | 113 | p5 not connected (or not available on MOS7501?) |
| 114 | 114 | p6 serial clock in |
| 115 | 115 | p7 serial data in, serial bus 5 |
| 116 | | */ |
| 116 | */ |
| 117 | |
| 117 | 118 | void c16_m7501_port_write(UINT8 data) |
| 118 | 119 | { |
| 119 | 120 | int dat, atn, clk; |
| r3133 | r3134 | |
| 122 | 123 | cbm_serial_atn_write (atn = !(data & 4)); |
| 123 | 124 | cbm_serial_clock_write (clk = !(data & 2)); |
| 124 | 125 | cbm_serial_data_write (dat = !(data & 1)); |
| 125 | | // vc20_tape_write (!(data & 2)); // CASSETTE_RECORD not implemented yet |
| 126 | 126 | |
| 127 | | // Fix Me! |
| 128 | | // HACK! we need to set the motor always ON, because !(data & 0x08) seems always 0 |
| 129 | | // cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), !(data & 0x08) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR); |
| 130 | | cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR); |
| 127 | // vc20_tape_write (!(data & 2)); // CASSETTE_RECORD not implemented yet |
| 131 | 128 | } |
| 132 | 129 | |
| 133 | 130 | UINT8 c16_m7501_port_read(void) |
| r3133 | r3134 | |
| 141 | 138 | if ((c16_port7501 & 0x02) || !cbm_serial_clock_read()) |
| 142 | 139 | data &= ~0x40; |
| 143 | 140 | |
| 144 | | /* data &= ~0x20; //port bit not in pinout */ |
| 141 | // data &= ~0x20; // port bit not in pinout |
| 145 | 142 | |
| 146 | 143 | if (cassette_input(image_from_devtype_and_index(IO_CASSETTE, 0)) > +0.0) |
| 147 | 144 | data |= 0x10; |
| 148 | 145 | else |
| 149 | 146 | data &= ~0x10; |
| 150 | 147 | |
| 148 | cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), (c16_port7501 & 0x08) ? CASSETTE_MOTOR_DISABLED : CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR); |
| 149 | |
| 151 | 150 | return data; |
| 152 | 151 | } |
| 153 | 152 | |
docs/messnew.txt
| r3133 | r3134 | |
| 1 | | 0.127.1 |
| 1 | 0.127.1 |
| 2 | 2 | |
| 3 | 3 | New System Drivers Supported (in no particular order): |
| 4 | 4 | ------------------------------------------------------ |
| r3133 | r3134 | |
| 9 | 9 | System Driver Changes: |
| 10 | 10 | ---------------------- |
| 11 | 11 | |
| 12 | | - [C16] added preliminary support for tape emulation using MESS core |
| 13 | | functions (only loading and only .wav) [Fabio Priuli] |
| 12 | - [C16] added partial support for tape emulation using MESS core |
| 13 | functions (only loading and only .wav) [Fabio Priuli, Roberto Zandona'] |
| 14 | 14 | |
| 15 | | - [C128] added preliminary support for tape emulation using MESS core |
| 15 | - [C128] added partial support for tape emulation using MESS core |
| 16 | 16 | functions (only loading and only .wav) [Fabio Priuli] |
| 17 | 17 | |
| 18 | 18 | - [C64] added partial support for tape emulation using MESS core |
| r3133 | r3134 | |
| 28 | 28 | |
| 29 | 29 | - [TMC2000] Fixed quickloading. [Curt Coder] |
| 30 | 30 | |
| 31 | | - [VC20] added preliminary support for tape emulation using MESS core |
| 31 | - [VC20] added partial support for tape emulation using MESS core |
| 32 | 32 | functions (only loading and only .wav) [Fabio Priuli] |
| 33 | 33 | |
| 34 | 34 | - [VIP] Fixed memory banking, added discrete sound, added tape support, |