summaryrefslogtreecommitdiff
path: root/other/Kermit/doc/API_doc/html/arch_8hpp-source.html
blob: dc30330407283ffea8e78816e8a63e9415937cce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>arch.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.9.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>arch.hpp</h1><div class="fragment"><pre>00001 <font class="comment">/* </font>
00002 <font class="comment"> * maybe used for porting ...</font>
00003 <font class="comment"> * (ignore this file.)</font>
00004 <font class="comment"> */</font>
00005 <font class="preprocessor">#ifdef __ALWAYS_UNDEFINED</font>
00006 <font class="preprocessor"></font>template &lt;class Ad_t, bool BE, unsigned short A&gt;
00007 <font class="keyword">class </font>Architecture
00008 {
00009 <font class="keyword">private</font>:
00010   le_replace (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *, AddressType);
00011   be_replace (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *, AddressType);
00012 
00013 <font class="keyword">public</font>:
00014   <font class="keyword">typedef</font> Ad_t  AddressType;    <font class="comment">/* type capable for holding a memory address as integer */</font>
00015   <font class="keywordtype">bool</font> BigEndian;               <font class="comment">/* true if machine uses big endian */</font>
00016   <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> Align;         <font class="comment">/* data alignment - needed? (sanity checks) */</font>
00017 
00018   Architecture ()<font class="keyword"></font>
00019 <font class="keyword">  </font>{
00020     BigEndian = BE;
00021     Align = A;
00022   }
00023 
00024   replaceAddress  (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *, AddressType);
00025 };
00026 
00027 
00028 Architecture&lt;unsigned int, false, 4&gt;    x86;
00029 <font class="comment">// ...</font>
00030 
00031 <font class="preprocessor">#define x86     this_arch;</font>
00032 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
</font></pre></div><hr><address><small>Generated at Tue Aug 14 18:04:51 2001 for Kermit by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.9.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>