;;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. Min 45deg! ;;Not values but register position in memory X_end = $04 Y_end = $05 X_pos = $FC Y_pos = $FB dy = $0c dx_2 = $0607 V = $0809 D = $0a0b ;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 ==0, then: case_2 LDA 0 then: case_1 CMP #$00 BEQ case_2 case_1: INC X_pos Sub_16 >D, V, D, dx_2,