Did Yak invent the Turbo Loader?

Inane baanter or words of wisdom - you decide...
User avatar
kalmar
Baaaaaaa!
Baaaaaaa!
Posts: 8293
Joined: Fri Jun 24, 2005 2:46 pm 0
Location: Fife

Post by kalmar »

_TinOmen_ wrote:
La Haine wrote:What was the first animated screen loader ?

For some reason I'm thinking it was a platformer ?
I remember "TechnicianTed" was very impressive which featured several copies of the main sprite (Ted) walking back and forth over the screen during loading.
Probably made the game load slower, but it was worth it :wink:
I think one of the.. Padua? demos, which was disk-based, actually had a little space-invaders game which appeared between stages, when loading was happening.
User avatar
mamemeister
Baaaaaaa!
Baaaaaaa!
Posts: 7464
Joined: Mon Apr 29, 2002 10:21 pm 0
Location: Livingston
Contact:

Post by mamemeister »

Funny it was mentioned that games were loaded twice, I eventually thru sheer impatience discovered with some games you could press the run/stop half way thru and type 'run' and it would work :P

As for the loading noise I always wondered whether if you hissed and screeched thru a microphone into the computer it would actually recongise any of the noises as code??

In other words you could verbally program a game!!!
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Post by sack »

Basically (the general theory, and possibly wrong as I read this from various internet sources)...

You have a register on a chip someplace that leaves a pulse or a transition from low to high on the tape when you set or change it. Things would be faster if you could be assured that you could use logic high as 1 and low as 0, but it's not that simple. All you can rely on is the transitions between the 2 states being detected accurately.

so how'd you encode the data then?

well... you vary the distance between the transitions (pluses). For example a long gap could represent a one whereas a shorter gap represents a zero. Obviously the shorter you can make these gaps the quicker the load will be whilst increasing the risk of load errors (I have a spectrum loader that loads anything in 30 seconds, but will NEVER work from anything other than a .tap emulator file)

the basic pseudocode would be:

*wait for first pulse
*set timer
*stop timer on second pulse
*set the bottom bit of a byte according to how long has passed
*shift the byte along to make room for the next one
*put the byte in the right bit of memory if you have an entire byte in

The c64 has a neat feature in that this transition can cause an interrupt, so you can put the tape-to-bit decoding in the interrupt which is triggered by the first pulse. The advantage of this is that it leaves the rest of the machine 'running freely' so you can put it into a loop running another piece of code independent of the loading process (playing music, space invaders or in the case of dragons lair the previous level of the game).

That's the best explaination I can come up with whilst talking someone through removing spyware for the 2*10^50th time, so feel free to correct the wrong bits :)
User avatar
arron
Baaaaaaa!
Baaaaaaa!
Posts: 7047
Joined: Mon Apr 22, 2002 11:42 pm 0
Location: Here and Now

Post by arron »

Wasn't there some extreme data compression involved as well? Or I am being hopelessly deluded to the technology used?
"Observation is the path to understanding. Self-observation is the path to self-understanding."
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Post by sack »

arron wrote:Wasn't there some extreme data compression involved as well? Or I am being hopelessly deluded to the technology used?
I'd hope so, although listening to some spectrum games you can pretty much hear the repeat data. I was treating compression as a seperate issue as that would speed up a stock loader too
User avatar
venusian
Baaaaaaa!
Baaaaaaa!
Posts: 6655
Joined: Wed Nov 06, 2002 2:22 pm 0
Location: South Gloucestershire

Post by venusian »

sack wrote:
arron wrote:Wasn't there some extreme data compression involved as well? Or I am being hopelessly deluded to the technology used?
I'd hope so, although listening to some spectrum games you can pretty much hear the repeat data. I was treating compression as a seperate issue as that would speed up a stock loader too
I think you'd be hard pushed to anything more than RLE at load time. Turbo loading is pretty hard and having the CPU trying to do decompression and timing critical tasks at the same time would be hellish. <thinks> you could embed pauses into the data stream to give the CPU time to decompress but, crikey, getting to work optimally would be hard.

I'd guess that anything we can think of here has been tried by an 8-bit programmer before.
User avatar
kalmar
Baaaaaaa!
Baaaaaaa!
Posts: 8293
Joined: Fri Jun 24, 2005 2:46 pm 0
Location: Fife

Post by kalmar »

venusian wrote: I think you'd be hard pushed to anything more than RLE at load time. Turbo loading is pretty hard and having the CPU trying to do decompression and timing critical tasks at the same time would be hellish. <thinks> you could embed pauses into the data stream to give the CPU time to decompress but, crikey, getting to work optimally would be hard.
Some of the C64 turbo loaders definitely stored data in "bursts" on the tape, at about 2-3Hz, from memory. I don't know if it's for that reason but it sounds plausible! And RLE is better than nothing :)
User avatar
PeeknPoke Lee
Baaaaaa!
Baaaaaa!
Posts: 2557
Joined: Sun Sep 07, 2003 10:07 am 0
Location: Somewhere in time...um..Manchester
Contact:

Post by PeeknPoke Lee »

my fav loaders...

German turbo...arrow left and load..very very fast. Good for Super Pipeline

Sanxion..forget the music for a sec. Lovely start with great colours and that flashing Thalamus icon

Commando..Novaload Living on video music and char version of the arcade cab. Lush


Lee
makes films and stuff... http://www.notlobproductions.co.uk
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Post by sack »

venusian wrote:
sack wrote:
arron wrote:Wasn't there some extreme data compression involved as well? Or I am being hopelessly deluded to the technology used?
I'd hope so, although listening to some spectrum games you can pretty much hear the repeat data. I was treating compression as a seperate issue as that would speed up a stock loader too
I think you'd be hard pushed to anything more than RLE at load time. Turbo loading is pretty hard and having the CPU trying to do decompression and timing critical tasks at the same time would be hellish. <thinks> you could embed pauses into the data stream to give the CPU time to decompress but, crikey, getting to work optimally would be hard.

I'd guess that anything we can think of here has been tried by an 8-bit programmer before.
it's best just to depack after loading to be honest - that way you can have a much more involved compression routine which gives better gains
User avatar
rowan
Baaaaaaa!
Baaaaaaa!
Posts: 7965
Joined: Tue Nov 25, 2003 11:53 pm 0
Location: Notts.

Post by rowan »

sack wrote:Basically (the general theory, and possibly wrong as I read this from various internet sources)...

You have a register on a chip someplace that leaves a pulse or a transition from low to high on the tape when you set or change it. Things would be faster if you could be assured that you could use logic high as 1 and low as 0, but it's not that simple. All you can rely on is the transitions between the 2 states being detected accurately.

so how'd you encode the data then?
Did they ever get around to RLL for tape then?
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

Loading routines have to be very very tight timing wise and there is no place for branches that aren't absolutely predictable.

I was dubious about the requirement for this but I found when implementing my loaders that even a couple of T states out would make large differences in the quality of the discrimination.
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Post by sack »

rowan wrote:
sack wrote:Basically (the general theory, and possibly wrong as I read this from various internet sources)...

You have a register on a chip someplace that leaves a pulse or a transition from low to high on the tape when you set or change it. Things would be faster if you could be assured that you could use logic high as 1 and low as 0, but it's not that simple. All you can rely on is the transitions between the 2 states being detected accurately.

so how'd you encode the data then?
Did they ever get around to RLL for tape then?
Dunno - not read about it (had to google for RLL there before replying) - It just depends on what the CPU overhead is on decoding it. Suppose in an IRQ loader you could just dump it into a buffer and let the free loop do the decoding...
User avatar
AlbertKatraz
Baaaaa!
Baaaaa!
Posts: 1324
Joined: Tue Apr 23, 2002 1:46 pm 0
Location: London, UK
Contact:

Post by AlbertKatraz »

mamemeister wrote:Funny it was mentioned that games were loaded twice, I eventually thru sheer impatience discovered with some games you could press the run/stop half way thru and type 'run' and it would work :P

As for the loading noise I always wondered whether if you hissed and screeched thru a microphone into the computer it would actually recongise any of the noises as code??

In other words you could verbally program a game!!!
Yeah a mate of mine who, let's be charitable, wasn't particularly technical once asked me what I thought the chances were of screeching into a microphone and 'a good game' coming out were.

Imagine his disappointment had we tried it and a merely average title was produced.

:lol:
If something's worth saying, it's worth singing!
stay
Baaa!
Baaa!
Posts: 120
Joined: Mon Apr 18, 2005 8:50 pm 0

Post by stay »

There were several C64 fast-loader mini-games you could play whilst waiting for the main game to load.

The one I remember best is "Invade-a-Load". Another was a sort of painter clone.

Reasonably good fun, and had to be better than twiddling your thumbs for up to 5 mins :)
User avatar
Dr. M
Baaaaaaa!
Baaaaaaa!
Posts: 6368
Joined: Sat Jun 22, 2002 12:44 pm 0
Location: Sitting in a chair in my office - sort of.

Post by Dr. M »

Yeah, I remember the Invade-A-Load games.

IIRC, they were on a number of Mastertronic games.
Post Reply