added .TEMP value rendering
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Sat, 5 Jun 2021 10:53:34 +0000 (20:53 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Sat, 5 Jun 2021 10:53:34 +0000 (20:53 +1000)
adoc/p_dot_temp.adoc [new file with mode: 0644]
reference.adoc
wordindex.adoc

diff --git a/adoc/p_dot_temp.adoc b/adoc/p_dot_temp.adoc
new file mode 100644 (file)
index 0000000..3e9575e
--- /dev/null
@@ -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 <<p_base,BASE>>, which is either
+<<p_decimal,DECIMAL>> or <<p_hex,HEX>>. In <<p_decimal,DECIMAL>>
+<<p_base,BASE>>, a negative value is rendered as such with a leading
+minus sign, whereas <<p_hex,HEX>> <<p_base,BASE>> rendering is
+unsigned.
+
index 35455e56f5c3c07a063006a722605a6ba9b89ef6..a45d496d1d7f59b1bd10597958fe643c294f0006 100644 (file)
@@ -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[]
index 24e98febd4cfc73c82744fb4ec147e95d5c817cd..7cbca39ea7c224f2994691f0211a7cb37eb29091 100644 (file)
@@ -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}