From 074202db25f30590bc01762c618770d445a97532 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Thu, 31 Dec 2020 18:23:02 +0900 Subject: [PATCH] Fix "I" --- core.fs | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/core.fs b/core.fs index e44c62d..7927d5c 100644 --- a/core.fs +++ b/core.fs @@ -316,17 +316,20 @@ cM~ i, 'L, , 'e, l! \ The 2nd Stage Interpreter cI i, \ - 'W, \ read name from input - 'F, \ find word - 'G, \ Get CFA - 'M, '@, \ read state - 'J, k4k0-C*, \ goto if state=0 -\ - ',, - 'j, k0k9-C*, \ goto -\ - 'x, - 'j, k0k<-C*, \ goto + 'W, \ read name from input + 'F, \ find word + 'M, '@, \ read state + 'J, kAk0-C*, \ goto if state=0 +\ + '#, 'C, '+, '?, \ ( w len+flag ) + 'L, k@k@+, '&, \ test immediate bit + 'L, k0k0-, '=, + 'J, k5k0-C*, \ goto if immediate-bit=1 + 'G, ',, \ compile CFA + 'j, k0k;-C*, \ goto +\ + 'G, 'x, \ execute CFA + 'j, k0kI-C*, \ goto l! Q