Bresenhams line on 6502
Article: 7833 of alt.hackers From: rosemary@sauterne.cis.udel.edu (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$9m5@louie.udel.edu NNTP-Posting-Host: sauterne.cis.udel.edu Status: RO
ObHack: 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.