A Machine Code Graphics Line Drawing Subroutine

Authors

Daniel Kopyc

Publication

Publication Details

Volume: 2 Issue: 6

Date

November/December 1982

Pages

41-46
See all articles from SYNC v2 n6

In the pages of the ZX81 manual, we find a Basic subroutine to draw a line between any two specified points (see Listing 1). However, I found this routine to be exceedingly slow, especially when I wanted to draw several lines on the screen and had to wait several agonizing minutes to get them. The only solution was to translate the Basic subroutine into Z80 machine language.

Products

 

Downloadable Media

 
Scroll to Top