aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-05-17 08:38:47 +0100
committerIan C <ianc@noddybox.co.uk>2016-05-17 08:38:47 +0100
commit393556d2fc70dc0def5a6bb0463daf234ef23e36 (patch)
treeffeac76300a03bb6e4e34479d11ec2a64afcacfd /doc
parent34eab58c9a01b90beb0ce23a2a0f6c2156e8d4fd (diff)
Added support for 24 bit address labels.
* Also fixes bug where bank wasn't reset between passes.
Diffstat (limited to 'doc')
-rw-r--r--doc/casm.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/casm.html b/doc/casm.html
index 2e95ccc..7696136 100644
--- a/doc/casm.html
+++ b/doc/casm.html
@@ -454,6 +454,41 @@ word<br>
</table>
+<h2>Options</h2>
+
+<p>The core of CASM supports the following options that can be set via the
+<b>option</b> command.
+</p>
+
+<table>
+
+<thead><tr><td class="head">Option</td>
+<td class="head">Description</td></tr></thead>
+
+<tr><td class="cmd">
+option address24, &lt;on|off&gt;
+</td>
+<td class="def">
+Controls whether addresses have the current bank set in the high word, e.g.
+
+<pre class="codeblock">
+ org $8000
+ bank 7
+
+ option +address24
+label1: ; Label1 == $078000
+
+ option -address24
+label2: ; Label2 == $8000
+</pre>
+
+Note that the name is rather misleading; bank numbers are allowed to be greater
+than 256.
+
+</td></tr>
+
+</table>
+
<h2>Expressions</h2>
<p>In any of the directives above, where a value is defined, an expression can