AVR, problem with mod/div operators
Original Reporter info from Mantis: Bernd
-
Reporter name: Bernd
Original Reporter info from Mantis: Bernd
- Reporter name: Bernd
Description:
The attached program executes line 13 (CurrentDigit:= ...) only one time. The second time, the cpu (ATMega128) remains/crashes somwhere in the rtl. Unfortunately, I have no debugger to give more details.
Compiler/rtl built with fpc 3.0.0
make crosszipinstall CPU_TARGET=avr OS_TARGET=embedded SUBARCH=avr51
program compiled with:
avr-embedded-fpc -Wpatmega128 -O2 -Cpavr51 -al test.pas
Mantis conversion info:
- Mantis ID: 29128
- OS: embedded
- Build: 32556
- Platform: AVR
- Version: 3.1.1
- Fixed in revision: 32589 (#159c28ec)
- Target version: 3.1.1