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