diff --git a/wip-hugo/routines/line/line_down.s b/wip-hugo/routines/line/line_down.s index 106538c..f489123 100644 --- a/wip-hugo/routines/line/line_down.s +++ b/wip-hugo/routines/line/line_down.s @@ -76,13 +76,12 @@ increment_pixel_x: LSR byte_to_paint ; Rotates the pixel one bit to the left ON THE SCREEN. BCC increment_pixel_x_end; We need to move to the next chunk move_8px_left: + ;; Restores byte to paint to #%10000000 + ROR byte_to_paint ;; Next chunk is 8 addresses away. Look in pixel_draw for more detail. ;; -8. ;; C = 1 therefore you se 07 - Add_16 btp_mem_pos, btp_mem_pos + 1, #$07, #$00, ! - ;; Restores byte to paint - LDA #%10000000 - STA byte_to_paint + Add_16 btp_mem_pos, btp_mem_pos + 1, #$08, #$00, ! increment_pixel_x_end: DEX BEQ end ;We keep track on when to stop line draw with the X registry. diff --git a/wip-hugo/routines/line/line_down_inv.s b/wip-hugo/routines/line/line_down_inv.s index 83e5e04..edc07d6 100644 --- a/wip-hugo/routines/line/line_down_inv.s +++ b/wip-hugo/routines/line/line_down_inv.s @@ -61,13 +61,11 @@ increment_y_pos_end: case_1: Sub_16_A D, D + 1, #>V, #dx_2, #V, #dx_2, #