;;drawing line from 2 cordinates .proc line ;;# (X_pos, Y_pos) # ;;# * # ;;# * # ;;# * # ;;# (X_end, Y_end) # ;;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 dx = $0c dy_2 = $0607 V = $0809 ;Lets reuse dx register ($08) D = $0a0b ;example values ~~~~~ SHOULD BE PRECOMPILED LDA #$00 STA X_pos STA Y_pos LDA #$90 STA X_end LDA #$10 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: INC Y_pos Sub_16 >D, V, D, dy_2,