aboutsummaryrefslogtreecommitdiffstats
path: root/forth/hal.fth
diff options
context:
space:
mode:
Diffstat (limited to 'forth/hal.fth')
-rw-r--r--forth/hal.fth16
1 files changed, 16 insertions, 0 deletions
diff --git a/forth/hal.fth b/forth/hal.fth
new file mode 100644
index 0000000..99835ca
--- /dev/null
+++ b/forth/hal.fth
@@ -0,0 +1,16 @@
+1 constant bit0
+2 constant bit1
+4 constant bit2
+8 constant bit3
+16 constant bit4
+32 constant bit5
+64 constant bit6
+128 constant bit7
+
+1 constant port1
+2 constant port2
+3 constant port3
+4 constant port4
+5 constant port5
+
+: pindef