remove old syntax such that lines can be drawn without smc

This commit is contained in:
hugova 2025-07-22 17:15:16 +02:00
parent fe28daaf26
commit e5c78e7565
4 changed files with 7 additions and 7 deletions

View file

@ -111,7 +111,7 @@ case_1:
;; Because Lag_16:
;; C =1 so we can use !
;; A = >D
Sub_16_A D, D + 1, #>V, #<V, !
Sub_16_A D, D + 1, #V, #V + 1, !
decrement_y_pos:
DEY ; Increment Y pos inside the buffer
BNE for_x
@ -124,7 +124,7 @@ move_8px_up: ; Z=1 --> C=1
JMP for_x
decrement_y_pos_end:
case_2:
Add_16 D, D + 1, #>dy_2, #<dy_2,! ;D = D + 2*dy
Add_16 D, D + 1, #dy_2, #dy_2 + 1, ! ;D = D + 2*dy
JMP for_x
end:
RTS

View file

@ -76,7 +76,7 @@ increment_y_pos_end:
BEQ end
Lag_16 D, D + 1, #$00, #$02, case_2
case_1:
Sub_16_A D, D + 1, #>V, #<V, !
Sub_16_A D, D + 1, #V, #V + 1, !
increment_pixel_x:
ASL byte_to_paint
BCC for_y
@ -85,7 +85,7 @@ move_8px_left:
ROL byte_to_paint
JMP for_y
case_2:
Add_16 D, D + 1, #>dx_2, #<dx_2, ! ;D = D + 2*dx
Add_16 D, D + 1, #dx_2, #dx_2 + 1, ! ;D = D + 2*dx
JMP for_y
end:
RTS

View file

@ -73,7 +73,7 @@ increment_pixel_x_end:
BEQ end
Lag_16 D, D + 1, #$00, #$02, case_2
case_1:
Sub_16_A D, D + 1, #>V, #<V,!
Sub_16_A D, D + 1, #V, #V + 1,!
decrement_y_pos:
DEY
BNE for_x

View file

@ -72,7 +72,7 @@ decrement_y_pos_end:
BEQ end
Lag_16 D, D + 1, #$00, #$02, case_2
case_1:
Sub_16_A D, D + 1, #>V, #<V, !
Sub_16_A D, D + 1, #V, #V + 1, !
increment_pixel_x:
LSR byte_to_paint
BCC for_y
@ -81,7 +81,7 @@ move_8px_left:
Add_16 btp_mem_pos, btp_mem_pos + 1, #$08, #$00,!
JMP for_y
case_2:
Add_16 D, D + 1, #>dx_2, #<dx_2, !
Add_16 D, D + 1, #dx_2, #dx_2 + 1, !
JMP for_y
end:
RTS