It's just a simple solution, since I have never seen a real Sam tape. I just 
know only what I personally saved with Sam Basic.

I don't support neither TZX nor copy-protected stuff, since I simply have 
never seen any! Can't emulate nonexisting stuff (nonexisting in my life).

In 1991-1993 I converted many many many so-called multiload games from 48k 
and 128k ZX Spectrum tapes to Sam Coupe, so I am quite experienced in tape 
handling asm routines. So I just looked to Sam ROM, and did some hooks 
there. That's all. :-)

Btw. It was definitely easier than doing AY music conversions in ZXS games 
like I did in the past. :-))) While I was sometimes unsuccessful in AY code 
conversion, this TAP handler seems to be working. Both LOAD and SAVE. :-) 
Maybe it's also beacuse I was 13 when I did AY conversion, and today I'm 
more than twice as old...... :-)

Look to ascd/tape.c. The tape handling code is quite long, since I tried to 
keep as much as possible from the ROM code. Even some custom loaders are 
supported, if they fallback to ROM at least for the core loop. It also 
needed to emulate some special behaviour of Sam ROM code regarding to ZX 
tapes loaded into Sam Basic (without emulator). You know, there's a special 
treatment for ZX tapes loaded directly to Sam Basic. (Tell me who knowed 
this before? I definitely not.)

So this is fast-laod. Defenders don't take more than a few milliseconds. :-) 
But obviously, I'm sure that Simon Owen will also want to emulate the real 
slow loading. I'm not interested in this. :-)

----------------------------------------------------------
Mgr.(MSc.) Aleš Keprt (also known as Aley)
[EMAIL PROTECTED] *** www.keprt.cz *** ICQ: 82357182
Dept. of Computer Science, VŠB Technical University
Ostrava, CZ - [EMAIL PROTECTED] - www.cs.vsb.cz
----------------------------------------------------------


----- Original Message ----- 
From: "Edwin Blink" <[EMAIL PROTECTED]>
To: <sam-users@nvg.ntnu.no>
Sent: Monday, January 03, 2005 2:05 AM
Subject: Re: Sam Coupe TAP files


>
> 4. Note that original TAP file format can't handle all Sam Coupe files.
> Obviously, it's limited to ZXS, which can't have files > 64KB. So I made a
> little extension to the TAP format. If the files are < 64KB in size, it's
> the real TAP, but if files need to be > 64KB in size, there's a little
> extension. See ASCD source code for details.
>
> http://www.keprt.cz/progs/ascd/ascd096src.zip
>
> Had a quick look at it but my Cs not that good.
>
> Could your explain your solution ?
>
>
> Edwin
>
>
>
>
> 

Reply via email to