;;drawing line from 2 cordinates .proc line_up ;;# * (X_end, Y_end) # ;;# # ;;# * # ;;# * # ;;# (X_pos, Y_pos) # ;; ;;NOTE THAT X_pos <= X_end, Y_pos >= Y_end. Max 45deg! .include "line.inc"; Defines memory positions, ex X_pos ;;example values ~~~~~ SHOULD BE PRECOMPILED ;LDA #$90 ;STA X_pos ;STA Y_pos ;LDA #$aa ;STA X_end ;LDA #$80 ;STA Y_end ;;~~~~~~~~~~ ;;We need to clear this memory LDA #$00 STA V STA >dy_2; >dy_2 = dy. Needed for dy_2 (not for V) LDA X_end SEC SBC X_pos STA dx SEC SBC >dy_2 STA >V; V, dy_2, dy_2 STA >D LDA D, D, D, D, V, D, dy_2,