zuloloxi / mecrisp-ice

http://mecrisp.sourceforge.net/ Mecrisp-Ice is an enhanced version of Swapforth and the J1a stack processor by James Bowman, featuring three MSP430 style IO ports, a tick counter, constant folding, inlining and tail-call optimisations
BSD 3-Clause "New" or "Revised" License
28 stars 4 forks source link

hex reverts to decimal output #3

Open helmick43270 opened 3 years ago

helmick43270 commented 3 years ago

Hello, @zuloloxi , this j1a bitstream is amazing! It works on my Lattice IceStick. I loaded it with the icestorm tool. I've just been poking around, learning about Forth and admiring the fact that somebody could fit a processor on an IceStick and still have room left for an app or two, and use the SPI flash as well. I am having a blast! I found an idiosyncrasy, and now that I know about it, I can work around it easily, and maybe someone else can benefit from the info. If I use the word hex so that the output of numbers is in hexadecimal, and then I use the word see to look for a word not in the dictionary, the output of numbers will revert to decimal. It does not happen if I use see for a word that is in the dictionary. No big deal as long as we know what will happen.

helmick43270 commented 3 years ago

It's also possible that j1a, as small as it is, could very likely have many loose ends where someone could at any moment experience an unpredictable outcome. Thus the warning in the readme, HIC SUNT DRACONES.