<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Code for CodeWarrior</TITLE>
<META NAME="description" CONTENT="Code for CodeWarrior">
<META NAME="keywords" CONTENT="manual">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="manual.css">
<LINK REL="previous" HREF="node87.html">
<LINK REL="up" HREF="node86.html">
<LINK REL="next" HREF="node89.html">
</HEAD>
<BODY >
<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html1317"
HREF="node89.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html1313"
HREF="node86.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html1309"
HREF="node87.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A>
<A NAME="tex2html1315"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1318"
HREF="node89.html">Initialize function</A>
<B> Up:</B> <A NAME="tex2html1314"
HREF="node86.html">Interrupt lock, unlock</A>
<B> Previous:</B> <A NAME="tex2html1310"
HREF="node87.html">Code for GCC</A>
<B> <A NAME="tex2html1316"
HREF="node1.html">Contents</A></B>
<BR>
<BR></DIV>
<!--End of Navigation Panel-->
<H5><A NAME="SECTION000114222000000000000">
Code for CodeWarrior</A>
</H5>
<TT>void unlock (void)
<BR>
{
<BR>
<BR>
__asm(cli);
<BR>
}
<BR>
void lock (void)
<BR>
{
<BR>
short mask;
<BR>
<BR>
__asm
<BR>
{
<BR>
:tsei:=d(mask);
<BR>
}
<BR>
}</TT>
<P>
<BR><HR>
<ADDRESS>
epimerde
2007-06-06
</ADDRESS>
</BODY>
</HTML>