shithub: rgbds

ref: 97a31c8fc07e419b783cc2610251acb4856adc43
dir: /doc/asm/syntax.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 Syntax</title>
        <link rel="stylesheet" type="text/css" href="../style.css">
</head>

<body>
<h1>xAsm Syntax</h1>
<p>The syntax line‐based, just as in any other assembler. Meaning that you do one instruction or pseudo‐op per line:</p>
<pre>[label] [instruction] [;comment]</pre>
<p>Example:</p>
<pre>John:          ld   a,87 ;Weee</pre>
<p>A comment can also be an asterisk (*) followed by the comment if the asterisk is the first character on the line:</p>
<pre>********************************
* These are full line comments *
********************************</pre>
<p>All pseudo‐ops, mnemonics and registers (reserved keywords) are <em>case‐insensitive</em> and all labels are <em>case‐sensitive</em>.</p>
<hr>
<p>Last updated 21 June 1997 by <a href="mailto:[email protected]">Carsten Sorensen</a></p>
</body>
</html>