Add code skeleton for the binary-tree-api:s unittest

This commit is contained in:
hugova 2025-03-24 20:16:52 +01:00
parent 05b0ff9762
commit f185c80a16
2 changed files with 3 additions and 2 deletions

View file

@ -80,6 +80,7 @@
;;Larger then operation, uses the A register
;;IF a < b then: jump to label
; C =0 if jump to LABEL
.macro Lag_16 a_low, a_hi, b_low, b_hi, label ; [low, hi] = [low, hi]*2
LDA a_hi
CMP b_hi

View file

@ -65,8 +65,8 @@ increment_y_pos_end:
;;If D < %00000010 00000000: case_2
;;else case 1.
Lag_16 >D, <D, #$00, #$02, case_2
case_1:
Sub_16 >D, <D, >V, <V; D = D - V
case_1:; C = 1 because LAG
Sub_16 >D, <D, >V, <V, !; D = D - V
increment_pixel_x:
LDA byte_to_paint
LSR byte_to_paint