diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2023-02-26 19:31:00 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2023-02-26 19:31:00 -0500 |
commit | c5db61d59fd75b786bd3e5a57a163d37df20a8b9 (patch) | |
tree | 74d00b7f264c9f9ef287a36f602cf8ce06450ea3 /core.fth | |
parent | 42d64c6da242bd100533ab0c31c3835b50fa1b2d (diff) |
packed literals; faster execution
Diffstat (limited to 'core.fth')
-rw-r--r-- | core.fth | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,7 +19,7 @@ : here 1 cells @ ; : allot 1 cells +! ; : _latest 2 cells ; -: imm _latest @ dup @ 1 5 << | swap ! ; +: imm _latest @ dup @ 1 6 << | swap ! ; : state 3 cells ; : postpone 1 4 cells ! ; imm : _input 5 cells ; @@ -46,7 +46,7 @@ : decimal 10 base ! ; : hex 16 base ! ; -: literal 0 , , ; imm +: literal 1 , , ; imm : ['] ' postpone literal ; imm : [ 0 state ! ; imm : ] 1 state ! ; @@ -151,7 +151,7 @@ : create align here bl word count nip cell+ allot align ['] _lit , here 3 cells + , ['] exit dup , , - dup @ 31 & over _latest @ - 6 << or over ! _latest ! ; + dup @ 31 & over _latest @ - 7 << or over ! _latest ! ; : _latword _latest @ dup @ 31 & + cell+ aligned ; : _does> _latword 2 cells + |