-

差分

移動先: 案内検索

Z80 Assembler Reference Manual

179 バイト追加, 2017年8月14日 (月) 08:43
DEFS
DEFW -1, 3664H, 'A', 3777Q
 
==== DEFS ====
:Defs reserves memory locations without initializing them. Its operand is an absolute expression, representing the number of bytes to be reserved. This expression is added to the current location counter. Note however that locations reserved by DEFS may be initialized to zero by the linker if the reserved locations are in the middle of the program. ExampleDEFSは初期化することなしにメモリロケーションをリザーブします。 :このオペランドは絶対的なエクスプレッションで、リザーブされるされるバイト数を表現します。 :このエクスプレッションは現在のロケーションカウンターに追加されます。
DEFS 20h ;reserve 32 bytes of memory:しかしながら、DEFSによってリザーブされたロケーションがプログラムの中間の場合、リンカによってゼロに初期化される可能性があります。
<nowiki>例:</nowiki>
DEFS 20h ;メモリの32バイトをリザーブ
==== EQU ====

案内メニュー