implement pictured numbers

This commit is contained in:
2021-11-21 11:20:59 +01:00
parent 9b7f780d91
commit 5600c4d106
6 changed files with 145 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@
#define HEAP_END (HEAP_SIZE - WORDBUF_SIZE - INPUT_BUFFER_SIZE)
#define WORDBUF_ADDR HEAP_END
#define WORDBUF_LASTCHAR_ADDR (WORDBUF_ADDR + WORDBUF_SIZE - 1)
#define INPUTBUF_ADDR (HEAP_END + WORDBUF_SIZE)
// SFR and magic addresses are "negative"
+1
View File
@@ -28,6 +28,7 @@ enum fh_error {
FH_ERR_ARITH,
FH_ERR_SYNTAX,
FH_ERR_NOT_APPLICABLE,
FH_ERR_PICTNUM_FULL,
FH_ERR_MAX,
};
+3
View File
@@ -176,6 +176,9 @@ struct fh_thread_s {
/** Address of the last dict word */
uint32_t dict_last;
/** Pictured numeric output buffer write cursor (used for prepend) */
uint32_t pictnumptr;
/** Input buffer parse position */
uint32_t inputptr;
/** Input buffer total content size */