Open srtlg opened 1 year ago
For compatibility with AVRASM2 all expressions should be 64 bit internally, so that the following is equal
.device atmega168 .equ F_CPU = 16000000 .macro delay1 .set cycles = @0 * (F_CPU / 1000000) .dw cycles .endmacro .macro delay2 .set cycles = (@0 * F_CPU) / 1000000 .dw cycles .endmacro delay1 1000 delay2 1000
here is the relevant section of the manual
For compatibility with AVRASM2 all expressions should be 64 bit internally, so that the following is equal