Author Topic: Ripped Dinamic tape loader  (Read 4441 times)

0 Members and 1 Guest are viewing this topic.

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: Ripped Dinamic tape loader
« Reply #25 on: 00:23, 08 November 13 »
Interestingly, I'm pretty sure this approach hasn't been used before on the CPC as it shows up serious bugs in both WinCPC and WinAPE as to how they handle 0x15 (pure data) chunks in CDT files.  >:(

Can you give me more information, and perhaps a test CDT so this can be fixed?

Offline ralferoo

  • Supporter
  • 6128 Plus
  • *
  • Posts: 969
  • Country: gb
  • Liked: 583
  • Likes Given: 222
Re: Ripped Dinamic tape loader
« Reply #26 on: 15:07, 08 November 13 »
Sure, I'll make a test CDT tomorrow. The WAV works fine in WinApe though, so I just used that... :)

Offline ralferoo

  • Supporter
  • 6128 Plus
  • *
  • Posts: 969
  • Country: gb
  • Liked: 583
  • Likes Given: 222
Re: Ripped Dinamic tape loader
« Reply #27 on: 11:42, 09 November 13 »
Here's a zip that shows the bugs in both emulators (with source). Load up showbug.cdt in an emulator. This cdt is just 2 other CDT concatenated, showbug-loader.cdt (showbug.asm) and bug.cdt (bug.py). There's also bug-44100.cdt which is the same thing exported at 44100Hz instead of 6451Hz (155us per pulse).

Expected behaviour is green/orange bars at different frequencies, there's a few seconds at each before it moves on to the next multiple.

WinCPC shows orange/pink for the frequency block as it returns data in bit 5 instead of bit 7 of port #F5xx.

WinAPE shows a high frequency pattern throughout the whole block. It seems to just be toggling the bit every 155us rather than using the input data. For the 44100 version, the bit seems to toggle faster than I can read it, but I assume it's around every 22us... :)

There's a WAV file for both CDTs that demonstrates the expected behaviour in WinAPE.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 16.017
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3452
  • Likes Given: 6205
Re: Ripped Dinamic tape loader
« Reply #28 on: 21:17, 09 November 13 »
If real tapes can't keep up with that kind of speed then it's great as an exercise, but not of much use... What's the meaning in loading a CDT in an emulator? I can think of two cases:


-there's no disk dump
-for the nice sounds fx (I do that).


So using a turbo^2 loader would be meaningless in both cases...?

Offline ralferoo

  • Supporter
  • 6128 Plus
  • *
  • Posts: 969
  • Country: gb
  • Liked: 583
  • Likes Given: 222
Re: Ripped Dinamic tape loader
« Reply #29 on: 21:41, 09 November 13 »
If real tapes can't keep up with that kind of speed then it's great as an exercise, but not of much use... What's the meaning in loading a CDT in an emulator? I can think of two cases:
The plan is to have it usable on real tapes (although I might have to lower the speed a bit, we'll see...) If I wanted to just send from a PC soundcard to CPC it can be done much more quickly (as otla shows).

I'm only using an emulator because it's a lot quicker to develop and test that way. :)

Quote
-for the nice sounds fx (I do that).

I actually wrote the tape file generator first and the CPC loader later. For a while I was just listening and watching with the test program I already posted to repro the emulator bugs just because I like the noises!

I actually chose that particular baud rate as I get 9 bytes in almost exactly 312 lines so it makes nice patterns on the screen too, so I'll be a bit disappointed if I have to lower it!  ;)

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1981
  • Likes Given: 4650
Re: Ripped Dinamic tape loader
« Reply #30 on: 22:26, 09 November 13 »
If real tapes can't keep up with that kind of speed then it's great as an exercise, but not of much use... What's the meaning in loading a CDT in an emulator? I can think of two cases:


-there's no disk dump
-for the nice sounds fx (I do that).


So using a turbo^2 loader would be meaningless in both cases...?


Yes right, and in case you use a MP3 device for input on a real CPC, I guess raliferoo pointed that out before.


However, a MP3 device makes only sense if you already have it and can't afford a disc drive imho. But there is of course the sentimentality effect for some I could imagine.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline dlfrsilver

  • CPC6128
  • ****
  • Posts: 250
  • Liked: 73
  • Likes Given: 6
Re: Ripped Dinamic tape loader
« Reply #31 on: 23:19, 06 December 13 »
CPCE is the more accurate emu for tape loading :)