Sam Trenholme's webpage
This article was posted to the Usenet group alt.hackers in 1995; any technical information is probably outdated.

Bresenhams line on 6502

Article: 7833 of alt.hackers
From: (James Rosemary)
Newsgroups: alt.hackers
Subject: Bresenhams line on 6502
Date: 16 May 1995 14:41:57 GMT
Organization: University of Delaware, Newark
Lines: 6
Approved: If you insist.
Message-ID: 3padjl$
Status: RO

  Implemented Bresenham's line algorithm on a 6502 using 8 bit variables
to improve speed. This limits the line length to 64 pixels, so I made
the routine recursively break the line in half if it's too big. Rounding
is very important.

Back to index