summaryrefslogtreecommitdiff
path: root/src/red
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-05-23 14:53:53 -0500
committersanine-a <sanine.not@pm.me>2023-05-23 14:53:53 -0500
commit15323007750e0f0f7c36a6a6fa01ad1d303a4a16 (patch)
tree70835b4364299274dc0145af5cd41c5af05ae53b /src/red
parent29ed5eacb80cdfe49bff0d9335241dc3e2188981 (diff)
implement basic vm runner
Diffstat (limited to 'src/red')
-rw-r--r--src/red/coreclear.red9
-rw-r--r--src/red/wait.red5
2 files changed, 14 insertions, 0 deletions
diff --git a/src/red/coreclear.red b/src/red/coreclear.red
new file mode 100644
index 0000000..7b4d8bb
--- /dev/null
+++ b/src/red/coreclear.red
@@ -0,0 +1,9 @@
+; coreclear
+; like dwarf but bombs literally everything
+
+
+bomb dat #0, #2
+start add #1, bomb
+ mov bomb, @bomb
+ jmp start
+end start
diff --git a/src/red/wait.red b/src/red/wait.red
new file mode 100644
index 0000000..4c3c2c9
--- /dev/null
+++ b/src/red/wait.red
@@ -0,0 +1,5 @@
+; wait
+; does nothing
+
+wait jmp wait
+end