aboutsummaryrefslogtreecommitdiff
path: root/src/e.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-09-02 16:43:08 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-09-02 17:02:34 -0400
commit558952fff55813c1ce119ef0eb9292c2bd6c1c22 (patch)
treec22ef15a88baaaf556f4ba9b0452c4edf911efcf /src/e.bqn
parente4502e5bb5458ee24388c14b5c691ea297890d95 (diff)
Update explainer (and recompile plot) with new opcodes
Diffstat (limited to 'src/e.bqn')
-rw-r--r--src/e.bqn11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/e.bqn b/src/e.bqn
index 74697dd3..fc8ce8a5 100644
--- a/src/e.bqn
+++ b/src/e.bqn
@@ -38,11 +38,12 @@ escchars ← """&<>" ⋄ escapes ← ("&"∾∾⟜";")¨"quot"‿"amp"‿"lt"‿
Explain ← {
b‿const‿blk‿bdy‿(i‿e)‿tok ← 𝕨
- ba‿bc‿bo‿bp ← '0'-˜⟨ # For each instruction, number of:
- "11111000000000010000022000111012" # Arguments
- "000//232323223102303200121111100" # Stack values consumed
- "11111111111111011101111110111011" # Stack values output
- "00000110111001001101000100000000" # Position determiner
+ ba‿bc‿bo‿bp ← (⊏/¨1⊸↓)'0'-˜⟨ # For each instruction, number of:
+ "1141131411111113114114144111>111" # Codes until next opcode
+ "11100011000000000002221100000111" # Arguments
+ "000111//232323032320000012223111" # Stack values consumed
+ "11100011111111011111111111111111" # Stack values output
+ "00000000111111010100000010001000" # Position determiner
m ← { # Mask of instruction starts
n ← (↕≠b)+1+ba(⊣⊏˜≠⊸>×⊢)b