Its in me to always produce the smallest code I can, so I regularly check the asm for bloat
So I modified some code from doing a mod on a UIntriguer to count to 10 to a simple inc routine
Dim _100hZTick as byte
if OnTick <> nothing then
IF _100hZTick = 10 THEN
_100hZTick = 0
RaiseEvent OnTick() ' raise event
end if
end if
But looking at the asm I see
My byte assignment of the variable has been ignored and turned into a Dword
Is this the case for every variable I declare?
thanks