;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*- ;;drawing line from 2 cordinates ;;# (X_pos, Y_pos) # ;;# * # ;;# * # ;;# * # ;;# (X_end, Y_end) # ;;NOTE THAT X_pos <= X_end, Y_pos <= Y_end. Min 45deg! .proc line_down_inv ;; Look at line_down for referense .include "line.inc" LDA #$00 STA V STA >dx_2 LDA Y_end SEC SBC Y_pos STA dy SEC SBC >V STA >V Mult_16 >V, dx_2, dx_2 STA >D LDA D, D, btp_mem_pos), Y STA (>btp_mem_pos), Y increment_y_pos: INY CPY #$08 BNE increment_y_pos_end move_8px_down: LDY #$00 Add_16 >btp_mem_pos, D, D, V, btp_mem_pos, D, dx_2,