HackRVA / Badge2017-docs

0 stars 3 forks source link

Issues With Forth Implementation #4

Open alflanagan opened 7 years ago

alflanagan commented 7 years ago

Goals for the Forth implementation (that it doesn't meet now):

  1. True restartability. Right now there seem to be a lot of problems with running a Forth program twice (bad results, badge restarts or dies).
  2. Better error handling! I want at least an error screen with code/short message. Things like using a Forth word that isn't found now result in a badge restart.
alflanagan commented 7 years ago

I've written/tested code for the error messages. I haven't worked all the way through the error handling in jonesforth.S and ForthUSB().

alflanagan commented 7 years ago

On error, the forth code writes a message to errBuffer (forth variable errBuf). As far as I can tell, nothing happens after that. The C code doesn't reference it.