-

差分

移動先: 案内検索

Z80 Assembler Reference Manual

492 バイト追加, 2017年8月14日 (月) 23:47
PSECT
==== PSECT ====
:This pseudo-op allows specification of relocatable program sections. Its arguments are a psect name, optionally followed by a list of psect flags. The psect name is a symbol constructed according to the same rules as for labels, however a psect may have the same name as a label without conflict. Psect names are recognized only after a PSECT pseudo-op. The psect flags are as followsこの擬似命令は再配置可能なプログラムセクションの定義を許可します。 :この引数はオプション的にpsectフラッグの後に着く、psect nameです。 :psect名はラベルと同じルールに従って構築されるシンボルですが、psectは、衝突することなくラベルと同じ名前を持つことができます。 :psect名はPSECT擬似命令の後で、のみ認識されます。psectフラグは以下の通りです。
:;ABS
::Psect is absolutePsectは絶対値です。
:;GLOBAL
::Psect is globalPsectはグローバルです。
:;LOCAL
::Psect is not globalPsectはグローバルではありません。
:;OVRLD
::Psect is to be overlapped by linkerPsectはリンカによってオーバーラップ可能です
:;PURE
::Psect is to be read-only :If a psect is global, the linker will merge it with any other global psects of the same name from other modules. Local psects will be treated as distinct from any other psect from another module. Psects are global by default.Psectはリードオンリーでなければいけません
:By default the linker concatenates code within a psect from various modules. If a psect is specified as OVRLD, the linker will overlap each module's contribution to that psect. This is particularly useful when linking modules which initialize e.g. interrupt vectors.Psectがもしグローバルな場合、リンカはこれを、他モジュールで同名の他のグローバルpsectとマージします。
:The PURE flag instructs the linker that the psect is to be made read-only at run time. The usefulness of this flag depends on the ability of the linker to enforce the requirement. CP/M fails miserably in this regard.ローカルのpsectは他のモジュールからの、他のpsectとは区別されます。Psectはデフォルトでグローバルです。
:The ABS flag makes a psect absolute. The psect will be loaded at zero. This is useful for statically initializing interrupt vectors and jump tables. Examplesデフォルトでリンカはいろいろなモジュールからのpsect内で、コードを連結します。:psectがOVRLDとして指定されると、リンカがそれぞれのモジュールを、そのpsectにオーバーラップしていきます。:初期化する時や、ベクター割り込みする時など、モジュールをリンクをする特定の場合に便利です。:PUREフラグは、psectが実行時にのみリードオンリーになり得るとリンカに伝えます。:このフラグの有用性はリンカが要求を強制する能力に依存します。CP/Mは悲しいことに、ここに配慮されていません?:ABSフラグはpsectを絶対化します。:psectはゼロに読み込まれます。:これは静的にベクター割り込みを初期化し、テーブルにジャンプする時に有用です。
<nowiki>例:</nowiki>
PSECT text, global, pure
PSECT data, global
PSECT vectors, ovrld
 
 
==== GLOBAL ====

案内メニュー