Hi,
No sure where to post this question, but anyway.
Is it possible to run a program, and at the same time detect if the Oric is recieving information on the tape plug, then switch the Oric to CLOAD mode ?
Cheers
Simon
Detecting tape signal
Since most tape interfaces are just "bit banger" serial ports with analog in/out you'll miss data if it isn't done correctly and the load will fail.
I don't know about the Oric but the other machines I've used have a tape header of sorts than you could detect in an interrupt. However, most load routines in ROM expect to see the start of that header which may make the load fail if it doesn't catch it soon enough.
If it does fail you should look at a disassembly of the tape routines for the Oric. You may be able to read the header portion yourself and then jump directly to the location in ROM after you read the header.
I don't think you will need to do that since you will probably sample off of an interrupt that takes place much faster than you'll ever get past the header on the tape.
I don't know about the Oric but the other machines I've used have a tape header of sorts than you could detect in an interrupt. However, most load routines in ROM expect to see the start of that header which may make the load fail if it doesn't catch it soon enough.
If it does fail you should look at a disassembly of the tape routines for the Oric. You may be able to read the header portion yourself and then jump directly to the location in ROM after you read the header.
I don't think you will need to do that since you will probably sample off of an interrupt that takes place much faster than you'll ever get past the header on the tape.
I wrote such a tape loader with interrupts for my game One.Symoon wrote:Thanks for the replies.
There are plenty of synch bytes in the standard signal that should avoid any data loss.
It's also possible to shorten it (by reprogramming the loading routines) according to the Oric's detection speed.
Now I guess I have to learn how interrputs can be programed
This was because I put an animation (a sprite and a scroll) and some music while loading.
I should have the listings somewhere, if you want them.
JC