diff --git a/wip-hugo/routines/line/line_down.s b/wip-hugo/routines/line/line_down.s index cc0d657..3280e2d 100644 --- a/wip-hugo/routines/line/line_down.s +++ b/wip-hugo/routines/line/line_down.s @@ -52,6 +52,7 @@ jsr pixel_draw ;;only used first pixel. after this relative position is abused LDY #$00 + LDX X_pos for_x: ;; Paints A to address i btp_mem_pos* + Y ;; Y is our Y-pos-chunk-offset. @@ -68,8 +69,7 @@ move_8px_left: LDA #%10000000 STA byte_to_paint increment_pixel_x_end: - INC X_pos;; legacy - LDX X_pos + INX CPX X_end BEQ end ;;If D < %00000010 00000000: case_2 @@ -78,14 +78,13 @@ increment_pixel_x_end: case_1:; C =1 so we can use ! Sub_16 >D, V, btp_mem_pos, C=1 ;; +320-8 bytes LDY #$00 - Add_16 >btp_mem_pos, btp_mem_pos,