mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
24 lines
1.0 KiB
HTML
24 lines
1.0 KiB
HTML
<!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:surfsmurf@matilde.demon.co.uk">Carsten Sorensen</a></p>
|
||
</body>
|
||
</html>
|