| true DefaultValue interpreter |
true DefaultValue interpreter |
| true DefaultValue ITC |
true DefaultValue ITC |
| false DefaultValue rom |
false DefaultValue rom |
| |
false DefaultValue flash |
| true DefaultValue standardthreading |
true DefaultValue standardthreading |
| |
|
| \ ANSForth environment stuff |
\ ANSForth environment stuff |
| swap -rot bounds ?DO I c@ over X c! X char+ LOOP drop ; |
swap -rot bounds ?DO I c@ over X c! X char+ LOOP drop ; |
| |
|
| 2Variable last-string |
2Variable last-string |
| |
X has? rom [IF] $60 [ELSE] $00 [THEN] Constant header-masks |
| |
|
| |
: ht-header, ( addr count -- ) |
| |
dup there swap last-string 2! |
| |
dup header-masks or T c, H bounds ?DO I c@ T c, H LOOP ; |
| : ht-string, ( addr count -- ) |
: ht-string, ( addr count -- ) |
| dup there swap last-string 2! |
dup there swap last-string 2! |
| dup T c, H bounds ?DO I c@ T c, H LOOP ; |
dup T c, H bounds ?DO I c@ T c, H LOOP ; |
| |
|
| >TARGET |
>TARGET |
| X has? f83headerstring [IF] |
X has? f83headerstring [IF] |
| : name, ( "name" -- ) bl word count ht-string, X cfalign ; |
: name, ( "name" -- ) bl word count ht-header, X cfalign ; |
| [ELSE] |
[ELSE] |
| : name, ( "name" -- ) bl word count ht-lstring, X cfalign ; |
: name, ( "name" -- ) bl word count ht-lstring, X cfalign ; |
| [THEN] |
[THEN] |
| |
|
| >TARGET |
>TARGET |
| Cond: DOES> |
Cond: DOES> |
| T here 5 cells H + alit, compile (does>2) compile ;s |
T here H [ T has? peephole H [IF] ] 5 [ [ELSE] ] 4 [ [THEN] ] T cells |
| |
H + alit, compile (does>2) compile ;s |
| doeshandler, resolve-does>-part |
doeshandler, resolve-does>-part |
| ;Cond |
;Cond |
| |
|
| [ELSE] |
[ELSE] |
| Builder (Value) |
Builder (Value) |
| Build: ( n -- ) ;Build |
Build: ( n -- ) ;Build |
| by: :docon ( target-body-addr -- n ) T @ H ;DO |
by: :dovalue ( target-body-addr -- n ) T @ H ;DO |
| |
|
| Builder Value |
Builder Value |
| BuildSmart: T , H ;Build |
BuildSmart: T , H ;Build |
| : 2/ 2/ ; |
: 2/ 2/ ; |
| : hex. base @ $10 base ! swap . base ! ; |
: hex. base @ $10 base ! swap . base ! ; |
| : invert invert ; |
: invert invert ; |
| |
: linkstring ( addr u n addr -- ) |
| |
X here over X @ X , swap X ! X , ht-string, X align ; |
| \ : . . ; |
\ : . . ; |
| |
|
| : all-words ['] forced? IS skip? ; |
: all-words ['] forced? IS skip? ; |