Changes

Jump to: navigation, search

6502 Assembly Language Math Lab

1 byte added, 13:14, 20 January 2020
Techniques
* Drawing a Line
** To draw a line between two arbitrary points (X<sub>1</sub>,Y<sub>1</sub>)(X<sub>2</sub>,Y<sub>2</sub) where X<sub>2</sub>-X<sub>1</sub> > Y<sub>2</sub>-Y</sub>1</sub> and all coordinates are positive, calculate the rise/run, then set Y=Y<sub>1</sub> and iterate for X=X<sub>1</sub>:X<sub>2</sub> incrementing Y by the rise/run each step.
** Use fixed-point math for the rise/run (aka deltaY) value.

Navigation menu