<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=Z80%3ADirectives%3AASCIIMAP</id>
	<title>Z80:Directives:ASCIIMAP - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=Z80%3ADirectives%3AASCIIMAP"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Directives:ASCIIMAP&amp;action=history"/>
	<updated>2026-06-01T04:49:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=Z80:Directives:ASCIIMAP&amp;diff=186&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Directives:ASCIIMAP&amp;diff=186&amp;oldid=prev"/>
		<updated>2016-02-05T16:57:50Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Defines an ASCII mapping table. In English, this is a special table that can be used to translate strings from the ASCII you&amp;#039;re dealing with on your PC to any special variations on the theme on the Z80 device you are assembling to. For example, the TI-83 Plus calculator has a θ symbol where the &amp;#039;[&amp;#039; is normally. Using an ASCII mapping table, you could automatically make any strings defined using the .asc directive handle this oddity. Another possibility would be a font where A-Z is actually 0-25 rather than the usual 65-90.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
    .asciimap start, [end], rule&lt;br /&gt;
&lt;br /&gt;
=== Allowed inputs ===&lt;br /&gt;
&lt;br /&gt;
The first two arguments define the range of characters you are translating, inclusive. You can miss out the second one if you are only redefining a single character. The final argument is a special rule telling Brass how to perform the translation. It is a standard expression, where the special code {*} specifies the current character being translated. Here are a couple of examples:&lt;br /&gt;
&lt;br /&gt;
    .asciimap &amp;#039;a&amp;#039;, &amp;#039;z&amp;#039;, {*}+(&amp;#039;A&amp;#039;-&amp;#039;a&amp;#039;)   ; Force all strings UPPERCASE&lt;br /&gt;
    .asciimap $00, $FF, {*}             ; Reset to standard mapping&lt;br /&gt;
    .asciimap &amp;#039; &amp;#039;, &amp;#039;_&amp;#039;                  ; Turn spaces into underscores&lt;br /&gt;
    .asciimap &amp;#039;A&amp;#039;, &amp;#039;Z&amp;#039;, {*}+1           ; Make each letter in the range A⇒Z one bigger (A→B, B→C &amp;amp;c)&lt;br /&gt;
    .asciimap 128, 255, {*}&amp;amp;%01111111   ; Clear the most significant bit (limit to 7-bit ASCII).&lt;br /&gt;
&lt;br /&gt;
== Uses ==&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
[[Category:Z80 Assembly]]&lt;br /&gt;
[[Category:Z80 Heaven]]&lt;br /&gt;
[[Category:Z80 Directives]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>