I don't think this has been covered before as a search in the forum for 'inc' failed to get any results, but I've just noticed that using the inc command:
takes up more program memory than adding one to a variable:
using inc uses six bytes of program memory but using b0 = b0 + 1 uses just three bytes. Is this meant to be a punishment for being lazy and not typing the variable name twice?
Also, it only seems to apply to the 28X1 as it doesn't apply to the 28X or the 28X2, on which both commands are only two bytes each.
Code:
inc b0
Code:
b0 = b0 + 1
Also, it only seems to apply to the 28X1 as it doesn't apply to the 28X or the 28X2, on which both commands are only two bytes each.