-

差分

移動先: 案内検索

Z80 Assembler Reference Manual

361 バイト追加, 2017年8月16日 (水) 20:58
アセンブラディレクティブ
|}
== Assembler Directives アセンブラディレクティブ==
An assembler directive is a line in the source file which produces no code, but rather which modifies the behaviour of the assembler. Each directive is recognized by the presence of an asterisk in the first column of the line, followed immediately by a word, only the first character of which is looked at. the line containing the directive itself is never listed. The directives are:アセンブラディレクティブはソースファイルにおける行で、これはコードを生成せず、むしろアセンブラの振る舞いを変えます。 どのディレクティブも行の初めのカラムにアスタリスクがつくのでわかります。これは単語のすぐあとにつき、最初の文字のみを見ます。 ディレクティブ自体を含む行はリスト化されません。ディレクティブは以下の通りです
;<nowiki>*Title</nowiki>
:Use the text following the directive as a title for the listing.このディレクティブ後続する行をリスティングのタイトルとして使います。
;<nowiki>*Heading</nowiki>
:Use the text following the directive as a subtitle for the listing; also causes an このディレクティブに続く行をリスティングのサブタイトルとして使います。*Eject.Ejectにも影響します。
;<nowiki>*List</nowiki>
:May be followed by ON or OFF to turn listing on or off respectively. Note that this directive may be used inside a macro or include file to control listing of that macro or include file. The previous listing state will be restored on exit from the macro or include file.ONやOFFを後に伴い、リストをそれぞれオンオフします。このディレクティブはマクロの内部や、そのマクロやインクルードファイルをコントロールするインクルードファイルでも使われる可能性があります。:以前のリスティング状態はマクロやインクルードファイルから戻った時に回復されます。
;<nowiki>*Include</nowiki>
:The file named following the directive will be included in the assembly at that point.ディレクティブに後続するファイル名が、この時点でアセンブラにインクルードされます。
;<nowiki>*Eject</nowiki>
:A new page will be started in the listing at that point. A form feed character in the source will have the same effect.新しいページをこの時点で開始します。ソースのフォームフィールド文字も同じ効果を持ちます。
Some examples of the use of these directives:これらのディレクティブのいくつかの例を挙げます。
*Title Widget Control Program
*Title Widget Control Program
*Heading Initialization Phase
*Include widget.i
 
 
== Diagnostics ==

案内メニュー