myvar = 5
if (myvar > 3) & (myvar < 7) then
myvar = 0
end if
Will result in an assembler code including both SysCompLessThan and SysCompMoreThan.
While this code:
myvar = 5
if (myvar > 3) & (7 > myvar) then
myvar = 0
end if
Only includes SysCompMoreThan.
Both codes do the same thing only that the last one takes less room on the chip.
This is of course NOT an error and I'm just pointing it out as a possible thing to optimize if you want to. I'm allready aware of it and can adjust my code so that I only get one of the subroutines.
Other than this, I've found that GCBasic compiles with very small overhead I don't think I would be able to save many bytes by writing the directly in assembly language. I'm very impressed with it. Good work!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This code:
myvar = 5
if (myvar > 3) & (myvar < 7) then
myvar = 0
end if
Will result in an assembler code including both SysCompLessThan and SysCompMoreThan.
While this code:
myvar = 5
if (myvar > 3) & (7 > myvar) then
myvar = 0
end if
Only includes SysCompMoreThan.
Both codes do the same thing only that the last one takes less room on the chip.
This is of course NOT an error and I'm just pointing it out as a possible thing to optimize if you want to. I'm allready aware of it and can adjust my code so that I only get one of the subroutines.
Other than this, I've found that GCBasic compiles with very small overhead I don't think I would be able to save many bytes by writing the directly in assembly language. I'm very impressed with it. Good work!