Ro5bert / avra

Assembler for the Atmel AVR microcontroller family
GNU General Public License v2.0
153 stars 39 forks source link

Add 64bit expr values #61

Open imrehorvath opened 1 year ago

imrehorvath commented 1 year ago

In the AVR Assembler (AVRASM2), "all expressions are 64 bits internally". (See spec. chapter 7. Expressions) For compatibility and for integer arithmetic required eg. for delay cycles calculation, the full 64 bit support is required. The current avra 1.4.2 implementation uses 32 bit integers internally for expressions which in turn causes eg. delay cycles calculation in macros to overflow and fail, limiting the usage seriously. This PR adds 64 bits integer support for the expression values. Regression tests also provided.