;;drawing line from 2 cordinates .proc line ;;# * (X_end, Y_end) # ;;# # ;;# * # ;;# * # ;;# (X_pos, Y_pos) # ;; ;;NOTE THAT X_pos <= X_end, Y_pos >= Y_end. Max 45deg! ;;Not values but register position in memory X_end = $04 Y_end = $05 X_pos = $FC Y_pos = $FB dy_2 = $0607 dx = $0c V = $0809 D = $0a0b ;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 >V STA >V; V, dy_2, dy_2 STA >D LDA D, D, >D ==0, then: case_2 LDA 0 then: case_1 CMP #$00 BEQ case_2 case_1: DEC Y_pos Sub_16 >D, V, D, dy_2,