wokwi / avr8js

Arduino (8-bit AVR) simulator, written in JavaScript and runs in the browser / Node.js
https://blog.wokwi.com/avr8js-simulate-arduino-in-javascript/
MIT License
462 stars 73 forks source link

EICALL instruction is broken #59

Closed urish closed 3 years ago

urish commented 3 years ago

According to the datasheet, the EICALL instruction should push a 3-byte return address to the stack, but currently it only pushes 2. This breaks ATmega2560 simulation.