aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/1ms.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/1ms.asm')
-rw-r--r--amforth-6.5/avr8/words/1ms.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/1ms.asm b/amforth-6.5/avr8/words/1ms.asm
new file mode 100644
index 0000000..f23951d
--- /dev/null
+++ b/amforth-6.5/avr8/words/1ms.asm
@@ -0,0 +1,13 @@
+; ( -- )
+; Time
+; busy waits (almost) exactly 1 millisecond
+VE_1MS:
+ .dw $ff03
+ .db "1ms",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_1MS
+XT_1MS:
+ .dw PFA_1MS
+PFA_1MS:
+ delay 1000
+ jmp_ DO_NEXT