zeroflag / punyforth

Forth inspired programming language for the ESP8266
Other
411 stars 43 forks source link

Fix error in "]" word, when suspending compile mode #68

Closed luisarrisan closed 3 years ago

luisarrisan commented 3 years ago

https://github.com/zeroflag/punyforth/blob/32a30163e3defaf231a286bcb56a430b8078996a/generic/words.S#L432

The referenced line causes trying to compile this word to crash punyforth (esp8266).:

: test:[ 1 if [ 60 5 + ] literal then ;

zeroflag commented 3 years ago

Nice catch @luisarrisan, thank you

zeroflag commented 3 years ago

I'm going to build a new binary for the esp8266 later.

luisarrisan commented 3 years ago

Thank you Attila!!!.

Right now I don't have the build environment setup... had to test it by "hand-editing" the binary (replacing the two xt_nip tokens with xt_drop ones).