larsbrinkhoff / xForth

Experimental Forth cross compiler for tiny devices
GNU General Public License v3.0
61 stars 13 forks source link

Added support for interrupt in atmega328p #66

Open Selmacas opened 3 years ago

Selmacas commented 3 years ago

Edited for atega328p (edited nucleus.fth for correct interrupt vectors size and changet position of return stack to end of ram and data stack to 3/4 od ram, edited params.fth for correct data ram start). Implemetend spuport for interrupt (in interrupt.fth and in nucleus.fth - swr = save working registers, rwr = restore working registers). Example is in test/interrupt-atmega328.fth