aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/hardware/int-critical.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/hardware/int-critical.frt')
-rw-r--r--amforth-6.5/common/lib/hardware/int-critical.frt12
1 files changed, 12 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/hardware/int-critical.frt b/amforth-6.5/common/lib/hardware/int-critical.frt
new file mode 100644
index 0000000..d3bbf7f
--- /dev/null
+++ b/amforth-6.5/common/lib/hardware/int-critical.frt
@@ -0,0 +1,12 @@
+
+\ include mcu specific file
+\ #require int-q.frt
+
+: critical[
+ r> int? >r >r \ keep the current state
+ -int
+;
+
+: ]critical
+ r> r> if +int then >r \ will crash if not matched
+;