-

差分

移動先: 案内検索

Z80 Assembler Reference Manual

122 バイト追加, 2017年8月16日 (水) 08:59
LOCAL
==== LOCAL ====
The LOCAL pseudo-op allows unique labels to be defined:LOCAL擬似命令はマクロの拡張のため、ユニークなラベルを定義できます。 :LOCALディレクティブの後にシンボルがリスト化されている場合、マクロが展開される時に、これらは代わりのfor each expansion of a macro. Any symbols listed after theユニークなアセンブラ生成シンボルとなります。LOCAL directive will have a unique assembler-generated symbol substituted for them when the macro is expanded. Forexample:
copy MACRO source,dest,count
ENDM
 when expanded will include a unique assembler generatedlabel in place of nocopy. For example, copy:nocopyの位置に展開されたコードがユニークなアセンブラ生成ラベルを含む場合には、例えば、copy(recptr),buf,(recsize) will expand to:は次のように展開されます。
push af
pop af
if invoked a second time, the label nocopy would expand to:2回目に発動する際には、nocopyラベルは??0002.0002に展開されます。
==== REPT ====

案内メニュー