-

差分

移動先: 案内検索

Z80 Assembler Reference Manual

145 バイト追加, 2017年8月16日 (水) 12:14
IRP と IRPC
inc hl
=== IRP and IRPC ===IRPとIRPCディレクティブはREPTに似ていますが、ブロックを決まった回数繰り返すのではなく、引数リスト化にある回数それぞれを一回だけ実行します。
The IRP and IRPC directives are similar to REPT, however instead of repeating the block a fixed number of timesIRPの場合はリストはコンベンショナルマクロの引数リスト、IRPCの場合は文字列からの連続する文字です。it is repeated once for each member of an argument list. Inthe case of IRP the list is a conventional macro argumentlist, in the case of IRPC it is successive characters from astring. For example<nowiki>例:</nowiki>
IRP string,<'hello world',13,10>,'arg2'
ENDM
 would expand toこれは次のように展開されます。
psect data
Note the use of LOCAL labels and angle brackets in the samemanner as with conventional macros.コンベンショナルマクロを使用する際と同様に、LOCALラベルとかぎ括弧の使用に注意してください。
IRPC is best demonstrated using the following example:IRPCを最もよく表す例は以下のものです。
IRPC char,ABC
ENDM
 will expand to:これは次のように展開されます。
ld c,2
ld e,'C'
call 5
 
 
=== Extended Condition Codes ===

案内メニュー