From: Ralph Ronnquist Date: Sat, 5 Jun 2021 10:53:34 +0000 (+1000) Subject: added .TEMP value rendering X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=765660a923a52e70f2ff09f8d0ec11a5c8596f64;p=rrq%2Frrqforth.git added .TEMP value rendering --- diff --git a/adoc/p_dot_temp.adoc b/adoc/p_dot_temp.adoc new file mode 100644 index 0000000..3e9575e --- /dev/null +++ b/adoc/p_dot_temp.adoc @@ -0,0 +1,17 @@ +// stdio.asm: WORD p_dot_temp,'.TEMP',fasm + +anchor:p_dot_temp[] + +=== Word: .TEMP + +.... +Data stack: ( v -- char* n ) +.... + +".TEMP" is a function word that renders a cell value as an integer +using the current <>, which is either +<> or <>. In <> +<>, a negative value is rendered as such with a leading +minus sign, whereas <> <> rendering is +unsigned. + diff --git a/reference.adoc b/reference.adoc index 35455e5..a45d496 100644 --- a/reference.adoc +++ b/reference.adoc @@ -99,6 +99,8 @@ include::adoc/p_dostring.adoc[] include::separator.adoc[] include::adoc/p_dot.adoc[] include::separator.adoc[] +include::adoc/p_dot_temp.adoc[] +include::separator.adoc[] include::adoc/p_double_quote.adoc[] include::separator.adoc[] include::adoc/p_dovalue.adoc[] diff --git a/wordindex.adoc b/wordindex.adoc index 24e98fe..7cbca39 100644 --- a/wordindex.adoc +++ b/wordindex.adoc @@ -152,6 +152,7 @@ xref:p_swap[SWAP] {nbsp} xref:p_system[SYSTEM] {nbsp} xref:p_tell[TELL] {nbsp} +xref:p_dot_temp[.TEMP] {nbsp} xref:p_terminate0[TERMINATE0] {nbsp} xref:p_tfa2cfa[TFA>CFA] {nbsp} xref:p_tfa2dfa[TFA>DFA] {nbsp}