X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=adoc%2Fp_base.adoc;h=a8748b71fdb63ef957ba9c5d89418df388477b68;hb=ef492db3b89ae7e0fe6317d3a1d0e727c28bf8ca;hp=43c2e9e52c21a4e6be374843d72774e56516817c;hpb=b7da3f7bbd1cb10241163abdb950472e539e796d;p=rrq%2Frrqforth.git diff --git a/adoc/p_base.adoc b/adoc/p_base.adoc index 43c2e9e..a8748b7 100644 --- a/adoc/p_base.adoc +++ b/adoc/p_base.adoc @@ -1,8 +1,19 @@ -Word: BASE ----------- +// compile.asm: WORD p_base,'BASE',dovariable anchor:p_base[] ----- -compile.asm: WORD p_base,'BASE',dovariable ----- +=== Word: BASE + +.... +Data stack: ( -- a ) +.... + +"BASE" is a variable word for the numerical base used by input and +output functions, <> and <>, when +translating numbers between cell value form and text form. The +numerical base is set to 10 or 16 by <> and +<> respectively, and those are the only two bases currently +supported. + +See also <>, which holds the mapping table from +digits to text.