-

差分

移動先: 案内検索

Z80 Assembler Reference Manual

1,156 バイト追加, 2017年8月17日 (木) 06:44
使用法
Z180プロセッサ用に追加されたオプコードも許容します。
== Usage 使用法==
The assembler is named zas, and is invoked as follows:アセンブラはZASという名前で、次のように指定されます。
ZAS options files ...
このファイルは一つ、もしくはそれ以上のアセンブル対象となるアセンブラソースファイルですが、注意すべきなのは、すべてのファイルが一つのファイルとしてアセンブルされることです。個別のファイルにはなりません。The files are one or more assembler source files whichwill be assembled, but note that all the files are assembledas one, not as separate files. To assemble separate files,the assembler must be invoked on each file separately. Theoptions are zero or more options from the following list:個別のファイルにアセンブルするには、アセンブラがそれぞれのファイルに個別に指定されなければいけません。オプションは0個もしくはそれ以上んも次のオプションからなります。
;-N
:Ignore arithmetic overflow in expressions. The expressionの算術的なオーバーフローを無視します。-N option suppresses the normal check for arithmetic overflow. The assembler follows the "Z80 Assembly Language Handbook" in its treatment of overflow, and in certain instances this can lead to an error where in fact the expression does evaluate to what the user intended. This option may be used to override the overflow checking.Nオプションは算術的オーバーフローを抑制します。アセンブラはオーバーフローの扱いにおいて「Z80アセンブリ言語ハンドブック」に従います。またある種のインスタンスにおいて、これはユーザーが意図していたものを実際に評価し、エラーとなります。このオプションはオーバーフローチェックのオプションを上書きするために使われます。
;-J
:Attempt to optimize jumps to branches. The 分岐ジャンプを最適化しようとします。-J option will request the assembler to attempt to assemble jumps and conditional jumps as relative branches where possible. Only those conditional jumps with branch equivalents will be optimized, and jumps will only be optimized to branches where the target is in branch range. Note that the use of this option slows the assembly down, due to the necessity for the assembler to make an additional pass over the input code.Jオプションはアセンブラに対してジャンプと条件ジャンプを、可能な部分であれば相対分岐としてアセンブルするようにリクエストします。分岐の等価物を持つこれらの条件ジャンプのみが最適化されます。ジャンプはターゲットが分岐の範囲内にある分岐のみが最適化されます。これはアセンブラに対して入力されたコードをパスに追加する必要があるため?このオプションの使用はアセンブルの速度を低下させます。
;-U
:Treat undefined symbols as external. The 未定義のシンボルを外部関数として扱います。-U option will suppress error messages relating to undefined symbols. Such symbols are treated as externals in any case. The use of this option will not alter the object code generated, but merely serves to suppress the error messages.Uオプションは未定義のシンボルに関するエラーメッセージを抑制します。このようなシンボルはどんな場合であっても、外部関数として扱われます。このオプションの使用は生成されたオブジェクトを変更しませんが、エラーメッセージの抑制をおこしません??
;-Ofile
:オブジェクトコードをファイル内に配置します。デフォルトオブジェクトファイル名は最初のソースファイル名から構築されます。ファイル名の中の拡張子やファイルの型(つまり、"."よりも右側)が切り取られ、拡張子.objが追加されます。そのため、以下のコマンド
;-O<strong>file</strong>:Place the object code in <strong>file</strong>. The default object file name is constructed from the name of the first source file. Any suffix or ZAS file type (i.e. anything following the rightmost dot ('.') in the name is stripped, and the suffix .obj appendedas file2. Thus the commandz80
ZAS file1.as file2.z80 :will produce an object file called file1はfile1.obj. The use of the objというオブジェクトファイルを生成します。-O option will override this default convention, allowing the object file to be arbitrarily named. For example:Oオプションの使用はこのデフォルトの便利さを上書きし、オブジェクトファイルに任意の名前をつけることを許容します。たとえば
ZAS -ox.obj file1.obj
:will place the object code in x.obj.objのオブジェクトコードの中にオブジェクトコードが配置されます。
;-L<strong>list</strong>
アセンブラのリスティングをlistファイルに置くか、listがnullの場合はリストファイルが-Lオプションで作成されます。:Place an assembly listing in the file もし、ファイル名がこのオプションに与えられると、その名前でリストファイルが作成され、それ以外の場合、リスティングは標準出力(つまりコンソールへ)書き出されます。 <strongnowiki>listCON:</strongnowiki>, or on standard output if <strongnowiki>listLST:</strongnowiki> is null A listfile may be produced with the -L option. If a file name is supplied to the option, the list file will be created with that name, otherwise the listing will be written to standard output (i.e. the console). List file names such as CON: and LST: are acceptable.といったファイル名が使えます。
;-W<strong>width</strong>
:The listing is to be formatted for a printer of given このリスティングはプリンタを与えられた<strong>width</strong> The の幅でフォーマットします。-W option specifies the width to which the listing is to be formatted. E.g.Wオプションはリスティングがどれくらいの幅にするか、指定するオプションです。
ZAS -Llst: -W80 x.as
:will output a listing formatted for an 80 column printer to the list device.これはlistデバイス80カラム用にリスティングを整形してアウトプットします。
;-C
:This options requests ZAS to produce cross reference information in a file. The file will be called このオプションはZASに対し、クロスリファレンス情報を書くリクエストをします。 :このファイルは<strong>xxx</strong>.crf where crfと呼ばれ、<strong>xxx</strong> is the base part of the first source file name. It will then be necessary to run the CREF utility to turn this information into a formatted listing.は最初のソースファイル名の基本部分です。:これはCREFユーティリティを走らせる時に必要で、この情報が整形されたリスティングに変わります。
== The Assembly Language ==

案内メニュー