diff options
author | Naren Ratan <narenratan@gmail.com> | 2019-11-19 00:19:36 +0000 |
---|---|---|
committer | Naren Ratan <narenratan@gmail.com> | 2019-11-19 00:19:36 +0000 |
commit | cb51cf13682476f5afe91c638bef7e50c232d117 (patch) | |
tree | 823e79245848a2ec04d78531a1e550629cd4c27b | |
parent | 42e5cd7e9339d6437989f19a0534fd315e007007 (diff) | |
download | jonesforth_arm64_apl-cb51cf13682476f5afe91c638bef7e50c232d117.tar.gz |
Add H" for storing a string Here
-rw-r--r-- | jonesforth.f | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jonesforth.f b/jonesforth.f index 0d45f84..51d63e7 100644 --- a/jonesforth.f +++ b/jonesforth.f @@ -59,6 +59,7 @@ ∇ CLEAR D0 D! ∇ / Clear stack / / Strings / +∇ H" H ( KEY ↑ '"' ≠ ∥ ⊤ C! 1+ ) ↓ 0 ⊤ ! H - H ↕ ∇ / Store a string Here / ∇ S" I ' LITS , H 0 , ( KEY ↑ '"' ≠ ∥ C, ) ↓ ↑ H ↕ - 8- ↕ ! 0 C, ALIGN ∇ / Compile a string in a word / ∇ ." I S { [COMP] S" ' TELL , | ( KEY ↑ '"' ≠ ∥ EMIT ) ↓ } ∇ / Print a string / @@ -182,7 +183,7 @@ SS0 SS ! / Initialize SS ∇ ⍇ 3F 3 SYS ∇ / read / ∇ ⍈ 40 3 SYS ∇ / write / -∇ ⍐ 64 ¯ 38 4 SYS ∇ / open / +∇ ⍐ 64 ¯ 38 3 SYS ∇ / open / ∇ ⍗ 39 1 SYS ∇ / close / ∇ UNAME A0 1 SYS ∇ |