Previous 15994 Revisions Next

r1455 Saturday 29th December, 2007 at 22:41:04 UTC by Barry Rodewald
[TZX] Fixed TZX block type 0x13.
[docs]messnew.txt
[src/mess/formats]tzx_cas.c

src/mess/formats/tzx_cas.c
r1454r1455
212212   int data_index;
213213   int size = 0;
214214
215   logerror( "tzx_cas_block_size: pliot_length = %d, pilot_samples = %d, sync1_samples = %d, sync2_samples = %d, bit0_samples = %d, bit1_samples = %d\n", pilot_length, pilot_samples, sync1_samples, sync2_samples, bit0_samples, bit1_samples );
215   logerror( "tzx_cas_block_size: pilot_length = %d, pilot_samples = %d, sync1_samples = %d, sync2_samples = %d, bit0_samples = %d, bit1_samples = %d\n", pilot_length, pilot_samples, sync1_samples, sync2_samples, bit0_samples, bit1_samples );
216216
217217   /* PILOT */
218218   for( ; pilot_length > 0; pilot_length-- ) {
r1454r1455
257257      tzx_output_wave( buffer, rest_pause_samples );
258258      size += rest_pause_samples;
259259   }
260   else  /* default value for pause is 1000ms */
261   {
262      int start_pause_samples = millisec_to_samplecount( 1 );
263      int rest_pause_samples = millisec_to_samplecount( 1000 - 1 );
264
265      tzx_output_wave( buffer, start_pause_samples );
266      size += start_pause_samples;
267      wave_data = WAVE_LOW;
268      tzx_output_wave( buffer, rest_pause_samples );
269      size += rest_pause_samples;
270   }
271        return size;
260    return size;
272261}
273262
274263/*
r1454r1455
318307         break;
319308      case 0x13:   /* Sequence of Pulses of Different Lengths */
320309         for( data_size = 0; data_size < cur_block[1]; data_size++ ) {
321            pilot = cur_block[1 + 2*data_size] + ( cur_block[2 + 2*data_size] << 8 );
310            pilot = cur_block[2 + 2*data_size] + ( cur_block[3 + 2*data_size] << 8 );
322311            size += tzx_cas_handle_block( buffer, cur_block, 0, 0, pilot, 1, 0, 0, 0, 0, 0 );
323312         }
324313         current_block++;
docs/messnew.txt
r1454r1455
4545
4646- [TZX] Added Amstrad CPC .cdt support, and fixed pause length.  [Barry Rodewald]
4747
48- [TZX] Fixed TZX block type 0x13.  [Barry Rodewald]
49
4850- [X68000] Improved video timing.  [Barry Rodewald]
4951
5052

Previous 15994 Revisions Next


© 1998-2018 The MESS Team