[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/wustl/websites/agilla/docs/tutorials 10_add_instr.html, 1.1, 1.2 index.html, 1.1, 1.2

Chien-Liang Fok chien-liang at users.sourceforge.net
Fri May 19 13:19:08 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/contrib/wustl/websites/agilla/docs/tutorials
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv357/docs/tutorials

Modified Files:
	10_add_instr.html index.html 
Log Message:


Index: 10_add_instr.html
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/websites/agilla/docs/tutorials/10_add_instr.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 10_add_instr.html	3 May 2006 21:17:59 -0000	1.1
--- 10_add_instr.html	19 May 2006 20:19:06 -0000	1.2
***************
*** 15,21 ****
  <h1>Lesson 10: Adding Custom Instructions to Agilla</h1>
  <p><em>Last Updated on
!       <!-- #BeginDate format:Am1a -->May 3, 2006 4:17 PM<!-- #EndDate -->
    .</em></p>
! <p>Adding new instructions to Agilla is not difficult. This tutorial describes
    the process.</p>
  <p>For this example, we will create a new instruction, <code>findmatch</code>, that takes
--- 15,21 ----
  <h1>Lesson 10: Adding Custom Instructions to Agilla</h1>
  <p><em>Last Updated on
!       <!-- #BeginDate format:Am1a -->May 16, 2006 9:03 PM<!-- #EndDate -->
    .</em></p>
! <p>Adding new instructions to Agilla is easy. This tutorial describes
    the process.</p>
  <p>For this example, we will create a new instruction, <code>findmatch</code>, that takes
***************
*** 24,27 ****
--- 24,28 ----
    the condition code equal to 1, otherwise it sets the condition code equal to
    1.</p>
+ <h2>Adding the Instruction to the Firmware</h2>
  <p>The built-in Agilla instructions are located in <code>&lt;agilla&gt;/opcodes</code>. All
    instructions must provide interface BytecodeI, which is located in <code>&lt;agilla&gt;/interfaces/BytecodeI.nc</code>.
***************
*** 109,117 ****
    
  </p>
  <p>The final step is to modify the AgentInjector to recognize the new instruction.
    Go into edu.wustl.mobilab.agilla.opcodes and open the opcode class that the
    new instruction is part of (in this case ExtendedOpcodes1.java). Add the following
    line to it:</p>
- 
  <pre class="screen">public static final short OPfindMatch = 0x1c;</pre>
  
--- 110,118 ----
    
  </p>
+ <h2>Adding the instruction to the Agilla Assembler (Java)</h2>
  <p>The final step is to modify the AgentInjector to recognize the new instruction.
    Go into edu.wustl.mobilab.agilla.opcodes and open the opcode class that the
    new instruction is part of (in this case ExtendedOpcodes1.java). Add the following
    line to it:</p>
  <pre class="screen">public static final short OPfindMatch = 0x1c;</pre>
  

Index: index.html
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/websites/agilla/docs/tutorials/index.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** index.html	13 Jan 2006 20:15:05 -0000	1.1
--- index.html	19 May 2006 20:19:06 -0000	1.2
***************
*** 34,40 ****
              <li><a href="8_rmi.html">Lesson 8: Interacting with an Agilla Network Remotely via RMI</a></li>
              <li><a href="9_debug.html">Lesson 9: Debugging and Simulating</a></li>
            </ul>
            <p><em>Last Updated on
!               <!-- #BeginDate format:Am1a -->November 3, 2005 5:23 PM<!-- #EndDate -->
  .</em></p>
  <!-- InstanceEndEditable -->
--- 34,41 ----
              <li><a href="8_rmi.html">Lesson 8: Interacting with an Agilla Network Remotely via RMI</a></li>
              <li><a href="9_debug.html">Lesson 9: Debugging and Simulating</a></li>
+             <li><a href="10_add_instr.html">Lesson 10: Adding an Instruction</a></li>
            </ul>
            <p><em>Last Updated on
!               <!-- #BeginDate format:Am1a -->May 16, 2006 9:13 PM<!-- #EndDate -->
  .</em></p>
  <!-- InstanceEndEditable -->



More information about the Tinyos-contrib-commits mailing list