AMcTools Forum 
Pages: 1
Send Topic Print
ATmega128 simulation error (Read 2943 times)
YaBB Newbies

I Love YaBB 2!

Posts: 1

ATmega128 simulation error
11/13/10 at 14:07:50
It seems that ATmega128 simulation serves interrupts one instruction too early, when interrupts are enabled by writing to status register (which is very common in function epilogues). In attached test case this behaviour is evident, as stack pointer points erroneously outside the SRAM.
Back to top
  IP Logged
Global Moderator

Posts: 160
Austin, TX, USA
Gender: male
Re: ATmega128 simulation error
Reply #1 - 11/16/10 at 19:29:34
Thanks for the report. I'll have to investigate this further, but I suspect this bug will occur on other AVR models because they probably share the same code for core CPU emulation.
Back to top
WWW   IP Logged
Pages: 1
Send Topic Print