From 67d25d837ac55f28a366c0a3b262e439a6e75fc3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 19 Aug 2017 12:15:28 +0200 Subject: Add AmForth --- .../avr8/devices/atmega6490/words/no-jtag.asm | 14 ++++++++++++++ .../avr8/devices/atmega6490/words/no-wdt.asm | 22 ++++++++++++++++++++++ .../avr8/devices/atmega6490/words/sleep.asm | 19 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 amforth-6.5/avr8/devices/atmega6490/words/no-jtag.asm create mode 100644 amforth-6.5/avr8/devices/atmega6490/words/no-wdt.asm create mode 100644 amforth-6.5/avr8/devices/atmega6490/words/sleep.asm (limited to 'amforth-6.5/avr8/devices/atmega6490/words') diff --git a/amforth-6.5/avr8/devices/atmega6490/words/no-jtag.asm b/amforth-6.5/avr8/devices/atmega6490/words/no-jtag.asm new file mode 100644 index 0000000..352a4bb --- /dev/null +++ b/amforth-6.5/avr8/devices/atmega6490/words/no-jtag.asm @@ -0,0 +1,14 @@ +; ( -- ) +; ( -- ) +; MCU +; disable jtag at runtime +VE_NOJTAG: + .dw $FF05 + .db "-jtag",0 + .dw VE_HEAD + .set VE_HEAD = VE_NOJTAG +XT_NOJTAG: + .dw PFA_NOJTAG +PFA_NOJTAG: + + jmp_ DO_NEXT diff --git a/amforth-6.5/avr8/devices/atmega6490/words/no-wdt.asm b/amforth-6.5/avr8/devices/atmega6490/words/no-wdt.asm new file mode 100644 index 0000000..4a12261 --- /dev/null +++ b/amforth-6.5/avr8/devices/atmega6490/words/no-wdt.asm @@ -0,0 +1,22 @@ +; ( -- ) +; MCU +; disable watch dog timer at runtime +VE_NOWDT: + .dw $ff04 + .db "-wdt" + .dw VE_HEAD + .set VE_HEAD = VE_NOWDT +XT_NOWDT: + .dw PFA_NOWDT +PFA_NOWDT: + +; Reset WDT + wdr +; Write logical one to WDTOE and WDE + in_ temp1, WDTCR + ori temp1, (1<