misc/kforth: Add system status, work on vocab, better write_num.
- Now system structure includes a status variable and an associated function for writing the status out. - Adding more words to the builtin dictionary. - write_num round 3. - Include option to not print the stack each iteration.
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include <stdint.h>
|
||||
|
||||
typedef int32_t KF_INT;
|
||||
typedef int64_t KF_LONG;
|
||||
|
||||
constexpr uint8_t STACK_SIZE = 128;
|
||||
|
||||
#endif
|
||||
@@ -17,6 +17,8 @@ public:
|
||||
// Line I/O
|
||||
bool rdln(char *buf, size_t len, size_t *readlen);
|
||||
void wrln(char *buf, size_t len);
|
||||
|
||||
void newline(void) { this->wrch('\n'); };
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user