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