This code displays a number thats in "1/2 cm" units. I want it to pad the number displayed with spaces, not with zeros.
Code:
Dist_To_Print var word system
@Print_Distance macro arg
@ MOVE?WW arg, Dist_To_Print
if dist_to_print < 200 then
lcdout " "
endif
if dist_to_print < 20 then
lcdout " "
endif
lcdout #(dist_to_print / 2), ".", dec1 ((Dist_To_Print // 2) * 5), "cm"
@ endm
I get compile errors this macro, but they go away and it works if I remove the If statements. The error says "Address label duplicated or different in second pass (L00001)"
Any suggestions?
Bookmarks