Newsgroups: comp.sys.sinclair
Path: ulke.hiMolde.no!trane.uninett.no!sunic!sunic.sunet.se!news.luth.se!eru.mt.luth.se!bloom-beacon.mit.edu!uhog.mit.edu!news.mathworks.com!solaris.cc.vt.edu!spcuna!ritz!nick
From: nick@ritz.mordor.com (Nicolae Savoiu)
Subject: Re: Z80 draw line code
References: <1995Apr20.161058.30015@ucl.ac.uk>
Organization: Mordor International BBS
Date: Fri, 21 Apr 1995 15:16:14 GMT
X-Newsreader: TIN [version 1.2 PL2]
Message-ID: <D7E532.K2A@ritz.mordor.com>
Lines: 26

Bevis Peters (bevis@ucl.ac.uk) wrote:
: Since I've found this group, here's a problem for any Z80 coders around.
: I need a routine to draw a line from a point, say B,C to D,E, assuming
: the exsistance of a routine PLOT which plots a point at B,C and
: changes no registers.
: This is for a hardware graphics project not involving a Spectrum, but
: using a Z80 processor.
: Any help appreciated....

: Oh, and the faster, the better...

Look in a graphics book under Breshnam (<-spelling?) algorithm. Does all 
you want and uses only intergers in a really neat way.

HTH,

Nick

+-------------------------------+--------------------------------------+
| Nick O. Savoiu / Snoware, Co. |                                      |
+----------------------------+--+    This space for rent by owner!     |
| nick@ritz.mordor.com       +-----------------------------------------+
| shadow@jcs2.jcstate.edu    | My homepage: http://www.mordor.com/nick |
+----------------------------+-----------------------------------------+


