Newsgroups: comp.sys.sinclair
Path: ulke.hiMolde.no!trane.uninett.no!sunic!news.funet.fi!news.csc.fi!news.eunet.fi!news.spb.su!KremlSun!satisfy.kiae.su!news.techno.ru!demos!uunet!EU.net!uknet!comlab.ox.ac.uk!imc
From: imc@comlab.ox.ac.uk (Ian Collier)
Subject: Re: Technician Ted 128k needed !
Message-ID: <6133.imc@comlab.ox.ac.uk>
X-Local-Date: Wednesday, 22th February 1995 at 6:27pm GMT
Originator: imc@msc5.comlab
Organization: Oxford University Computing Laboratory
References: <1734612B8AS85.UZS40C@ibm.rhrz.uni-bonn.de> <3ica6k$vie@unixfe.rl.ac.uk>
Date: Wed, 22 Feb 1995 18:27:59 GMT
Lines: 29

In article <3ica6k$vie@unixfe.rl.ac.uk>, Mark Smith <mark@sa.rl.ac.uk> wrote:
>I was amazed by Technician Ted the first time I loaded it!
>Although the game itself is an ordinary sort of platform game and far too
>hard
>in my opinion, the loader is amazing!

>I always thought that interrupts had to be disabled during loading to
>ensure proper
>timing.

They are.  But the point is that loading a file, which takes on average
1/1500 seconds per bit, consists of operations like this:

  1. Wait 100 microseconds.
  2. Wait for a rising edge to arrive.
  3. Wait 100 microseconds.
  4. Wait for a falling edge to arrive.
  5. If the total time waited is less than about 750 microseconds then a '0'
     has been received, otherwise a '1' has been received.  If the total
     time waited is more than about 1500 microseconds then a loading error
     has occurred.

So, for example, instead of waiting 100us, you can call a subroutine that
takes exactly 100us to execute.

Ian Collier - Departmental Lecturer (and perpetual postgrad student) -
imc@comlab.ox.ac.uk - Oxford University Computing Laboratory, Wolfson
Building, Parks Road, Oxford OX1 3QD - WWW Home Page (including Spectrum
section): http://www.comlab.ox.ac.uk/oucl/users/ian.collier/index.html
