Adding f.s and fix typo.
This commit is contained in:
@ -46,5 +46,7 @@ forth definitions internals
|
|||||||
|
|
||||||
: #fs ( r -- ) fdup f0< if fnegate #f+s [char] - hold else #f+s then ;
|
: #fs ( r -- ) fdup f0< if fnegate #f+s [char] - hold else #f+s then ;
|
||||||
: f. ( r -- ) <# #fs #> type space ;
|
: f. ( r -- ) <# #fs #> type space ;
|
||||||
|
: f.s ." <" fdepth n. ." > "
|
||||||
|
fdepth 0 max for aft fp@ r@ sfloats - sf@ f. then next ;
|
||||||
|
|
||||||
forth definitions
|
forth definitions
|
||||||
|
|||||||
@ -179,11 +179,13 @@ AFLITERAL ( r -- )
|
|||||||
FLITERAL ( r -- ) IMMEDIATE
|
FLITERAL ( r -- ) IMMEDIATE
|
||||||
|
|
||||||
FCONSTANT ( r "name" )
|
FCONSTANT ( r "name" )
|
||||||
FVARAIABLE ( "name" )
|
FVARIABLE ( "name" )
|
||||||
|
|
||||||
PI ( -- r )
|
PI ( -- r )
|
||||||
|
|
||||||
FSQRT ( r r -- r )
|
FSQRT ( r r -- r )
|
||||||
|
|
||||||
|
F.S ( -- ) Print float stack.
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h5>Locals</h5>
|
<h5>Locals</h5>
|
||||||
|
|||||||
Reference in New Issue
Block a user