Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 2ff8806b45ba9c96e77e01e6d40e440b > files > 207

libsc68_2.2.1-devel-2.2.1-11mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>sc68fordevelopers: /home/mandrake/rpm/BUILD/sc68-2.2.1/emu68/struct68.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>/home/mandrake/rpm/BUILD/sc68-2.2.1/emu68/struct68.h</h1><a href="struct68_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00010"></a>00010 <span class="comment">/* Copyright (C) 1998-2001 Ben(jamin) Gerard */</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef _STRUCT68_H_</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define _STRUCT68_H_</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 <span class="preprocessor">#include "<a class="code" href="type68_8h.html" title="Type definitions.">emu68/type68.h</a>"</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00019"></a>00019 <span class="preprocessor">#endif</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00026"></a><a class="code" href="struct68_8h.html#cb5a91fac353c88845e18bf12f6b2fd7">00026</a> <span class="preprocessor">#define IO68_NO_INT (0x80000000)</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef NULL</span>
<a name="l00029"></a><a class="code" href="struct68_8h.html#070d2ce7b6bb7e5c05602aa8c308d0c4">00029</a> <span class="preprocessor"></span><span class="preprocessor"># define NULL 0L </span>
<a name="l00030"></a>00030 <span class="preprocessor">#endif</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00034"></a><a class="code" href="struct68_8h.html#f45b34c70f5b61f031cbbbb6cfba903c">00034</a> <span class="preprocessor">#define MEM68MSK ((1&lt;&lt;19)-1)   </span><span class="comment">/* 512 Kb memory */</span>
<a name="l00035"></a>00035 <span class="comment">/* #define MEM68MSK (reg68.memmsk) */</span>
<a name="l00036"></a>00036 
<a name="l00042"></a><a class="code" href="struct68_8h.html#64f9293b17caaf5b9c65f60847cbf2f7">00042</a> <span class="keyword">typedef</span> <a class="code" href="type68_8h.html#10e94b422ef0c20dcdec20d31a1f5049" title="Must be an unsigned 32 bit integer.">u32</a> (*<a class="code" href="struct68_8h.html#64f9293b17caaf5b9c65f60847cbf2f7" title="Read memory function.">memrfunc68_t</a>)(<a class="code" href="type68_8h.html#10e94b422ef0c20dcdec20d31a1f5049" title="Must be an unsigned 32 bit integer.">u32</a> addr, <a class="code" href="type68_8h.html#f481ec429becf42a986cf4feb23036f0" title="At least 32 bit integer.">cycle68_t</a> cycle);
<a name="l00043"></a>00043 
<a name="l00045"></a><a class="code" href="struct68_8h.html#a7f3d5219ebba18afaf36412f39f67ba">00045</a> <span class="keyword">typedef</span> void (*<a class="code" href="struct68_8h.html#a7f3d5219ebba18afaf36412f39f67ba" title="Write memory function.">memwfunc68_t</a>)(<a class="code" href="type68_8h.html#10e94b422ef0c20dcdec20d31a1f5049" title="Must be an unsigned 32 bit integer.">u32</a> addr, <a class="code" href="type68_8h.html#10e94b422ef0c20dcdec20d31a1f5049" title="Must be an unsigned 32 bit integer.">u32</a> value, <a class="code" href="type68_8h.html#f481ec429becf42a986cf4feb23036f0" title="At least 32 bit integer.">cycle68_t</a> cycle);
<a name="l00046"></a>00046 
<a name="l00050"></a><a class="code" href="struct68_8h.html#1a35cfbf406e81ef308245788cff9ad3">00050</a> <span class="keyword">typedef</span> void (<a class="code" href="struct68_8h.html#1a35cfbf406e81ef308245788cff9ad3" title="First level (16 lines) decoder function.">linefunc68_t</a>)(int, int );
<a name="l00051"></a>00051 
<a name="l00054"></a><a class="code" href="structint68__t.html">00054</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00055"></a>00055 {
<a name="l00056"></a><a class="code" href="structint68__t.html#7336d55559250665323b0418743a8709">00056</a>   <span class="keywordtype">int</span> vector;                  
<a name="l00057"></a><a class="code" href="structint68__t.html#7ac6863fac69d68433a45c2d8ff15d85">00057</a>   <span class="keywordtype">int</span> level;                   
<a name="l00058"></a>00058 } <a class="code" href="structint68__t.html" title="68K interruption exception structure.">int68_t</a>;
<a name="l00059"></a>00059 
<a name="l00066"></a><a class="code" href="struct__io68__t.html">00066</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__io68__t.html" title="IO emulator pluggin structure.">_io68_t</a>
<a name="l00067"></a>00067 {
<a name="l00068"></a><a class="code" href="struct__io68__t.html#d11448289cf3df0864766b1491b1586b">00068</a>   <span class="keyword">struct </span><a class="code" href="struct__io68__t.html" title="IO emulator pluggin structure.">_io68_t</a> * <a class="code" href="struct__io68__t.html#d11448289cf3df0864766b1491b1586b" title="IO list; pointer to next.">next</a>;            
<a name="l00069"></a><a class="code" href="struct__io68__t.html#7986dbed952cb4223ad2c957061ed50b">00069</a>   <span class="keywordtype">char</span> <a class="code" href="struct__io68__t.html#7986dbed952cb4223ad2c957061ed50b" title="IO identifier name.">name</a>[32];                    
<a name="l00070"></a><a class="code" href="struct__io68__t.html#8a91e83a5771da90e4ede19f16811c0a">00070</a>   <a class="code" href="type68_8h.html#10e94b422ef0c20dcdec20d31a1f5049" title="Must be an unsigned 32 bit integer.">u32</a> <a class="code" href="struct__io68__t.html#8a91e83a5771da90e4ede19f16811c0a" title="IO mapping area start address.">addr_low</a>;                     
<a name="l00071"></a><a class="code" href="struct__io68__t.html#60331bfcd79cffc10e00dcbdfcb5f0ef">00071</a>   <a class="code" href="type68_8h.html#10e94b422ef0c20dcdec20d31a1f5049" title="Must be an unsigned 32 bit integer.">u32</a> <a class="code" href="struct__io68__t.html#60331bfcd79cffc10e00dcbdfcb5f0ef" title="IO mapping area end address.">addr_high</a>;                    
<a name="l00072"></a><a class="code" href="struct__io68__t.html#7a4e31d80fcbad49158bd950e252f057">00072</a>   <a class="code" href="struct68_8h.html#64f9293b17caaf5b9c65f60847cbf2f7" title="Read memory function.">memrfunc68_t</a> <a class="code" href="struct__io68__t.html#7a4e31d80fcbad49158bd950e252f057" title="IO read functions (B,W,L).">Rfunc</a>[3];            
<a name="l00073"></a><a class="code" href="struct__io68__t.html#937387c21ae74f5d347e3452cc21a5db">00073</a>   <a class="code" href="struct68_8h.html#a7f3d5219ebba18afaf36412f39f67ba" title="Write memory function.">memwfunc68_t</a> <a class="code" href="struct__io68__t.html#937387c21ae74f5d347e3452cc21a5db" title="IO write functions (B,W,L).">Wfunc</a>[3];            
<a name="l00074"></a>00074   <a class="code" href="structint68__t.html" title="68K interruption exception structure.">int68_t</a> *(*interrupt)(<a class="code" href="type68_8h.html#f481ec429becf42a986cf4feb23036f0" title="At least 32 bit integer.">cycle68_t</a>); 
<a name="l00075"></a>00075   <a class="code" href="type68_8h.html#f481ec429becf42a986cf4feb23036f0" title="At least 32 bit integer.">cycle68_t</a> (*<a class="code" href="struct__io68__t.html#54091d73c7fd163f49c05ca8dca3f252" title="IO get next interruption cycle.">next_int</a>)(<a class="code" href="type68_8h.html#f481ec429becf42a986cf4feb23036f0" title="At least 32 bit integer.">cycle68_t</a>); 
<a name="l00076"></a>00076   void (*<a class="code" href="struct__io68__t.html#b570a18c1032d54521c6d7f3fe19c137" title="IO adjust cycle function.">adjust_cycle</a>)(<a class="code" href="type68_8h.html#f481ec429becf42a986cf4feb23036f0" title="At least 32 bit integer.">cycle68_t</a>);  
<a name="l00077"></a>00077   int (*<a class="code" href="struct__io68__t.html#7e34960a70492fa26e68d4efb34af0b1" title="IO reset function.">reset</a>)(void);               
<a name="l00078"></a><a class="code" href="struct__io68__t.html#4d63515906634f9f0e6cfd7da5d2bc89">00078</a>   <a class="code" href="type68_8h.html#f481ec429becf42a986cf4feb23036f0" title="At least 32 bit integer.">cycle68_t</a> <a class="code" href="struct__io68__t.html#4d63515906634f9f0e6cfd7da5d2bc89" title="Read cycle penalty .">rcycle_penalty</a>;         
<a name="l00079"></a><a class="code" href="struct__io68__t.html#911fda8318778f342bf2fb0826fc946e">00079</a>   <a class="code" href="type68_8h.html#f481ec429becf42a986cf4feb23036f0" title="At least 32 bit integer.">cycle68_t</a> <a class="code" href="struct__io68__t.html#911fda8318778f342bf2fb0826fc946e" title="Write cycle penalty.">wcycle_penalty</a>;         
<a name="l00080"></a>00080 } <a class="code" href="struct__io68__t.html" title="IO emulator pluggin structure.">io68_t</a>;
<a name="l00081"></a>00081 
<a name="l00084"></a><a class="code" href="structreg68__t.html">00084</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00085"></a>00085 {
<a name="l00086"></a>00086   <span class="comment">/* Registers. */</span>
<a name="l00087"></a><a class="code" href="structreg68__t.html#b220d90083842e47e42bd830ce3abc65">00087</a>   <a class="code" href="type68_8h.html#0ce6887c26c1c49ad3be5710dd42bfd6" title="Must be an signed 32 bit integer.">s32</a> d[8];                    
<a name="l00088"></a><a class="code" href="structreg68__t.html#30ccf2eb74279ccceb995feb6dbd4321">00088</a>   <a class="code" href="type68_8h.html#0ce6887c26c1c49ad3be5710dd42bfd6" title="Must be an signed 32 bit integer.">s32</a> a[8];                    
<a name="l00089"></a><a class="code" href="structreg68__t.html#1203f8f3e3c3edd598dca38a2b2911a2">00089</a>   <a class="code" href="type68_8h.html#0ce6887c26c1c49ad3be5710dd42bfd6" title="Must be an signed 32 bit integer.">s32</a> usp;                     
<a name="l00090"></a><a class="code" href="structreg68__t.html#efb01a3243a5348ce52c4aa4fd19fd64">00090</a>   <a class="code" href="type68_8h.html#0ce6887c26c1c49ad3be5710dd42bfd6" title="Must be an signed 32 bit integer.">s32</a> pc;                      
<a name="l00091"></a><a class="code" href="structreg68__t.html#b1fe12b1ee7fa5e52077801c5618f20d">00091</a>   <a class="code" href="type68_8h.html#10e94b422ef0c20dcdec20d31a1f5049" title="Must be an unsigned 32 bit integer.">u32</a> sr;                      
<a name="l00093"></a><a class="code" href="structreg68__t.html#0bb0e5af822898d67c08e98526298e60">00093</a>   <a class="code" href="type68_8h.html#f481ec429becf42a986cf4feb23036f0" title="At least 32 bit integer.">cycle68_t</a> cycle;             
<a name="l00094"></a><a class="code" href="structreg68__t.html#1f51f8ee12a46d069939cc632e15c6d8">00094</a>   <span class="keywordtype">int</span> status;                  
<a name="l00096"></a>00096   <span class="comment">/* Memory. */</span>
<a name="l00097"></a><a class="code" href="structreg68__t.html#420b81634bec211441b13edd88387b3e">00097</a>   <a class="code" href="type68_8h.html#ed742c436da53c1080638ce6ef7d13de" title="Must be an unsigned 8 bit integer.">u8</a>  *mem;                    
<a name="l00098"></a><a class="code" href="structreg68__t.html#0a416175b357a3f8e7ce376eba4290d6">00098</a>   <a class="code" href="type68_8h.html#10e94b422ef0c20dcdec20d31a1f5049" title="Must be an unsigned 32 bit integer.">u32</a> memmsk;                  
<a name="l00099"></a><a class="code" href="structreg68__t.html#f48001c5ac0ad4d19f496b665ec63ad6">00099</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> memsz;          
<a name="l00101"></a>00101   <span class="comment">/* Debug mode only. */</span>
<a name="l00102"></a><a class="code" href="structreg68__t.html#cb86e7988ab4877a1b2517896c60227f">00102</a>   <a class="code" href="type68_8h.html#ed742c436da53c1080638ce6ef7d13de" title="Must be an unsigned 8 bit integer.">u8</a>  *chk;                    
<a name="l00103"></a><a class="code" href="structreg68__t.html#f2b6b27743a8716bd9823e62211fb05b">00103</a>   <span class="keywordtype">int</span> framechk;                
<a name="l00105"></a>00105   <span class="comment">/* IO chips. */</span>
<a name="l00106"></a><a class="code" href="structreg68__t.html#e015a874de912ee0b4d7aec9863f97ba">00106</a>   <span class="keywordtype">int</span> nio;                     
<a name="l00107"></a><a class="code" href="structreg68__t.html#8c8f052a56e1e67f25e8bb8e4b51ad16">00107</a>   <a class="code" href="struct__io68__t.html" title="IO emulator pluggin structure.">io68_t</a> *iohead;              
<a name="l00109"></a>00109 } <a class="code" href="structreg68__t.html" title="68K emulator registers, memory and IO.">reg68_t</a>;
<a name="l00110"></a>00110 
<a name="l00111"></a>00111 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span>}
<a name="l00113"></a>00113 <span class="preprocessor">#endif</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span>
<a name="l00115"></a>00115 <span class="preprocessor">#endif </span><span class="comment">/* #ifndef _STRUCT68_H_ */</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 15 03:58:04 2009 for sc68fordevelopers by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>