Newsgroups: comp.sys.sinclair
Path: ulke.hiMolde.no!trane.uninett.no!nac.no!eunet.no!nuug!Norway.EU.net!EU.net!uknet!comlab.ox.ac.uk!imc
From: imc@comlab.ox.ac.uk (Ian Collier)
Subject: Re: ZX81 Emulators
Message-ID: <6302.imc@comlab.ox.ac.uk>
X-Local-Date: Wednesday, 22th March 1995 at 7:01pm GMT
Originator: imc@msc2.comlab
Organization: Oxford University Computing Laboratory
References: <1A0BC1748@gre-techa.greenwich.ac.uk>
Date: Wed, 22 Mar 1995 19:01:56 GMT
Lines: 40

In article <1A0BC1748@gre-techa.greenwich.ac.uk>, M.Barber@greenwich.ac.uk (Matt Barber) wrote:
>o   Programs tend to poke to the screen rather than use the slow 
>    print commands. They also read from the screen, by using peeks
>    rather than a SCREEN$ or ATTR command.

Um, maybe that's because the ZX81 doesn't have ATTR or SCREEN$. ;-)

>o   The SCROLL command was just too useful. Almost every program used
>    it and the spectrum had no real equivalent. (RAND USR 3280 doesn't
>    do *exactly* the same as SCROLL.)

Why, what's different?  (and there was I thinking it was USR 3582 :-) ).

>o   The PLOT and UNPLOT commands also had no real equivalent. You 
>    needed to replace each ZX81 PLOT command with sixteen Spectrum 
>    ones, and this time the Spectrum was about four times slower.
>    UNPLOT was even worse to emulate.

For PLOT/UNPLOT you can always use a PRINT AT with one of the block graphics
and OVER 1. Unfortunately, you have to know which quarter of the block to
use, and you have to know whether or not it was plotted before you started.
I daresay a short machine code program would do the job admirably.

>This made it a nightmare to translate even the simplest ZX81 programs 
>over to the Spectrum.

I once typed in a 3D noughts-and-crosses ZX81 listing from Your Computer
into my spectrum, and it worked perfectly.  I also converted the 1K ZX81
chess program to the Spectrum and that worked too although it played lousy
chess.  :-)

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

New to this group?  Answers to frequently-asked questions can be had from
http://www.nvg.unit.no/spectrum/ .
>New< - Visit the Sam Coup FAQ at:
http://whirligig.ecs.soton.ac.uk/~tsp93/Coupe/FAQ.txt .
