shithub: rgbds

ref: db54c2ebd6572fc1a14b1b7d4e41438215390591
dir: /doc/asm/print.htm/

View raw version
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>xAsm PRINTT, PRINTV, PRINTF</title>
        <link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>PRINTT, PRINTV, PRINTF</h1>
<p>These  three  instructions  type  text and  values  to stdout. Useful for debugging macros or wherever you may feel the need to tell yourself some important information.</p>
<pre>PRINTT    "I'm the greatest programmer in the whole wide world\n"
PRINTV    (2+3)/5
PRINTF    MUL(3.14,3987.0)</pre>
<ul>
	<li><dfn>PRINTT</dfn> prints out a string</li>
	<li><dfn>PRINTV</dfn> prints out an integer value or, as in the example, the result of a calculation. Unsurprisingly you can also print out a <a href="symbols.htm">constant symbols</a> value</li>
	<li><dfn>PRINTF</dfn> prints out a fixed point value.</li>
</ul>

<h1>See also:</h1>
<ul>
	<li><a href="asm/expr_int.htm">Integer and Boolean expressions</a>
	<li><a href="asm/expr_fix.htm">Fixed-point expressions and functions</a>
	<li><a href="asm/expr_str.htm">String expressions, functions and formatting</a>
</ul>
<hr>
<p>Last updated 21 June 1997 by <a href="mailto:[email protected]">Carsten Sorensen</a></p>
</body>
</html>