Fixed up bterm to work on tighter devices.

Added way to RELINQUISH part of the forth heap.
key? for bluetooth serial.
This commit is contained in:
Brad Nelson
2022-09-04 14:39:28 -07:00
parent b4437658bf
commit 17a8dbbf59
4 changed files with 27 additions and 11 deletions

View File

@ -28,6 +28,11 @@ internals definitions
( Print address line leaving room )
: dump-line ( a -- a ) cr <# #s #> 20 over - >r type r> spaces ;
( Semi-dangerous word to trim down the system heap )
DEFINED? realloc [IF]
: relinquish ( n -- ) negate 'heap-size +! 'heap-start @ 'heap-size @ realloc drop ;
[THEN]
forth definitions internals
( Examine Memory )