Previous 15994 Revisions Next

r3134 Monday 1st September, 2008 at 13:36:10 UTC by Roberto Zandonà
fixed tape's motor in c16
[docs]messnew.txt
[src/mess/machine]c16.c

src/mess/machine/c16.c
r3133r3134
9191   return result;
9292}
9393
94/**
94/*
9595  ddr bit 1 port line is output
9696  port bit 1 port line is high
9797
r3133r3134
113113  p5 not connected (or not available on MOS7501?)
114114  p6 serial clock in
115115  p7 serial data in, serial bus 5
116 */
116*/
117
117118void c16_m7501_port_write(UINT8 data)
118119{
119120   int dat, atn, clk;
r3133r3134
122123   cbm_serial_atn_write (atn = !(data & 4));
123124   cbm_serial_clock_write (clk = !(data & 2));
124125   cbm_serial_data_write (dat = !(data & 1));
125//   vc20_tape_write (!(data & 2));      // CASSETTE_RECORD not implemented yet
126126
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
131128}
132129
133130UINT8 c16_m7501_port_read(void)
r3133r3134
141138   if ((c16_port7501 & 0x02) || !cbm_serial_clock_read())
142139      data &= ~0x40;
143140
144/*   data &= ~0x20; //port bit not in pinout */
141//   data &= ~0x20; // port bit not in pinout
145142
146143   if (cassette_input(image_from_devtype_and_index(IO_CASSETTE, 0)) > +0.0)
147144      data |=  0x10;
148145   else
149146      data &= ~0x10;
150147
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
151150   return data;
152151}
153152
docs/messnew.txt
r3133r3134
10.127.1
10.127.1
22
33New System Drivers Supported (in no particular order):
44------------------------------------------------------
r3133r3134
99System Driver Changes:
1010----------------------
1111
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']
1414
15- [C128] added preliminary support for tape emulation using MESS core
15- [C128] added partial support for tape emulation using MESS core
1616  functions (only loading and only .wav) [Fabio Priuli]
1717
1818- [C64] added partial support for tape emulation using MESS core
r3133r3134
2828
2929- [TMC2000] Fixed quickloading. [Curt Coder]
3030
31- [VC20] added preliminary support for tape emulation using MESS core
31- [VC20] added partial support for tape emulation using MESS core
3232  functions (only loading and only .wav) [Fabio Priuli]
3333
3434- [VIP] Fixed memory banking, added discrete sound, added tape support,

Previous 15994 Revisions Next


© 1998-2018 The MESS Team