📄 asmdirec.html
字号:
<HTML>
<HEAD>
<TITLE>Assembler Directives</TITLE>
</HEAD>
<BODY BACKGROUND="Image3.jpg">
<H3>Assembler Directives</H3>
<P>The assembly process can be controlled by assembler directives. The assembler interprets the assembler directives instead of translating them into machine instructions. The assembler supports the following directives:</P>
<TABLE BORDER CELLSPACING=1 CELLPADDING=7>
<TR>
<TD VALIGN="MIDDLE" BGCOLOR="#c0c0c0">
<P><B>Directive</B></P>
</TD>
<TD VALIGN="MIDDLE" BGCOLOR="#c0c0c0">
<P><B>Description</B></P>
</TD>
</TR>
<TR>
<TD VALIGN="TOP">
<P><CODE>ORG <address></CODE></P>
</TD>
<TD VALIGN="TOP">
<P>Assemble the subsequent source statements starting at the specified address, <CODE><address></CODE>.</P>
<P><I>Examples:</I></P>
<BLOCKQUOTE><CODE>ORG 1123H ; Start assembling at address 4387</CODE></BLOCKQUOTE>
<BLOCKQUOTE><CODE>ORG 567o ; Start assembling at address 375</CODE></BLOCKQUOTE>
</TD>
</TR>
<TR>
<TD VALIGN="TOP">
<P><CODE>DB <number></CODE></P>
</TD>
<TD VALIGN="TOP">
<P>Store the specified 1-byte constant <CODE><number></CODE> in memory.</P>
<P><I>Examples:</I></P>
<BLOCKQUOTE><CODE>DB 11 ; Store the 8-bit constant 11 in memory</CODE></BLOCKQUOTE>
<BLOCKQUOTE><CODE>DB 333o ; Store the 8-bit constant 219 in memory</CODE></BLOCKQUOTE>
</TD>
</TR>
<TR>
<TD VALIGN="TOP">
<P><CODE>DW <number></CODE>
</TD>
<TD VALIGN="TOP">
<P>Store the specified 2-byte constant <CODE><number></CODE> in memory. The assembler initializes the memory with the least significant byte first.</P>
<P><I>Examples:</I></P>
<BLOCKQUOTE><CODE>DW 23785 ; Store the 16-bit constant 23785 in memory</CODE></BLOCKQUOTE>
<BLOCKQUOTE><CODE>DW af43h ; Store the 16-bit constant 44867 in memory</CODE></BLOCKQUOTE>
</TD>
</TR>
</TABLE>
<h3><a name="labels"></a>Assembler Labels</h3>
<p>The assembler also supports jump to lables of the form label_name: (notice
the : after the label name). The labels are not case censetive.</p>
<p>Example:</p>
<p>JMP MyLabel</p>
<p>....</p>
<p>MyLabel: ....</p>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -