|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
|
2 |
|
3 <!--Converted with LaTeX2HTML 2002-2-1 (1.71) |
|
4 original version by: Nikos Drakos, CBLU, University of Leeds |
|
5 * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan |
|
6 * with significant contributions from: |
|
7 Jens Lippmann, Marek Rouchal, Martin Wilck and others --> |
|
8 <HTML> |
|
9 <HEAD> |
|
10 <TITLE>Code for CodeWarrior</TITLE> |
|
11 <META NAME="description" CONTENT="Code for CodeWarrior"> |
|
12 <META NAME="keywords" CONTENT="manual"> |
|
13 <META NAME="resource-type" CONTENT="document"> |
|
14 <META NAME="distribution" CONTENT="global"> |
|
15 |
|
16 <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1"> |
|
17 <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> |
|
18 |
|
19 <LINK REL="STYLESHEET" HREF="manual.css"> |
|
20 |
|
21 <LINK REL="previous" HREF="node87.html"> |
|
22 <LINK REL="up" HREF="node86.html"> |
|
23 <LINK REL="next" HREF="node89.html"> |
|
24 </HEAD> |
|
25 |
|
26 <BODY > |
|
27 |
|
28 <DIV CLASS="navigation"><!--Navigation Panel--> |
|
29 <A NAME="tex2html1317" |
|
30 HREF="node89.html"> |
|
31 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" |
|
32 SRC="/usr/share/latex2html/icons/next.png"></A> |
|
33 <A NAME="tex2html1313" |
|
34 HREF="node86.html"> |
|
35 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" |
|
36 SRC="/usr/share/latex2html/icons/up.png"></A> |
|
37 <A NAME="tex2html1309" |
|
38 HREF="node87.html"> |
|
39 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" |
|
40 SRC="/usr/share/latex2html/icons/prev.png"></A> |
|
41 <A NAME="tex2html1315" |
|
42 HREF="node1.html"> |
|
43 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" |
|
44 SRC="/usr/share/latex2html/icons/contents.png"></A> |
|
45 <BR> |
|
46 <B> Next:</B> <A NAME="tex2html1318" |
|
47 HREF="node89.html">Initialize function</A> |
|
48 <B> Up:</B> <A NAME="tex2html1314" |
|
49 HREF="node86.html">Interrupt lock, unlock</A> |
|
50 <B> Previous:</B> <A NAME="tex2html1310" |
|
51 HREF="node87.html">Code for GCC</A> |
|
52 <B> <A NAME="tex2html1316" |
|
53 HREF="node1.html">Contents</A></B> |
|
54 <BR> |
|
55 <BR></DIV> |
|
56 <!--End of Navigation Panel--> |
|
57 |
|
58 <H5><A NAME="SECTION000114222000000000000"> |
|
59 Code for CodeWarrior</A> |
|
60 </H5> |
|
61 <TT>void unlock (void) |
|
62 <BR> |
|
63 { |
|
64 <BR> |
|
65 |
|
66 <BR> |
|
67 __asm(cli); |
|
68 <BR> |
|
69 } |
|
70 <BR> |
|
71 void lock (void) |
|
72 <BR> |
|
73 { |
|
74 <BR> |
|
75 short mask; |
|
76 <BR> |
|
77 |
|
78 <BR> |
|
79 __asm |
|
80 <BR> |
|
81 { |
|
82 <BR> |
|
83 :tsei:=d(mask); |
|
84 <BR> |
|
85 } |
|
86 <BR> |
|
87 }</TT> |
|
88 |
|
89 <P> |
|
90 <BR><HR> |
|
91 <ADDRESS> |
|
92 epimerde |
|
93 2007-06-05 |
|
94 </ADDRESS> |
|
95 </BODY> |
|
96 </HTML> |