⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asmdirec.html

📁 熟悉非常简单CPU模拟器 1、将所给模拟器的源程序编译成执行程序。 2、运行并观察非常简单CPU模拟器
💻 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&nbsp;&lt;address&gt;</CODE></P>
            </TD>

            <TD VALIGN="TOP">
               <P>Assemble the subsequent source statements starting at the specified address, <CODE>&lt;address&gt;</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&nbsp;&lt;number&gt;</CODE></P>
            </TD>

            <TD VALIGN="TOP">
               <P>Store the specified 1-byte constant <CODE>&lt;number&gt;</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&nbsp;&lt;number&gt;</CODE>
            </TD>

            <TD VALIGN="TOP">
               <P>Store the specified 2-byte constant <CODE>&lt;number&gt;</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 + -