1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<html> 3<!-- This file documents the GNU Assembler "as". 4 5Copyright (C) 1991-2021 Free Software Foundation, Inc. 6 7Permission is granted to copy, distribute and/or modify this document 8under the terms of the GNU Free Documentation License, Version 1.3 9or any later version published by the Free Software Foundation; 10with no Invariant Sections, with no Front-Cover Texts, and with no 11Back-Cover Texts. A copy of the license is included in the 12section entitled "GNU Free Documentation License". 13 --> 14<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ --> 15<head> 16<title>Using as: Z8000 Directives</title> 17 18<meta name="description" content="Using as: Z8000 Directives"> 19<meta name="keywords" content="Using as: Z8000 Directives"> 20<meta name="resource-type" content="document"> 21<meta name="distribution" content="global"> 22<meta name="Generator" content="makeinfo"> 23<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 24<link href="index.html#Top" rel="start" title="Top"> 25<link href="AS-Index.html#AS-Index" rel="index" title="AS Index"> 26<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> 27<link href="Z8000_002dDependent.html#Z8000_002dDependent" rel="up" title="Z8000-Dependent"> 28<link href="Z8000-Opcodes.html#Z8000-Opcodes" rel="next" title="Z8000 Opcodes"> 29<link href="Z8000_002dAddressing.html#Z8000_002dAddressing" rel="previous" title="Z8000-Addressing"> 30<style type="text/css"> 31<!-- 32a.summary-letter {text-decoration: none} 33blockquote.smallquotation {font-size: smaller} 34div.display {margin-left: 3.2em} 35div.example {margin-left: 3.2em} 36div.indentedblock {margin-left: 3.2em} 37div.lisp {margin-left: 3.2em} 38div.smalldisplay {margin-left: 3.2em} 39div.smallexample {margin-left: 3.2em} 40div.smallindentedblock {margin-left: 3.2em; font-size: smaller} 41div.smalllisp {margin-left: 3.2em} 42kbd {font-style:oblique} 43pre.display {font-family: inherit} 44pre.format {font-family: inherit} 45pre.menu-comment {font-family: serif} 46pre.menu-preformatted {font-family: serif} 47pre.smalldisplay {font-family: inherit; font-size: smaller} 48pre.smallexample {font-size: smaller} 49pre.smallformat {font-family: inherit; font-size: smaller} 50pre.smalllisp {font-size: smaller} 51span.nocodebreak {white-space:nowrap} 52span.nolinebreak {white-space:nowrap} 53span.roman {font-family:serif; font-weight:normal} 54span.sansserif {font-family:sans-serif; font-weight:normal} 55ul.no-bullet {list-style: none} 56--> 57</style> 58 59 60</head> 61 62<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> 63<a name="Z8000-Directives"></a> 64<div class="header"> 65<p> 66Next: <a href="Z8000-Opcodes.html#Z8000-Opcodes" accesskey="n" rel="next">Z8000 Opcodes</a>, Previous: <a href="Z8000-Syntax.html#Z8000-Syntax" accesskey="p" rel="previous">Z8000 Syntax</a>, Up: <a href="Z8000_002dDependent.html#Z8000_002dDependent" accesskey="u" rel="up">Z8000-Dependent</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p> 67</div> 68<hr> 69<a name="Assembler-Directives-for-the-Z8000"></a> 70<h4 class="subsection">9.57.3 Assembler Directives for the Z8000</h4> 71 72<a name="index-Z8000-directives"></a> 73<a name="index-directives_002c-Z8000"></a> 74<p>The Z8000 port of as includes additional assembler directives, 75for compatibility with other Z8000 assemblers. These do not begin with 76‘<samp>.</samp>’ (unlike the ordinary as directives). 77</p> 78<dl compact="compact"> 79<dd><a name="index-segm"></a> 80</dd> 81<dt><code>segm</code></dt> 82<dd><a name="index-_002ez8001"></a> 83</dd> 84<dt><code>.z8001</code></dt> 85<dd><p>Generate code for the segmented Z8001. 86</p> 87<a name="index-unsegm"></a> 88</dd> 89<dt><code>unsegm</code></dt> 90<dd><a name="index-_002ez8002"></a> 91</dd> 92<dt><code>.z8002</code></dt> 93<dd><p>Generate code for the unsegmented Z8002. 94</p> 95<a name="index-name"></a> 96</dd> 97<dt><code>name</code></dt> 98<dd><p>Synonym for <code>.file</code> 99</p> 100<a name="index-global"></a> 101</dd> 102<dt><code>global</code></dt> 103<dd><p>Synonym for <code>.global</code> 104</p> 105<a name="index-wval"></a> 106</dd> 107<dt><code>wval</code></dt> 108<dd><p>Synonym for <code>.word</code> 109</p> 110<a name="index-lval"></a> 111</dd> 112<dt><code>lval</code></dt> 113<dd><p>Synonym for <code>.long</code> 114</p> 115<a name="index-bval"></a> 116</dd> 117<dt><code>bval</code></dt> 118<dd><p>Synonym for <code>.byte</code> 119</p> 120<a name="index-sval"></a> 121</dd> 122<dt><code>sval</code></dt> 123<dd><p>Assemble a string. <code>sval</code> expects one string literal, delimited by 124single quotes. It assembles each byte of the string into consecutive 125addresses. You can use the escape sequence ‘<samp>%<var>xx</var></samp>’ (where 126<var>xx</var> represents a two-digit hexadecimal number) to represent the 127character whose <small>ASCII</small> value is <var>xx</var>. Use this feature to 128describe single quote and other characters that may not appear in string 129literals as themselves. For example, the C statement ‘<samp>char *a = "he said \"it's 50% off\"";</samp>’<!-- /@w --> is represented in Z8000 assembly language 130(shown with the assembler output in hex at the left) as 131</p> 132<div class="smallexample"> 133<pre class="smallexample">68652073 sval 'he said %22it%27s 50%25 off%22%00' 13461696420 13522697427 13673203530 13725206F66 138662200 139</pre></div> 140 141<a name="index-rsect"></a> 142</dd> 143<dt><code>rsect</code></dt> 144<dd><p>synonym for <code>.section</code> 145</p> 146<a name="index-block"></a> 147</dd> 148<dt><code>block</code></dt> 149<dd><p>synonym for <code>.space</code> 150</p> 151<a name="index-even"></a> 152</dd> 153<dt><code>even</code></dt> 154<dd><p>special case of <code>.align</code>; aligns output to even byte boundary. 155</p></dd> 156</dl> 157 158 159 160 161</body> 162</html> 163