Hello,
I have a simple sketch that I would like to use a combination of program memory and RAM to perform math. The result is incorrect and I don't see why yet. Any ideas?
AVR-GCC is essentially a compiler for a 16 bit processor; int is 16 bits. That means all expressions less than 16 bits are automatically promoted to 16 bits. For expressions that are expected to have a 32 bit result and start with 16 bit operands you, the developer, are responsible for the promotion.