SamCoVT / TaliForth2

A Subroutine Threaded Code (STC) ANSI-like Forth for the 65c02
Other
29 stars 5 forks source link

Update error message for invalid numbers #29

Closed SamCoVT closed 5 months ago

SamCoVT commented 7 months ago

When NUMBER is passed an invalid number, it currently prints the error string es_syntax, which says:

es_syntax:      .text "Undefined word", 0

This makes sense when NUMBER is being called by INTERPRET (as the word was not found in the dictionary and now NUMBER is having trouble turning it into a number). It doesn't make sense when NUMBER is being used on its own.

Change the message to "Undefined word or invalid number" to cover both cases.