Add code skeleton for the binary-tree-api:s unittest
This commit is contained in:
parent
05b0ff9762
commit
f185c80a16
2 changed files with 3 additions and 2 deletions
|
@ -80,6 +80,7 @@
|
||||||
|
|
||||||
;;Larger then operation, uses the A register
|
;;Larger then operation, uses the A register
|
||||||
;;IF a < b then: jump to label
|
;;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
|
.macro Lag_16 a_low, a_hi, b_low, b_hi, label ; [low, hi] = [low, hi]*2
|
||||||
LDA a_hi
|
LDA a_hi
|
||||||
CMP b_hi
|
CMP b_hi
|
||||||
|
|
|
@ -65,8 +65,8 @@ increment_y_pos_end:
|
||||||
;;If D < %00000010 00000000: case_2
|
;;If D < %00000010 00000000: case_2
|
||||||
;;else case 1.
|
;;else case 1.
|
||||||
Lag_16 >D, <D, #$00, #$02, case_2
|
Lag_16 >D, <D, #$00, #$02, case_2
|
||||||
case_1:
|
case_1:; C = 1 because LAG
|
||||||
Sub_16 >D, <D, >V, <V; D = D - V
|
Sub_16 >D, <D, >V, <V, !; D = D - V
|
||||||
increment_pixel_x:
|
increment_pixel_x:
|
||||||
LDA byte_to_paint
|
LDA byte_to_paint
|
||||||
LSR byte_to_paint
|
LSR byte_to_paint
|
||||||
|
|
Loading…
Add table
Reference in a new issue