about summary refs log tree commit diff
path: root/historical/describe-data.sed
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-10-05 01:58:58 -0700
committerIrene Knapp <ireneista@irenes.space>2026-10-05 01:58:58 -0700
commite889b122cee2eb60cd1577c22560c8918b30d749 (patch)
tree1c45bc3869657e4f1b5b6f551bd815b07db86897 /historical/describe-data.sed
parent7acba568178af4048135a858a7ca9c6fb9c00520 (diff)
move around a bunch of the files that aren't actually in use
to better describe their status

Force-Push: yes
Change-Id: If5ef70b7872700ff36ef07f20aac1f3b991dff45
Diffstat (limited to 'historical/describe-data.sed')
-rw-r--r--historical/describe-data.sed49
1 files changed, 49 insertions, 0 deletions
diff --git a/historical/describe-data.sed b/historical/describe-data.sed
new file mode 100644
index 0000000..77f3d8e
--- /dev/null
+++ b/historical/describe-data.sed
@@ -0,0 +1,49 @@
+# ./quine | sed -f describe-data.sed > data.txt
+
+:start
+/0000000008/!d
+/^0000000008/bmain
+bstart
+
+:main
+n
+
+s/_/-/g
+s/\<roll3\>/3roll/g
+s/\<unroll3\>/3unroll/g
+s/\<dup2\>/2dup/g
+s/\<drop2\>/2drop/g
+s/^zbranch\>/0branch/g
+s/\([^"]\)\<zbranch\>/\10branch/g
+s/\<eq\>/=/g
+s/\<ne\>/!=/g
+s/\<gt\>/>/g
+s/\<lt\>/</g
+s/\<ge\>/>=/g
+s/\<le\>/<=/g
+s/\([^a-z]\)-unsigned\>/\1unsigned/g
+s/\<divmod\>\([^-]\)/\/%\1/g
+s/\<mul\>\([^-]\)/*\1/g
+s/\<sub\>\([^-]\)/-\1/g
+s/\<add\>\([^-]\)/+\1/g
+s/\<\([er][acdb]x\)\>/:\1/g
+s/\<\([er]\?\([sb]p\|[sd]i\)\)\>/:\1/g
+s/\<\([acdb][lhx]\)\>/:\1/g
+s/\<\(r[89]\|r1[0-5]\)\>/:\1/g
+s/\([^-]\)\<cc-/\1:cc-/g
+s/^cc-/:cc-/g
+s/\<fetch\(8\|16\|32\|64\)\>/\1@/g
+s/\<store\(8\|16\|32\|64\)\>/\1!/g
+s/\<addstore\>/+!/g
+s/\<substore\>/-!/g
+s/\<fetch-value-stack\>/value@/g
+s/\<store-value-stack\>/value!/g
+s/\<fetch-control-stack\>/control@/g
+s/\<store-control-stack\>/control!/g
+s/\<fetch-entry-flags\>/entry-flags@/g
+s/\<store-entry-flags\>/entry-flags!/g
+s/\<fetch\>/@/g
+s/\<store\>/!/g
+
+bmain
+