As Joerg Wunsch wrote: > This yields a few new simulation errors: > > Simulate: avr/eeprom-1.c attiny2313 ... *** simulate failed: 70 > Simulate: avr/eeprom-2.c attiny2313 ... *** simulate failed: 46 > Simulate: avr/eeprom-3.c attiny2313 ... *** simulate failed: 64 > > Not sure what's wrong here ...
It's a problem with the simulator. In short, CPU registers are accessed through their SRAM addresses and X+ addressing, but R27 (XH) is not initialized so contains semi-random values. For an ATtiny2313, this doesn't matter as it only implements 8-bit SRAM addressing, but the simulator thinks SRAM outside the address space is being accessed, and refuses to load the values. -- cheers, Joerg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev