From 3563c6dfd0f5f102cb748ecc6ad318601990515e Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 14 May 2009 18:21:15 +0200 Subject: adding doxygen docs --- ue3/doxygen/annotated.html | 54 ++ ue3/doxygen/ccpu_8h-source.html | 114 +++ ue3/doxygen/cdat_8h-source.html | 148 ++++ ue3/doxygen/cdisplay_8h-source.html | 52 ++ ue3/doxygen/cinstruction_8h-source.html | 85 +++ ue3/doxygen/classCCPU-members.html | 42 ++ ue3/doxygen/classCCPU.html | 578 ++++++++++++++++ ue3/doxygen/classCDat.html | 35 + ue3/doxygen/classCDatT-members.html | 48 ++ ue3/doxygen/classCDatT.html | 879 ++++++++++++++++++++++++ ue3/doxygen/classCDisplay.html | 45 ++ ue3/doxygen/classCDisplay.png | Bin 0 -> 514 bytes ue3/doxygen/classCDisplayT-members.html | 33 + ue3/doxygen/classCDisplayT.html | 227 ++++++ ue3/doxygen/classCDisplayWDEZ-members.html | 30 + ue3/doxygen/classCDisplayWDEZ.html | 87 +++ ue3/doxygen/classCDisplayWDEZ.png | Bin 0 -> 400 bytes ue3/doxygen/classCDisplayWHEX-members.html | 30 + ue3/doxygen/classCDisplayWHEX.html | 87 +++ ue3/doxygen/classCDisplayWHEX.png | Bin 0 -> 389 bytes ue3/doxygen/classCInstruction-members.html | 41 ++ ue3/doxygen/classCInstruction.html | 575 ++++++++++++++++ ue3/doxygen/classCInstruction.png | Bin 0 -> 1882 bytes ue3/doxygen/classCInstructionAdd-members.html | 45 ++ ue3/doxygen/classCInstructionAdd.html | 223 ++++++ ue3/doxygen/classCInstructionAdd.png | Bin 0 -> 389 bytes ue3/doxygen/classCInstructionDec-members.html | 43 ++ ue3/doxygen/classCInstructionDec.html | 189 +++++ ue3/doxygen/classCInstructionDec.png | Bin 0 -> 393 bytes ue3/doxygen/classCInstructionDiv-members.html | 45 ++ ue3/doxygen/classCInstructionDiv.html | 223 ++++++ ue3/doxygen/classCInstructionDiv.png | Bin 0 -> 382 bytes ue3/doxygen/classCInstructionInc-members.html | 43 ++ ue3/doxygen/classCInstructionInc.html | 189 +++++ ue3/doxygen/classCInstructionInc.png | Bin 0 -> 373 bytes ue3/doxygen/classCInstructionJumpA-members.html | 43 ++ ue3/doxygen/classCInstructionJumpA.html | 189 +++++ ue3/doxygen/classCInstructionJumpA.png | Bin 0 -> 414 bytes ue3/doxygen/classCInstructionJumpS-members.html | 43 ++ ue3/doxygen/classCInstructionJumpS.html | 189 +++++ ue3/doxygen/classCInstructionJumpS.png | Bin 0 -> 416 bytes ue3/doxygen/classCInstructionJumpZ-members.html | 43 ++ ue3/doxygen/classCInstructionJumpZ.html | 189 +++++ ue3/doxygen/classCInstructionJumpZ.png | Bin 0 -> 416 bytes ue3/doxygen/classCInstructionLabel-members.html | 42 ++ ue3/doxygen/classCInstructionLabel.html | 170 +++++ ue3/doxygen/classCInstructionLabel.png | Bin 0 -> 400 bytes ue3/doxygen/classCInstructionLoad-members.html | 44 ++ ue3/doxygen/classCInstructionLoad.html | 206 ++++++ ue3/doxygen/classCInstructionLoad.png | Bin 0 -> 395 bytes ue3/doxygen/classCInstructionMul-members.html | 45 ++ ue3/doxygen/classCInstructionMul.html | 223 ++++++ ue3/doxygen/classCInstructionMul.png | Bin 0 -> 384 bytes ue3/doxygen/classCInstructionStore-members.html | 44 ++ ue3/doxygen/classCInstructionStore.html | 206 ++++++ ue3/doxygen/classCInstructionStore.png | Bin 0 -> 400 bytes ue3/doxygen/classCInstructionSub-members.html | 45 ++ ue3/doxygen/classCInstructionSub.html | 223 ++++++ ue3/doxygen/classCInstructionSub.png | Bin 0 -> 388 bytes ue3/doxygen/classCInstructionTest-members.html | 43 ++ ue3/doxygen/classCInstructionTest.html | 189 +++++ ue3/doxygen/classCInstructionTest.png | Bin 0 -> 392 bytes ue3/doxygen/classCInstructionWrite-members.html | 44 ++ ue3/doxygen/classCInstructionWrite.html | 206 ++++++ ue3/doxygen/classCInstructionWrite.png | Bin 0 -> 394 bytes ue3/doxygen/classCMem.html | 35 + ue3/doxygen/classCProgram-members.html | 33 + ue3/doxygen/classCProgram.html | 234 +++++++ ue3/doxygen/classCVectorMem-members.html | 29 + ue3/doxygen/classCVectorMem.html | 83 +++ ue3/doxygen/cmem_8h-source.html | 95 +++ ue3/doxygen/cprogram_8h-source.html | 60 ++ ue3/doxygen/displays_8h-source.html | 60 ++ ue3/doxygen/doxygen.css | 358 ++++++++++ ue3/doxygen/doxygen.png | Bin 0 -> 1281 bytes ue3/doxygen/files.html | 30 + ue3/doxygen/functions.html | 259 +++++++ ue3/doxygen/functions_func.html | 219 ++++++ ue3/doxygen/functions_rela.html | 44 ++ ue3/doxygen/functions_vars.html | 71 ++ ue3/doxygen/hierarchy.html | 58 ++ ue3/doxygen/index.html | 22 + ue3/doxygen/instructions_8h-source.html | 347 ++++++++++ ue3/doxygen/namespaces.html | 23 + ue3/doxygen/namespacestd.html | 32 + ue3/doxygen/tab_b.gif | Bin 0 -> 35 bytes ue3/doxygen/tab_l.gif | Bin 0 -> 706 bytes ue3/doxygen/tab_r.gif | Bin 0 -> 2585 bytes ue3/doxygen/tabs.css | 102 +++ ue3/mycpu/cdisplay.h | 2 +- ue3/mycpu/displays.h | 18 + 91 files changed, 8829 insertions(+), 1 deletion(-) create mode 100644 ue3/doxygen/annotated.html create mode 100644 ue3/doxygen/ccpu_8h-source.html create mode 100644 ue3/doxygen/cdat_8h-source.html create mode 100644 ue3/doxygen/cdisplay_8h-source.html create mode 100644 ue3/doxygen/cinstruction_8h-source.html create mode 100644 ue3/doxygen/classCCPU-members.html create mode 100644 ue3/doxygen/classCCPU.html create mode 100644 ue3/doxygen/classCDat.html create mode 100644 ue3/doxygen/classCDatT-members.html create mode 100644 ue3/doxygen/classCDatT.html create mode 100644 ue3/doxygen/classCDisplay.html create mode 100644 ue3/doxygen/classCDisplay.png create mode 100644 ue3/doxygen/classCDisplayT-members.html create mode 100644 ue3/doxygen/classCDisplayT.html create mode 100644 ue3/doxygen/classCDisplayWDEZ-members.html create mode 100644 ue3/doxygen/classCDisplayWDEZ.html create mode 100644 ue3/doxygen/classCDisplayWDEZ.png create mode 100644 ue3/doxygen/classCDisplayWHEX-members.html create mode 100644 ue3/doxygen/classCDisplayWHEX.html create mode 100644 ue3/doxygen/classCDisplayWHEX.png create mode 100644 ue3/doxygen/classCInstruction-members.html create mode 100644 ue3/doxygen/classCInstruction.html create mode 100644 ue3/doxygen/classCInstruction.png create mode 100644 ue3/doxygen/classCInstructionAdd-members.html create mode 100644 ue3/doxygen/classCInstructionAdd.html create mode 100644 ue3/doxygen/classCInstructionAdd.png create mode 100644 ue3/doxygen/classCInstructionDec-members.html create mode 100644 ue3/doxygen/classCInstructionDec.html create mode 100644 ue3/doxygen/classCInstructionDec.png create mode 100644 ue3/doxygen/classCInstructionDiv-members.html create mode 100644 ue3/doxygen/classCInstructionDiv.html create mode 100644 ue3/doxygen/classCInstructionDiv.png create mode 100644 ue3/doxygen/classCInstructionInc-members.html create mode 100644 ue3/doxygen/classCInstructionInc.html create mode 100644 ue3/doxygen/classCInstructionInc.png create mode 100644 ue3/doxygen/classCInstructionJumpA-members.html create mode 100644 ue3/doxygen/classCInstructionJumpA.html create mode 100644 ue3/doxygen/classCInstructionJumpA.png create mode 100644 ue3/doxygen/classCInstructionJumpS-members.html create mode 100644 ue3/doxygen/classCInstructionJumpS.html create mode 100644 ue3/doxygen/classCInstructionJumpS.png create mode 100644 ue3/doxygen/classCInstructionJumpZ-members.html create mode 100644 ue3/doxygen/classCInstructionJumpZ.html create mode 100644 ue3/doxygen/classCInstructionJumpZ.png create mode 100644 ue3/doxygen/classCInstructionLabel-members.html create mode 100644 ue3/doxygen/classCInstructionLabel.html create mode 100644 ue3/doxygen/classCInstructionLabel.png create mode 100644 ue3/doxygen/classCInstructionLoad-members.html create mode 100644 ue3/doxygen/classCInstructionLoad.html create mode 100644 ue3/doxygen/classCInstructionLoad.png create mode 100644 ue3/doxygen/classCInstructionMul-members.html create mode 100644 ue3/doxygen/classCInstructionMul.html create mode 100644 ue3/doxygen/classCInstructionMul.png create mode 100644 ue3/doxygen/classCInstructionStore-members.html create mode 100644 ue3/doxygen/classCInstructionStore.html create mode 100644 ue3/doxygen/classCInstructionStore.png create mode 100644 ue3/doxygen/classCInstructionSub-members.html create mode 100644 ue3/doxygen/classCInstructionSub.html create mode 100644 ue3/doxygen/classCInstructionSub.png create mode 100644 ue3/doxygen/classCInstructionTest-members.html create mode 100644 ue3/doxygen/classCInstructionTest.html create mode 100644 ue3/doxygen/classCInstructionTest.png create mode 100644 ue3/doxygen/classCInstructionWrite-members.html create mode 100644 ue3/doxygen/classCInstructionWrite.html create mode 100644 ue3/doxygen/classCInstructionWrite.png create mode 100644 ue3/doxygen/classCMem.html create mode 100644 ue3/doxygen/classCProgram-members.html create mode 100644 ue3/doxygen/classCProgram.html create mode 100644 ue3/doxygen/classCVectorMem-members.html create mode 100644 ue3/doxygen/classCVectorMem.html create mode 100644 ue3/doxygen/cmem_8h-source.html create mode 100644 ue3/doxygen/cprogram_8h-source.html create mode 100644 ue3/doxygen/displays_8h-source.html create mode 100644 ue3/doxygen/doxygen.css create mode 100644 ue3/doxygen/doxygen.png create mode 100644 ue3/doxygen/files.html create mode 100644 ue3/doxygen/functions.html create mode 100644 ue3/doxygen/functions_func.html create mode 100644 ue3/doxygen/functions_rela.html create mode 100644 ue3/doxygen/functions_vars.html create mode 100644 ue3/doxygen/hierarchy.html create mode 100644 ue3/doxygen/index.html create mode 100644 ue3/doxygen/instructions_8h-source.html create mode 100644 ue3/doxygen/namespaces.html create mode 100644 ue3/doxygen/namespacestd.html create mode 100644 ue3/doxygen/tab_b.gif create mode 100644 ue3/doxygen/tab_l.gif create mode 100644 ue3/doxygen/tab_r.gif create mode 100644 ue3/doxygen/tabs.css diff --git a/ue3/doxygen/annotated.html b/ue3/doxygen/annotated.html new file mode 100644 index 0000000..fb958c8 --- /dev/null +++ b/ue3/doxygen/annotated.html @@ -0,0 +1,54 @@ + + +mycpu: Class List + + + + +
+ +
+
+ +
+

mycpu Class List

Here are the classes, structs, unions and interfaces with brief descriptions: + + + + + + + + + + + + + + + + + + + + + + + + + +
CCPU
CDat
CDatT< T >
CDisplay
CDisplayT< T >
CDisplayWDEZ
CDisplayWHEX
CInstruction
CInstructionAdd
CInstructionDec
CInstructionDiv
CInstructionInc
CInstructionJumpA
CInstructionJumpS
CInstructionJumpZ
CInstructionLabel
CInstructionLoad
CInstructionMul
CInstructionStore
CInstructionSub
CInstructionTest
CInstructionWrite
CMem
CProgram
CVectorMem< T, Allocator >
+
Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/ccpu_8h-source.html b/ue3/doxygen/ccpu_8h-source.html new file mode 100644 index 0000000..0081283 --- /dev/null +++ b/ue3/doxygen/ccpu_8h-source.html @@ -0,0 +1,114 @@ + + +mycpu: mycpu/ccpu.h Source File + + + + +
+ +
+

mycpu/ccpu.h

00001 
+00009 #ifndef CCPU_H
+00010 #define CCPU_H 1
+00011 
+00012 #include <iostream>
+00013 #include <set>
+00014 #include "cdat.h"
+00015 #include "cmem.h"
+00016 #include "cprogram.h"
+00017 #include "cdisplay.h"
+00018 
+00025 class CCPU
+00026 {
+00027   public:
+00037     CCPU(const unsigned cnt);
+00038 
+00048     ~CCPU();
+00049 
+00059     const unsigned getRegisterCount() const
+00060     {
+00061       return m_regcnt;
+00062     }
+00063 
+00073     CDat *getRegisters() const
+00074     {
+00075       return m_registers;
+00076     }
+00077 
+00087     void setMemory(CMem *memory)
+00088     {
+00089       m_memory = memory;
+00090     }
+00091 
+00101     CMem *getMemory() const
+00102     {
+00103       return m_memory;
+00104     }
+00105 
+00115     void setProgram(const CProgram *program)
+00116     {
+00117       m_program = program;
+00118     }
+00119 
+00129     const CProgram *getProgram()
+00130     {
+00131       return m_program;
+00132     }
+00133 
+00143     const std::set<CDisplay *>& getDisplays()
+00144     {
+00145       return m_displays;
+00146     }
+00147 
+00157     void setFlagZero(const bool value)
+00158     {
+00159       m_flagzero = value;
+00160     }
+00161 
+00171     const bool getFlagZero()
+00172     {
+00173       return m_flagzero;
+00174     }
+00175 
+00185     void setFlagSign(const bool value)
+00186     {
+00187       m_flagsign = value;
+00188     }
+00189 
+00199     const bool getFlagSign()
+00200     {
+00201       return m_flagsign;
+00202     }
+00203 
+00213     void run();
+00214 
+00215 #if DEBUG
+00216 
+00225     void dumpRegisters(std::ostream& out);
+00226 #endif
+00227 
+00228   private:
+00229     /* members */
+00230     CDat *m_registers;
+00231     unsigned m_regcnt;
+00232     CMem *m_memory;
+00233     const CProgram *m_program;
+00234     std::set<CDisplay *> m_displays;
+00235     bool m_flagzero;
+00236     bool m_flagsign;
+00237 };
+00238 
+00239 #endif
+00240 
+00241 /* vim: set et sw=2 ts=2: */
+

Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/cdat_8h-source.html b/ue3/doxygen/cdat_8h-source.html new file mode 100644 index 0000000..5c40e9d --- /dev/null +++ b/ue3/doxygen/cdat_8h-source.html @@ -0,0 +1,148 @@ + + +mycpu: mycpu/cdat.h Source File + + + + +
+ +
+

mycpu/cdat.h

00001 
+00008 #ifndef CDAT_H
+00009 #define CDAT_H 1
+00010 
+00011 #include <boost/operators.hpp>
+00012 #include <iostream>
+00013 
+00019 template <class T>
+00020 class CDatT
+00021   : boost::operators<CDatT<T> >
+00022 {
+00023   public:
+00033     CDatT()
+00034     {}
+00035 
+00045     ~CDatT()
+00046     {}
+00047 
+00057     CDatT(const CDatT& other)
+00058       : m_value(other.m_value)
+00059     {}
+00060 
+00070     CDatT(T newval)
+00071       : m_value(newval)
+00072     {}
+00073 
+00083     T getValue() const
+00084     {
+00085       return m_value;
+00086     }
+00087 
+00097     operator T()
+00098     {
+00099       return m_value;
+00100     }
+00101 
+00111     bool operator<(const CDatT& x) const
+00112     {
+00113       return m_value < x.m_value;
+00114     }
+00115 
+00125     bool operator==(const CDatT& x) const
+00126     {
+00127       return m_value == x.m_value;
+00128     }
+00129 
+00139     CDatT& operator+=(const CDatT& x)
+00140     {
+00141       m_value += x.m_value;
+00142       return *this;
+00143     }
+00144 
+00154     CDatT& operator-=(const CDatT& x)
+00155     {
+00156       m_value -= x.m_value;
+00157       return *this;
+00158     }
+00159 
+00169     CDatT& operator*=(const CDatT& x)
+00170     {
+00171       m_value *= x.m_value;
+00172       return *this;
+00173     }
+00174 
+00184     CDatT& operator/=(const CDatT& x)
+00185     {
+00186       m_value /= x.m_value;
+00187       return *this;
+00188     }
+00189 
+00199     CDatT& operator%=(const CDatT& x)
+00200     {
+00201       m_value %= x.m_value;
+00202       return *this;
+00203     }
+00204 
+00214     CDatT& operator|=(const CDatT& x)
+00215     {
+00216       m_value |= x.m_value;
+00217       return *this;
+00218     }
+00219 
+00229     CDatT& operator&=(const CDatT& x)
+00230     {
+00231       m_value &= x.m_value;
+00232       return *this;
+00233     }
+00234 
+00244     CDatT& operator^=(const CDatT& x)
+00245     {
+00246       m_value ^= x.m_value;
+00247       return *this;
+00248     }
+00249 
+00259     CDatT& operator++()
+00260     {
+00261       m_value++;
+00262       return *this;
+00263     }
+00264 
+00274     CDatT& operator--()
+00275     {
+00276       m_value--;
+00277       return *this;
+00278     }
+00279 
+00290     friend std::ostream& operator<<(std::ostream& stream, CDatT cdat)
+00291     {
+00292       stream << cdat.m_value;
+00293       return stream;
+00294     }
+00295 
+00306     friend std::istream& operator>>(std::istream & stream, CDatT& cdat)
+00307     {
+00308       stream >> cdat.m_value;
+00309       return stream;
+00310     }
+00311 
+00312   private:
+00313     /* members */
+00314     T m_value;
+00315 };
+00316 
+00322 typedef CDatT<int> CDat;
+00323 
+00324 #endif
+00325 
+00326 /* vim: set et sw=2 ts=2: */
+

Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/cdisplay_8h-source.html b/ue3/doxygen/cdisplay_8h-source.html new file mode 100644 index 0000000..b8c4ef3 --- /dev/null +++ b/ue3/doxygen/cdisplay_8h-source.html @@ -0,0 +1,52 @@ + + +mycpu: mycpu/cdisplay.h Source File + + + + +
+ +
+

mycpu/cdisplay.h

00001 
+00008 #ifndef CDISPLAY_H
+00009 #define CDISPLAY_H 1
+00010 
+00016 template <class T>
+00017 class CDisplayT
+00018 {
+00019   public:
+00029     CDisplayT(std::string name)
+00030       : m_name(name)
+00031     {}
+00032 
+00042     virtual ~CDisplayT()
+00043     {}
+00044 
+00054     virtual const std::string& getName()
+00055     {
+00056       return m_name;
+00057     }
+00058 
+00068     virtual void display(const T &value) = 0;
+00069 
+00070   protected:
+00071     /* members */
+00073     std::string m_name;
+00074 };
+00075 
+00081 typedef CDisplayT<CDat> CDisplay;
+00082 
+00083 #endif
+00084 
+00085 /* vim: set et sw=2 ts=2: */
+

Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/cinstruction_8h-source.html b/ue3/doxygen/cinstruction_8h-source.html new file mode 100644 index 0000000..3055c9c --- /dev/null +++ b/ue3/doxygen/cinstruction_8h-source.html @@ -0,0 +1,85 @@ + + +mycpu: mycpu/cinstruction.h Source File + + + + +
+ +
+

mycpu/cinstruction.h

00001 
+00008 #ifndef CINSTRUCTION_H
+00009 #define CINSTRUCTION_H 1
+00010 
+00011 #include <iostream>
+00012 #include <list>
+00013 
+00014 /* forward declare CCPU */
+00015 class CCPU;
+00016 
+00022 class CInstruction
+00023 {
+00024   public:
+00034     CInstruction(std::string name)
+00035       : m_name(name)
+00036     {}
+00037 
+00047     virtual ~CInstruction()
+00048     {}
+00049 
+00059     virtual bool operator==(std::string& name)
+00060     {
+00061       return name == m_name;
+00062     }
+00063 
+00073     virtual CInstruction& operator()(CCPU *cpu)
+00074     {
+00075       execute(cpu);
+00076       return *this;
+00077     }
+00078 
+00088     virtual const std::string& getName()
+00089     {
+00090       return m_name;
+00091     }
+00092 
+00102     virtual std::ostream& dump(std::ostream& stream)
+00103     {
+00104       stream << m_name;
+00105       return stream;
+00106     }
+00107 
+00118     friend std::ostream& operator<<(std::ostream& stream, CInstruction& instr)
+00119     {
+00120       return instr.dump(stream);
+00121     }
+00122 
+00132     virtual const unsigned parseRegister(const std::string& str);
+00133 
+00145     virtual void checkRegister(CCPU *cpu, const unsigned regidx);
+00146 
+00156     virtual CInstruction *factory() = 0;
+00157 
+00168     virtual void compile(std::list<std::string>& params) = 0;
+00169 
+00179     virtual void execute(CCPU *cpu) = 0;
+00180 
+00181   protected:
+00182     /* members */
+00184     std::string m_name;
+00185 };
+00186 
+00187 #endif
+00188 
+00189 /* vim: set et sw=2 ts=2: */
+

Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCCPU-members.html b/ue3/doxygen/classCCPU-members.html new file mode 100644 index 0000000..921d0e7 --- /dev/null +++ b/ue3/doxygen/classCCPU-members.html @@ -0,0 +1,42 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CCPU Member List

This is the complete list of members for CCPU, including all inherited members.

+ + + + + + + + + + + + + + +
CCPU(const unsigned cnt)CCPU
getDisplays()CCPU [inline]
getFlagSign()CCPU [inline]
getFlagZero()CCPU [inline]
getMemory() const CCPU [inline]
getProgram()CCPU [inline]
getRegisterCount() const CCPU [inline]
getRegisters() const CCPU [inline]
run()CCPU
setFlagSign(const bool value)CCPU [inline]
setFlagZero(const bool value)CCPU [inline]
setMemory(CMem *memory)CCPU [inline]
setProgram(const CProgram *program)CCPU [inline]
~CCPU()CCPU


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCCPU.html b/ue3/doxygen/classCCPU.html new file mode 100644 index 0000000..c888360 --- /dev/null +++ b/ue3/doxygen/classCCPU.html @@ -0,0 +1,578 @@ + + +mycpu: CCPU Class Reference + + + + +
+ +
+
+ +
+

CCPU Class Reference

#include <ccpu.h> +

+ +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 CCPU (const unsigned cnt)
 Default ctor.
 ~CCPU ()
 Default dtor.
const unsigned getRegisterCount () const
 get number of registers
CDatgetRegisters () const
 get pointer to registers array
void setMemory (CMem *memory)
 set memory of cpu
CMemgetMemory () const
 get pointer to memory
void setProgram (const CProgram *program)
 set program to execute
const CProgramgetProgram ()
 get pointer to program
const std::set
+< CDisplay * > & 
getDisplays ()
 get set of pointers to displays
void setFlagZero (const bool value)
 set zero flag
const bool getFlagZero ()
 get value of zero flag
void setFlagSign (const bool value)
 set sign flag
const bool getFlagSign ()
 get value of sign flag
void run ()
 execute current program
+


Detailed Description

+CPU implementation. Used as a container for memory and instructions. Implements a run method to execute the program (= the instructions).

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + +
CCPU::CCPU (const unsigned  cnt  ) 
+
+
+ +

+Default ctor. +

+

Methodname:
CCPU
+
Parameters:
+ + +
cnt number of registers to allocate for this cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
CCPU::~CCPU (  ) 
+
+
+ +

+Default dtor. +

+

Methodname:
~CCPU
+
Parameters:
+ + +
- 
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
const unsigned CCPU::getRegisterCount (  )  const [inline]
+
+
+ +

+get number of registers +

+

Methodname:
getRegisterCount
+
Parameters:
+ + +
- 
+
+
Returns:
number of registers
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
CDat* CCPU::getRegisters (  )  const [inline]
+
+
+ +

+get pointer to registers array +

+

Methodname:
getRegisters
+
Parameters:
+ + +
- 
+
+
Returns:
pointer to registers array
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + +
void CCPU::setMemory (CMem memory  )  [inline]
+
+
+ +

+set memory of cpu +

+

Methodname:
setMemory
+
Parameters:
+ + +
memory pointer to memory
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
CMem* CCPU::getMemory (  )  const [inline]
+
+
+ +

+get pointer to memory +

+

Methodname:
getMemory
+
Parameters:
+ + +
- 
+
+
Returns:
pointer to memory
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + +
void CCPU::setProgram (const CProgram program  )  [inline]
+
+
+ +

+set program to execute +

+

Methodname:
setProgram
+
Parameters:
+ + +
program pointer to program
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
const CProgram* CCPU::getProgram (  )  [inline]
+
+
+ +

+get pointer to program +

+

Methodname:
getProgram
+
Parameters:
+ + +
- 
+
+
Returns:
pointer to program
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
const std::set<CDisplay *>& CCPU::getDisplays (  )  [inline]
+
+
+ +

+get set of pointers to displays +

+

Methodname:
getDisplays
+
Parameters:
+ + +
- 
+
+
Returns:
reference to set of pointers to displays
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + +
void CCPU::setFlagZero (const bool  value  )  [inline]
+
+
+ +

+set zero flag +

+

Methodname:
setFlagZero
+
Parameters:
+ + +
value new value of zero flag
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
const bool CCPU::getFlagZero (  )  [inline]
+
+
+ +

+get value of zero flag +

+

Methodname:
getFlagZero
+
Parameters:
+ + +
- 
+
+
Returns:
value of zero flag
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + +
void CCPU::setFlagSign (const bool  value  )  [inline]
+
+
+ +

+set sign flag +

+

Methodname:
setFlagSign
+
Parameters:
+ + +
value new value of sign flag
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
const bool CCPU::getFlagSign (  )  [inline]
+
+
+ +

+get value of sign flag +

+

Methodname:
getFlagSign
+
Parameters:
+ + +
- 
+
+
Returns:
value of sign flag
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
void CCPU::run (  ) 
+
+
+ +

+execute current program +

+

Methodname:
run
+
Parameters:
+ + +
- 
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +
+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDat.html b/ue3/doxygen/classCDat.html new file mode 100644 index 0000000..198ebc0 --- /dev/null +++ b/ue3/doxygen/classCDat.html @@ -0,0 +1,35 @@ + + +mycpu: CDat Class Reference + + + + +
+ +
+
+ +
+

CDat Class Reference

#include <cdat.h> +

+ + +
+


Detailed Description

+Datatype for CCPU and CMem
The documentation for this class was generated from the following file: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDatT-members.html b/ue3/doxygen/classCDatT-members.html new file mode 100644 index 0000000..a10a4d1 --- /dev/null +++ b/ue3/doxygen/classCDatT-members.html @@ -0,0 +1,48 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CDatT< T > Member List

This is the complete list of members for CDatT< T >, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + +
CDatT()CDatT< T > [inline]
CDatT(const CDatT &other)CDatT< T > [inline]
CDatT(T newval)CDatT< T > [inline]
getValue() const CDatT< T > [inline]
operator &=(const CDatT &x)CDatT< T > [inline]
operator *=(const CDatT &x)CDatT< T > [inline]
operator T()CDatT< T > [inline]
operator%=(const CDatT &x)CDatT< T > [inline]
operator++()CDatT< T > [inline]
operator+=(const CDatT &x)CDatT< T > [inline]
operator--()CDatT< T > [inline]
operator-=(const CDatT &x)CDatT< T > [inline]
operator/=(const CDatT &x)CDatT< T > [inline]
operator<(const CDatT &x) const CDatT< T > [inline]
operator<<(std::ostream &stream, CDatT cdat)CDatT< T > [friend]
operator==(const CDatT &x) const CDatT< T > [inline]
operator>>(std::istream &stream, CDatT &cdat)CDatT< T > [friend]
operator^=(const CDatT &x)CDatT< T > [inline]
operator|=(const CDatT &x)CDatT< T > [inline]
~CDatT()CDatT< T > [inline]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDatT.html b/ue3/doxygen/classCDatT.html new file mode 100644 index 0000000..017eda0 --- /dev/null +++ b/ue3/doxygen/classCDatT.html @@ -0,0 +1,879 @@ + + +mycpu: CDatT< T > Class Template Reference + + + + +
+ +
+
+ +
+

CDatT< T > Class Template Reference

#include <cdat.h> +

+ +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 CDatT ()
 Default ctor.
 ~CDatT ()
 Default dtor.
 CDatT (const CDatT &other)
 Copy constructor for CDatT.
 CDatT (T newval)
 Copy constructor for int.
getValue () const
 returns value of CDatT
 operator T ()
 convert to T
bool operator< (const CDatT &x) const
 implementation of operator <
bool operator== (const CDatT &x) const
 implementation of operator ==
CDatToperator+= (const CDatT &x)
 implementation of operator +=
CDatToperator-= (const CDatT &x)
 implementation of operator -=
CDatToperator *= (const CDatT &x)
 implementation of operator *=
CDatToperator/= (const CDatT &x)
 implementation of operator /=
CDatToperator%= (const CDatT &x)
 implementation of operator %=
CDatToperator|= (const CDatT &x)
 implementation of operator |=
CDatToperator &= (const CDatT &x)
 implementation of operator &=
CDatToperator^= (const CDatT &x)
 implementation of operator ^=
CDatToperator++ ()
 implementation of operator ++
CDatToperator-- ()
 implementation of operator --

Friends

std::ostream & operator<< (std::ostream &stream, CDatT cdat)
 Shift/output operator for outputstream.
std::istream & operator>> (std::istream &stream, CDatT &cdat)
 Shift/read operator for inputstream.
+


Detailed Description

+

template<class T>
+ class CDatT< T >

+ +Datatype template for CCPU and CMem.

Constructor & Destructor Documentation

+ +
+
+
+template<class T>
+ + + + + + + + +
CDatT< T >::CDatT (  )  [inline]
+
+
+ +

+Default ctor. +

+

Methodname:
CDatT
+
Parameters:
+ + +
- 
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
bad_alloc 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + +
CDatT< T >::~CDatT (  )  [inline]
+
+
+ +

+Default dtor. +

+

Methodname:
~CDatT
+
Parameters:
+ + +
- 
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
CDatT< T >::CDatT (const CDatT< T > &  other  )  [inline]
+
+
+ +

+Copy constructor for CDatT. +

+

Methodname:
CDatT
+
Parameters:
+ + +
other reference to CDatT which will be copied
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
CDatT< T >::CDatT ( newval  )  [inline]
+
+
+ +

+Copy constructor for int. +

+

Methodname:
CDatT
+
Parameters:
+ + +
newval new value for CDatT
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


Member Function Documentation

+ +
+
+
+template<class T>
+ + + + + + + + +
T CDatT< T >::getValue (  )  const [inline]
+
+
+ +

+returns value of CDatT +

+

Methodname:
getValue
+
Parameters:
+ + +
- 
+
+
Returns:
value of CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + +
CDatT< T >::operator T (  )  [inline]
+
+
+ +

+convert to T +

+

Methodname:
operator T
+
Parameters:
+ + +
- 
+
+
Returns:
T
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
bool CDatT< T >::operator< (const CDatT< T > &  x  )  const [inline]
+
+
+ +

+implementation of operator < +

+

Methodname:
operator<
+
Parameters:
+ + +
x reference to CDatT
+
+
Returns:
true if cdat is less than object x
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
bool CDatT< T >::operator== (const CDatT< T > &  x  )  const [inline]
+
+
+ +

+implementation of operator == +

+

Methodname:
operator==
+
Parameters:
+ + +
x reference to CDatT
+
+
Returns:
true if cdat equals object x
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
CDatT& CDatT< T >::operator+= (const CDatT< T > &  x  )  [inline]
+
+
+ +

+implementation of operator += +

+

Methodname:
operator+=
+
Parameters:
+ + +
x reference to CDatT
+
+
Returns:
refecence to CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
CDatT& CDatT< T >::operator-= (const CDatT< T > &  x  )  [inline]
+
+
+ +

+implementation of operator -= +

+

Methodname:
operator-=
+
Parameters:
+ + +
x reference to CDatT
+
+
Returns:
refecence to CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
CDatT& CDatT< T >::operator *= (const CDatT< T > &  x  )  [inline]
+
+
+ +

+implementation of operator *= +

+

Methodname:
operator*=
+
Parameters:
+ + +
x reference to CDatT
+
+
Returns:
refecence to CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
CDatT& CDatT< T >::operator/= (const CDatT< T > &  x  )  [inline]
+
+
+ +

+implementation of operator /= +

+

Methodname:
operator/=
+
Parameters:
+ + +
x reference to CDatT
+
+
Returns:
refecence to CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
CDatT& CDatT< T >::operator%= (const CDatT< T > &  x  )  [inline]
+
+
+ +

+implementation of operator %= +

+

Methodname:
operator%=
+
Parameters:
+ + +
x reference to CDatT
+
+
Returns:
refecence to CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
CDatT& CDatT< T >::operator|= (const CDatT< T > &  x  )  [inline]
+
+
+ +

+implementation of operator |= +

+

Methodname:
operator|=
+
Parameters:
+ + +
x reference to CDatT
+
+
Returns:
refecence to CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
CDatT& CDatT< T >::operator &= (const CDatT< T > &  x  )  [inline]
+
+
+ +

+implementation of operator &= +

+

Methodname:
operator&=
+
Parameters:
+ + +
x reference to CDatT
+
+
Returns:
refecence to CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
CDatT& CDatT< T >::operator^= (const CDatT< T > &  x  )  [inline]
+
+
+ +

+implementation of operator ^= +

+

Methodname:
operator^=
+
Parameters:
+ + +
x reference to CDatT
+
+
Returns:
refecence to CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + +
CDatT& CDatT< T >::operator++ (  )  [inline]
+
+
+ +

+implementation of operator ++ +

+

Methodname:
operator++
+
Parameters:
+ + +
- 
+
+
Returns:
refecence to CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + +
CDatT& CDatT< T >::operator-- (  )  [inline]
+
+
+ +

+implementation of operator -- +

+

Methodname:
operator--
+
Parameters:
+ + +
- 
+
+
Returns:
refecence to CDatT
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


Friends And Related Function Documentation

+ +
+
+
+template<class T>
+ + + + + + + + + + + + + + + + + + +
std::ostream& operator<< (std::ostream &  stream,
CDatT< T >  cdat 
) [friend]
+
+
+ +

+Shift/output operator for outputstream. +

+

Methodname:
operator<<
+
Parameters:
+ + + +
stream reference to outputstream
cdat object which will be printed to stream
+
+
Returns:
reference to outputstream
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + + + + + + + + + + +
std::istream& operator>> (std::istream &  stream,
CDatT< T > &  cdat 
) [friend]
+
+
+ +

+Shift/read operator for inputstream. +

+

Methodname:
operator>>
+
Parameters:
+ + + +
stream reference to inputstream
cdat reference to object which will be read from stream
+
+
Returns:
reference to inputstream
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


The documentation for this class was generated from the following file: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDisplay.html b/ue3/doxygen/classCDisplay.html new file mode 100644 index 0000000..90ab9c9 --- /dev/null +++ b/ue3/doxygen/classCDisplay.html @@ -0,0 +1,45 @@ + + +mycpu: CDisplay Class Reference + + + + +
+ +
+
+ +
+

CDisplay Class Reference

#include <cdisplay.h> +

+

+Inheritance diagram for CDisplay:
+
+ +

+ +CDisplayWDEZ +CDisplayWHEX + +
+ + +
+

Detailed Description

+Memory definition for CCPU
The documentation for this class was generated from the following file: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDisplay.png b/ue3/doxygen/classCDisplay.png new file mode 100644 index 0000000..6aee098 Binary files /dev/null and b/ue3/doxygen/classCDisplay.png differ diff --git a/ue3/doxygen/classCDisplayT-members.html b/ue3/doxygen/classCDisplayT-members.html new file mode 100644 index 0000000..248f8bd --- /dev/null +++ b/ue3/doxygen/classCDisplayT-members.html @@ -0,0 +1,33 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CDisplayT< T > Member List

This is the complete list of members for CDisplayT< T >, including all inherited members.

+ + + + + +
CDisplayT(std::string name)CDisplayT< T > [inline]
display(const T &value)=0CDisplayT< T > [pure virtual]
getName()CDisplayT< T > [inline, virtual]
m_nameCDisplayT< T > [protected]
~CDisplayT()CDisplayT< T > [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDisplayT.html b/ue3/doxygen/classCDisplayT.html new file mode 100644 index 0000000..e837e43 --- /dev/null +++ b/ue3/doxygen/classCDisplayT.html @@ -0,0 +1,227 @@ + + +mycpu: CDisplayT< T > Class Template Reference + + + + +
+ +
+
+ +
+

CDisplayT< T > Class Template Reference

#include <cdisplay.h> +

+ +

+List of all members. + + + + + + + + + + + + + + + + + +

Public Member Functions

 CDisplayT (std::string name)
 Default ctor.
virtual ~CDisplayT ()
 Default dtor.
virtual const
+std::string & 
getName ()
 returns name of display
virtual void display (const T &value)=0
 prints value to display

Protected Attributes

std::string m_name
+


Detailed Description

+

template<class T>
+ class CDisplayT< T >

+ +Abstract template class for displays

Constructor & Destructor Documentation

+ +
+
+
+template<class T>
+ + + + + + + + + +
CDisplayT< T >::CDisplayT (std::string  name  )  [inline]
+
+
+ +

+Default ctor. +

+

Methodname:
CDisplayT
+
Parameters:
+ + +
name name of display
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + +
virtual CDisplayT< T >::~CDisplayT (  )  [inline, virtual]
+
+
+ +

+Default dtor. +

+

Methodname:
~CDisplayT
+
Parameters:
+ + +
- 
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


Member Function Documentation

+ +
+
+
+template<class T>
+ + + + + + + + +
virtual const std::string& CDisplayT< T >::getName (  )  [inline, virtual]
+
+
+ +

+returns name of display +

+

Methodname:
getName
+
Parameters:
+ + +
- 
+
+
Returns:
name of display
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+
+template<class T>
+ + + + + + + + + +
virtual void CDisplayT< T >::display (const T &  value  )  [pure virtual]
+
+
+ +

+prints value to display +

+

Methodname:
display
+
Parameters:
+ + +
value value to display
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


Member Data Documentation

+ +
+
+
+template<class T>
+ + + + +
std::string CDisplayT< T >::m_name [protected]
+
+
+ +

+name of display +

+

+


The documentation for this class was generated from the following file: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDisplayWDEZ-members.html b/ue3/doxygen/classCDisplayWDEZ-members.html new file mode 100644 index 0000000..eadb3c0 --- /dev/null +++ b/ue3/doxygen/classCDisplayWDEZ-members.html @@ -0,0 +1,30 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CDisplayWDEZ Member List

This is the complete list of members for CDisplayWDEZ, including all inherited members.

+ + +
CDisplayWDEZ() (defined in CDisplayWDEZ)CDisplayWDEZ [inline]
display(const CDat &value)CDisplayWDEZ [inline]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDisplayWDEZ.html b/ue3/doxygen/classCDisplayWDEZ.html new file mode 100644 index 0000000..dfc9ae9 --- /dev/null +++ b/ue3/doxygen/classCDisplayWDEZ.html @@ -0,0 +1,87 @@ + + +mycpu: CDisplayWDEZ Class Reference + + + + +
+ +
+
+ +
+

CDisplayWDEZ Class Reference

#include <displays.h> +

+

+Inheritance diagram for CDisplayWDEZ:
+
+ +

+ +CDisplay + +
+ +

+List of all members. + + + + + +

Public Member Functions

void display (const CDat &value)
 prints value to display
+


Detailed Description

+Implementation of CDisplay Prints CDat to stdout as decimal

Member Function Documentation

+ +
+
+ + + + + + + + + +
void CDisplayWDEZ::display (const CDat value  )  [inline]
+
+
+ +

+prints value to display +

+

Methodname:
display
+
Parameters:
+ + +
value value to display
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


The documentation for this class was generated from the following file: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDisplayWDEZ.png b/ue3/doxygen/classCDisplayWDEZ.png new file mode 100644 index 0000000..10fe751 Binary files /dev/null and b/ue3/doxygen/classCDisplayWDEZ.png differ diff --git a/ue3/doxygen/classCDisplayWHEX-members.html b/ue3/doxygen/classCDisplayWHEX-members.html new file mode 100644 index 0000000..d00d3bc --- /dev/null +++ b/ue3/doxygen/classCDisplayWHEX-members.html @@ -0,0 +1,30 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CDisplayWHEX Member List

This is the complete list of members for CDisplayWHEX, including all inherited members.

+ + +
CDisplayWHEX() (defined in CDisplayWHEX)CDisplayWHEX [inline]
display(const CDat &value)CDisplayWHEX [inline]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDisplayWHEX.html b/ue3/doxygen/classCDisplayWHEX.html new file mode 100644 index 0000000..bc2d8f1 --- /dev/null +++ b/ue3/doxygen/classCDisplayWHEX.html @@ -0,0 +1,87 @@ + + +mycpu: CDisplayWHEX Class Reference + + + + +
+ +
+
+ +
+

CDisplayWHEX Class Reference

#include <displays.h> +

+

+Inheritance diagram for CDisplayWHEX:
+
+ +

+ +CDisplay + +
+ +

+List of all members. + + + + + +

Public Member Functions

void display (const CDat &value)
 prints value to display
+


Detailed Description

+Implementation of CDisplay Prints CDat to stdout as decimal

Member Function Documentation

+ +
+
+ + + + + + + + + +
void CDisplayWHEX::display (const CDat value  )  [inline]
+
+
+ +

+prints value to display +

+

Methodname:
display
+
Parameters:
+ + +
value value to display
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


The documentation for this class was generated from the following file: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCDisplayWHEX.png b/ue3/doxygen/classCDisplayWHEX.png new file mode 100644 index 0000000..67b90b6 Binary files /dev/null and b/ue3/doxygen/classCDisplayWHEX.png differ diff --git a/ue3/doxygen/classCInstruction-members.html b/ue3/doxygen/classCInstruction-members.html new file mode 100644 index 0000000..e22ff7f --- /dev/null +++ b/ue3/doxygen/classCInstruction-members.html @@ -0,0 +1,41 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstruction Member List

This is the complete list of members for CInstruction, including all inherited members.

+ + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
compile(std::list< std::string > &params)=0CInstruction [pure virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)=0CInstruction [pure virtual]
factory()=0CInstruction [pure virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstruction.html b/ue3/doxygen/classCInstruction.html new file mode 100644 index 0000000..052da01 --- /dev/null +++ b/ue3/doxygen/classCInstruction.html @@ -0,0 +1,575 @@ + + +mycpu: CInstruction Class Reference + + + + +
+ +
+
+ +
+

CInstruction Class Reference

#include <cinstruction.h> +

+

+Inheritance diagram for CInstruction:
+
+ +

+ +CInstructionAdd +CInstructionDec +CInstructionDiv +CInstructionInc +CInstructionJumpA +CInstructionJumpS +CInstructionJumpZ +CInstructionLabel +CInstructionLoad +CInstructionMul +CInstructionStore +CInstructionSub +CInstructionTest +CInstructionWrite + +
+ +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 CInstruction (std::string name)
 Default ctor.
virtual ~CInstruction ()
 Default dtor.
virtual bool operator== (std::string &name)
 implementation of operator ==
virtual CInstructionoperator() (CCPU *cpu)
 implementation of operator (CCPU)
virtual const
+std::string & 
getName ()
 returns instruction name
virtual std::ostream & dump (std::ostream &stream)
 dumps information about instruction to outputstream
virtual const unsigned parseRegister (const std::string &str)
 parses register syntax Rx (e.g. "R1")
virtual void checkRegister (CCPU *cpu, const unsigned regidx)
 performs a register boundary check does the register exist in cpu?
virtual CInstructionfactory ()=0
 creates a new instance of this instruction
virtual void compile (std::list< std::string > &params)=0
 parses instruction parameters and prepares the instruction for executing
virtual void execute (CCPU *cpu)=0
 executes the instruction

Protected Attributes

std::string m_name

Friends

std::ostream & operator<< (std::ostream &stream, CInstruction &instr)
 Shift/output operator for outputstream.
+


Detailed Description

+Abstract class for displays

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + +
CInstruction::CInstruction (std::string  name  )  [inline]
+
+
+ +

+Default ctor. +

+

Methodname:
CInstruction
+
Parameters:
+ + +
name name of instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
virtual CInstruction::~CInstruction (  )  [inline, virtual]
+
+
+ +

+Default dtor. +

+

Methodname:
~CInstruction
+
Parameters:
+ + +
- 
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


Member Function Documentation

+ +
+
+ + + + + + + + + +
virtual bool CInstruction::operator== (std::string &  name  )  [inline, virtual]
+
+
+ +

+implementation of operator == +

+

Methodname:
operator==
+
Parameters:
+ + +
name reference to std::string
+
+
Returns:
true if instructionname is name
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + +
virtual CInstruction& CInstruction::operator() (CCPU cpu  )  [inline, virtual]
+
+
+ +

+implementation of operator (CCPU) +

+

Methodname:
operator()
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
virtual const std::string& CInstruction::getName (  )  [inline, virtual]
+
+
+ +

+returns instruction name +

+

Methodname:
getName
+
Parameters:
+ + +
- 
+
+
Returns:
name of instruction
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + +
virtual std::ostream& CInstruction::dump (std::ostream &  stream  )  [inline, virtual]
+
+
+ +

+dumps information about instruction to outputstream +

+

Methodname:
dump
+
Parameters:
+ + +
stream outputstream
+
+
Returns:
reference to outputstream
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + +
const unsigned CInstruction::parseRegister (const std::string &  str  )  [virtual]
+
+
+ +

+parses register syntax Rx (e.g. "R1") +

+

Methodname:
parseRegister
+
Parameters:
+ + +
str register in assembler syntax
+
+
Returns:
registernumber
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void CInstruction::checkRegister (CCPU cpu,
const unsigned  regidx 
) [inline, virtual]
+
+
+ +

+performs a register boundary check does the register exist in cpu? +

+

Methodname:
checkRegister
+
Parameters:
+ + + +
cpu pointer to cpu
regidx registernumber
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
virtual CInstruction* CInstruction::factory (  )  [pure virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implemented in CInstructionInc, CInstructionDec, CInstructionAdd, CInstructionSub, CInstructionMul, CInstructionDiv, CInstructionLoad, CInstructionStore, CInstructionTest, CInstructionLabel, CInstructionJumpA, CInstructionJumpZ, CInstructionJumpS, and CInstructionWrite.

+ +
+

+ +

+
+ + + + + + + + + +
virtual void CInstruction::compile (std::list< std::string > &  params  )  [pure virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implemented in CInstructionInc, CInstructionDec, CInstructionAdd, CInstructionSub, CInstructionMul, CInstructionDiv, CInstructionLoad, CInstructionStore, CInstructionTest, CInstructionLabel, CInstructionJumpA, CInstructionJumpZ, CInstructionJumpS, and CInstructionWrite.

+ +
+

+ +

+
+ + + + + + + + + +
virtual void CInstruction::execute (CCPU cpu  )  [pure virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implemented in CInstructionInc, CInstructionDec, CInstructionAdd, CInstructionSub, CInstructionMul, CInstructionDiv, CInstructionLoad, CInstructionStore, CInstructionTest, CInstructionLabel, CInstructionJumpA, CInstructionJumpZ, CInstructionJumpS, and CInstructionWrite.

+ +
+

+


Friends And Related Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
std::ostream& operator<< (std::ostream &  stream,
CInstruction instr 
) [friend]
+
+
+ +

+Shift/output operator for outputstream. +

+

Methodname:
operator<<
+
Parameters:
+ + + +
stream reference to outputstream
instr object which will be printed to stream
+
+
Returns:
reference to outputstream
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
std::string CInstruction::m_name [protected]
+
+
+ +

+name of instruction +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstruction.png b/ue3/doxygen/classCInstruction.png new file mode 100644 index 0000000..e04bf41 Binary files /dev/null and b/ue3/doxygen/classCInstruction.png differ diff --git a/ue3/doxygen/classCInstructionAdd-members.html b/ue3/doxygen/classCInstructionAdd-members.html new file mode 100644 index 0000000..c53ae2e --- /dev/null +++ b/ue3/doxygen/classCInstructionAdd-members.html @@ -0,0 +1,45 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionAdd Member List

This is the complete list of members for CInstructionAdd, including all inherited members.

+ + + + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionAdd() (defined in CInstructionAdd)CInstructionAdd [inline]
compile(std::list< std::string > &params)CInstructionAdd [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionAdd [virtual]
factory()CInstructionAdd [inline, virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
m_regidx1CInstructionAdd [protected]
m_regidx2CInstructionAdd [protected]
m_regidx3CInstructionAdd [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionAdd.html b/ue3/doxygen/classCInstructionAdd.html new file mode 100644 index 0000000..a659978 --- /dev/null +++ b/ue3/doxygen/classCInstructionAdd.html @@ -0,0 +1,223 @@ + + +mycpu: CInstructionAdd Class Reference + + + + +
+ +
+
+ +
+

CInstructionAdd Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionAdd:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + + + + + +

Public Member Functions

CInstructionAddfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

unsigned m_regidx1
unsigned m_regidx2
unsigned m_regidx3
+


Detailed Description

+Implementation of assembler command "add" Syntax: add R1, R2, R3 (R1 = R2 + R3)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionAdd* CInstructionAdd::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionAdd::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionAdd::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned CInstructionAdd::m_regidx1 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
unsigned CInstructionAdd::m_regidx2 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
unsigned CInstructionAdd::m_regidx3 [protected]
+
+
+ +

+register number +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionAdd.png b/ue3/doxygen/classCInstructionAdd.png new file mode 100644 index 0000000..02a7e9c Binary files /dev/null and b/ue3/doxygen/classCInstructionAdd.png differ diff --git a/ue3/doxygen/classCInstructionDec-members.html b/ue3/doxygen/classCInstructionDec-members.html new file mode 100644 index 0000000..f177e69 --- /dev/null +++ b/ue3/doxygen/classCInstructionDec-members.html @@ -0,0 +1,43 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionDec Member List

This is the complete list of members for CInstructionDec, including all inherited members.

+ + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionDec() (defined in CInstructionDec)CInstructionDec [inline]
compile(std::list< std::string > &params)CInstructionDec [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionDec [virtual]
factory()CInstructionDec [inline, virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
m_regidx1CInstructionDec [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionDec.html b/ue3/doxygen/classCInstructionDec.html new file mode 100644 index 0000000..b32ffa7 --- /dev/null +++ b/ue3/doxygen/classCInstructionDec.html @@ -0,0 +1,189 @@ + + +mycpu: CInstructionDec Class Reference + + + + +
+ +
+
+ +
+

CInstructionDec Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionDec:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + +

Public Member Functions

CInstructionDecfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

unsigned m_regidx1
+


Detailed Description

+Implementation of assembler command "dec" Syntax: dec R1 (R1--)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionDec* CInstructionDec::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionDec::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionDec::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned CInstructionDec::m_regidx1 [protected]
+
+
+ +

+register number +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionDec.png b/ue3/doxygen/classCInstructionDec.png new file mode 100644 index 0000000..9cf686c Binary files /dev/null and b/ue3/doxygen/classCInstructionDec.png differ diff --git a/ue3/doxygen/classCInstructionDiv-members.html b/ue3/doxygen/classCInstructionDiv-members.html new file mode 100644 index 0000000..57ac77e --- /dev/null +++ b/ue3/doxygen/classCInstructionDiv-members.html @@ -0,0 +1,45 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionDiv Member List

This is the complete list of members for CInstructionDiv, including all inherited members.

+ + + + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionDiv() (defined in CInstructionDiv)CInstructionDiv [inline]
compile(std::list< std::string > &params)CInstructionDiv [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionDiv [virtual]
factory()CInstructionDiv [inline, virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
m_regidx1CInstructionDiv [protected]
m_regidx2CInstructionDiv [protected]
m_regidx3CInstructionDiv [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionDiv.html b/ue3/doxygen/classCInstructionDiv.html new file mode 100644 index 0000000..2bc0023 --- /dev/null +++ b/ue3/doxygen/classCInstructionDiv.html @@ -0,0 +1,223 @@ + + +mycpu: CInstructionDiv Class Reference + + + + +
+ +
+
+ +
+

CInstructionDiv Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionDiv:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + + + + + +

Public Member Functions

CInstructionDivfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

unsigned m_regidx1
unsigned m_regidx2
unsigned m_regidx3
+


Detailed Description

+Implementation of assembler command "div" Syntax: div R1, R2, R3 (R1 = R2 / R3)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionDiv* CInstructionDiv::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionDiv::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionDiv::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned CInstructionDiv::m_regidx1 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
unsigned CInstructionDiv::m_regidx2 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
unsigned CInstructionDiv::m_regidx3 [protected]
+
+
+ +

+register number +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionDiv.png b/ue3/doxygen/classCInstructionDiv.png new file mode 100644 index 0000000..11ede71 Binary files /dev/null and b/ue3/doxygen/classCInstructionDiv.png differ diff --git a/ue3/doxygen/classCInstructionInc-members.html b/ue3/doxygen/classCInstructionInc-members.html new file mode 100644 index 0000000..5d66408 --- /dev/null +++ b/ue3/doxygen/classCInstructionInc-members.html @@ -0,0 +1,43 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionInc Member List

This is the complete list of members for CInstructionInc, including all inherited members.

+ + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionInc() (defined in CInstructionInc)CInstructionInc [inline]
compile(std::list< std::string > &params)CInstructionInc [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionInc [virtual]
factory()CInstructionInc [inline, virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
m_regidx1CInstructionInc [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionInc.html b/ue3/doxygen/classCInstructionInc.html new file mode 100644 index 0000000..4756c23 --- /dev/null +++ b/ue3/doxygen/classCInstructionInc.html @@ -0,0 +1,189 @@ + + +mycpu: CInstructionInc Class Reference + + + + +
+ +
+
+ +
+

CInstructionInc Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionInc:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + +

Public Member Functions

CInstructionIncfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

unsigned m_regidx1
+


Detailed Description

+Implementation of assembler command "inc" Syntax: inc R1 (R1++)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionInc* CInstructionInc::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionInc::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionInc::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned CInstructionInc::m_regidx1 [protected]
+
+
+ +

+register number +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionInc.png b/ue3/doxygen/classCInstructionInc.png new file mode 100644 index 0000000..8954718 Binary files /dev/null and b/ue3/doxygen/classCInstructionInc.png differ diff --git a/ue3/doxygen/classCInstructionJumpA-members.html b/ue3/doxygen/classCInstructionJumpA-members.html new file mode 100644 index 0000000..023a9a7 --- /dev/null +++ b/ue3/doxygen/classCInstructionJumpA-members.html @@ -0,0 +1,43 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionJumpA Member List

This is the complete list of members for CInstructionJumpA, including all inherited members.

+ + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionJumpA() (defined in CInstructionJumpA)CInstructionJumpA [inline]
compile(std::list< std::string > &params)CInstructionJumpA [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionJumpA [virtual]
factory()CInstructionJumpA [inline, virtual]
getName()CInstruction [inline, virtual]
m_addrCInstructionJumpA [protected]
m_nameCInstruction [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionJumpA.html b/ue3/doxygen/classCInstructionJumpA.html new file mode 100644 index 0000000..edd2e4b --- /dev/null +++ b/ue3/doxygen/classCInstructionJumpA.html @@ -0,0 +1,189 @@ + + +mycpu: CInstructionJumpA Class Reference + + + + +
+ +
+
+ +
+

CInstructionJumpA Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionJumpA:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + +

Public Member Functions

CInstructionJumpAfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

std::string m_addr
+


Detailed Description

+Implementation of assembler command "jumpa" Syntax: jumpa labelname (jump to labelname)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionJumpA* CInstructionJumpA::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionJumpA::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionJumpA::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
std::string CInstructionJumpA::m_addr [protected]
+
+
+ +

+labelname +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionJumpA.png b/ue3/doxygen/classCInstructionJumpA.png new file mode 100644 index 0000000..48998d1 Binary files /dev/null and b/ue3/doxygen/classCInstructionJumpA.png differ diff --git a/ue3/doxygen/classCInstructionJumpS-members.html b/ue3/doxygen/classCInstructionJumpS-members.html new file mode 100644 index 0000000..4ccefd9 --- /dev/null +++ b/ue3/doxygen/classCInstructionJumpS-members.html @@ -0,0 +1,43 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionJumpS Member List

This is the complete list of members for CInstructionJumpS, including all inherited members.

+ + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionJumpS() (defined in CInstructionJumpS)CInstructionJumpS [inline]
compile(std::list< std::string > &params)CInstructionJumpS [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionJumpS [virtual]
factory()CInstructionJumpS [inline, virtual]
getName()CInstruction [inline, virtual]
m_addrCInstructionJumpS [protected]
m_nameCInstruction [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionJumpS.html b/ue3/doxygen/classCInstructionJumpS.html new file mode 100644 index 0000000..1a5b7a0 --- /dev/null +++ b/ue3/doxygen/classCInstructionJumpS.html @@ -0,0 +1,189 @@ + + +mycpu: CInstructionJumpS Class Reference + + + + +
+ +
+
+ +
+

CInstructionJumpS Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionJumpS:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + +

Public Member Functions

CInstructionJumpSfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

std::string m_addr
+


Detailed Description

+Implementation of assembler command "jumps" Syntax: jumps labelname (jump to labelname if signflag)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionJumpS* CInstructionJumpS::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionJumpS::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionJumpS::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
std::string CInstructionJumpS::m_addr [protected]
+
+
+ +

+labelname +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionJumpS.png b/ue3/doxygen/classCInstructionJumpS.png new file mode 100644 index 0000000..635cddb Binary files /dev/null and b/ue3/doxygen/classCInstructionJumpS.png differ diff --git a/ue3/doxygen/classCInstructionJumpZ-members.html b/ue3/doxygen/classCInstructionJumpZ-members.html new file mode 100644 index 0000000..168bc98 --- /dev/null +++ b/ue3/doxygen/classCInstructionJumpZ-members.html @@ -0,0 +1,43 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionJumpZ Member List

This is the complete list of members for CInstructionJumpZ, including all inherited members.

+ + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionJumpZ() (defined in CInstructionJumpZ)CInstructionJumpZ [inline]
compile(std::list< std::string > &params)CInstructionJumpZ [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionJumpZ [virtual]
factory()CInstructionJumpZ [inline, virtual]
getName()CInstruction [inline, virtual]
m_addrCInstructionJumpZ [protected]
m_nameCInstruction [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionJumpZ.html b/ue3/doxygen/classCInstructionJumpZ.html new file mode 100644 index 0000000..a8bb339 --- /dev/null +++ b/ue3/doxygen/classCInstructionJumpZ.html @@ -0,0 +1,189 @@ + + +mycpu: CInstructionJumpZ Class Reference + + + + +
+ +
+
+ +
+

CInstructionJumpZ Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionJumpZ:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + +

Public Member Functions

CInstructionJumpZfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

std::string m_addr
+


Detailed Description

+Implementation of assembler command "jumpz" Syntax: jumpz labelname (jump to labelname if zeroflag)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionJumpZ* CInstructionJumpZ::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionJumpZ::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionJumpZ::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
std::string CInstructionJumpZ::m_addr [protected]
+
+
+ +

+labelname +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionJumpZ.png b/ue3/doxygen/classCInstructionJumpZ.png new file mode 100644 index 0000000..4840f60 Binary files /dev/null and b/ue3/doxygen/classCInstructionJumpZ.png differ diff --git a/ue3/doxygen/classCInstructionLabel-members.html b/ue3/doxygen/classCInstructionLabel-members.html new file mode 100644 index 0000000..3933096 --- /dev/null +++ b/ue3/doxygen/classCInstructionLabel-members.html @@ -0,0 +1,42 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionLabel Member List

This is the complete list of members for CInstructionLabel, including all inherited members.

+ + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionLabel() (defined in CInstructionLabel)CInstructionLabel [inline]
compile(std::list< std::string > &params)CInstructionLabel [inline, virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionLabel [inline, virtual]
factory()CInstructionLabel [inline, virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionLabel.html b/ue3/doxygen/classCInstructionLabel.html new file mode 100644 index 0000000..e6994be --- /dev/null +++ b/ue3/doxygen/classCInstructionLabel.html @@ -0,0 +1,170 @@ + + +mycpu: CInstructionLabel Class Reference + + + + +
+ +
+
+ +
+

CInstructionLabel Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionLabel:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + +

Public Member Functions

CInstructionLabelfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction
+


Detailed Description

+Implementation of assembler command "label" Syntax: label name:

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionLabel* CInstructionLabel::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionLabel::compile (std::list< std::string > &  params  )  [inline, virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionLabel::execute (CCPU cpu  )  [inline, virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


The documentation for this class was generated from the following file: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionLabel.png b/ue3/doxygen/classCInstructionLabel.png new file mode 100644 index 0000000..2725289 Binary files /dev/null and b/ue3/doxygen/classCInstructionLabel.png differ diff --git a/ue3/doxygen/classCInstructionLoad-members.html b/ue3/doxygen/classCInstructionLoad-members.html new file mode 100644 index 0000000..8786246 --- /dev/null +++ b/ue3/doxygen/classCInstructionLoad-members.html @@ -0,0 +1,44 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionLoad Member List

This is the complete list of members for CInstructionLoad, including all inherited members.

+ + + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionLoad() (defined in CInstructionLoad)CInstructionLoad [inline]
compile(std::list< std::string > &params)CInstructionLoad [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionLoad [virtual]
factory()CInstructionLoad [inline, virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
m_regidx1CInstructionLoad [protected]
m_regidx2CInstructionLoad [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionLoad.html b/ue3/doxygen/classCInstructionLoad.html new file mode 100644 index 0000000..83bbcc2 --- /dev/null +++ b/ue3/doxygen/classCInstructionLoad.html @@ -0,0 +1,206 @@ + + +mycpu: CInstructionLoad Class Reference + + + + +
+ +
+
+ +
+

CInstructionLoad Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionLoad:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + + + +

Public Member Functions

CInstructionLoadfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

unsigned m_regidx1
unsigned m_regidx2
+


Detailed Description

+Implementation of assembler command "load" Syntax: load R1, R2 (R1 = memory[R2])

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionLoad* CInstructionLoad::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionLoad::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionLoad::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned CInstructionLoad::m_regidx1 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
unsigned CInstructionLoad::m_regidx2 [protected]
+
+
+ +

+register number +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionLoad.png b/ue3/doxygen/classCInstructionLoad.png new file mode 100644 index 0000000..45fe9bf Binary files /dev/null and b/ue3/doxygen/classCInstructionLoad.png differ diff --git a/ue3/doxygen/classCInstructionMul-members.html b/ue3/doxygen/classCInstructionMul-members.html new file mode 100644 index 0000000..cb1ade9 --- /dev/null +++ b/ue3/doxygen/classCInstructionMul-members.html @@ -0,0 +1,45 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionMul Member List

This is the complete list of members for CInstructionMul, including all inherited members.

+ + + + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionMul() (defined in CInstructionMul)CInstructionMul [inline]
compile(std::list< std::string > &params)CInstructionMul [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionMul [virtual]
factory()CInstructionMul [inline, virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
m_regidx1CInstructionMul [protected]
m_regidx2CInstructionMul [protected]
m_regidx3CInstructionMul [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionMul.html b/ue3/doxygen/classCInstructionMul.html new file mode 100644 index 0000000..7f7bdd9 --- /dev/null +++ b/ue3/doxygen/classCInstructionMul.html @@ -0,0 +1,223 @@ + + +mycpu: CInstructionMul Class Reference + + + + +
+ +
+
+ +
+

CInstructionMul Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionMul:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + + + + + +

Public Member Functions

CInstructionMulfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

unsigned m_regidx1
unsigned m_regidx2
unsigned m_regidx3
+


Detailed Description

+Implementation of assembler command "mul" Syntax: mul R1, R2, R3 (R1 = R2 * R3)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionMul* CInstructionMul::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionMul::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionMul::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned CInstructionMul::m_regidx1 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
unsigned CInstructionMul::m_regidx2 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
unsigned CInstructionMul::m_regidx3 [protected]
+
+
+ +

+register number +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionMul.png b/ue3/doxygen/classCInstructionMul.png new file mode 100644 index 0000000..f300a09 Binary files /dev/null and b/ue3/doxygen/classCInstructionMul.png differ diff --git a/ue3/doxygen/classCInstructionStore-members.html b/ue3/doxygen/classCInstructionStore-members.html new file mode 100644 index 0000000..d06efb9 --- /dev/null +++ b/ue3/doxygen/classCInstructionStore-members.html @@ -0,0 +1,44 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionStore Member List

This is the complete list of members for CInstructionStore, including all inherited members.

+ + + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionStore() (defined in CInstructionStore)CInstructionStore [inline]
compile(std::list< std::string > &params)CInstructionStore [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionStore [virtual]
factory()CInstructionStore [inline, virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
m_regidx1CInstructionStore [protected]
m_regidx2CInstructionStore [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionStore.html b/ue3/doxygen/classCInstructionStore.html new file mode 100644 index 0000000..f2d0133 --- /dev/null +++ b/ue3/doxygen/classCInstructionStore.html @@ -0,0 +1,206 @@ + + +mycpu: CInstructionStore Class Reference + + + + +
+ +
+
+ +
+

CInstructionStore Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionStore:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + + + +

Public Member Functions

CInstructionStorefactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

unsigned m_regidx1
unsigned m_regidx2
+


Detailed Description

+Implementation of assembler command "store" Syntax: store R1, R2 (memory[R2] = R1)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionStore* CInstructionStore::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionStore::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionStore::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned CInstructionStore::m_regidx1 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
unsigned CInstructionStore::m_regidx2 [protected]
+
+
+ +

+register number +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionStore.png b/ue3/doxygen/classCInstructionStore.png new file mode 100644 index 0000000..b368340 Binary files /dev/null and b/ue3/doxygen/classCInstructionStore.png differ diff --git a/ue3/doxygen/classCInstructionSub-members.html b/ue3/doxygen/classCInstructionSub-members.html new file mode 100644 index 0000000..4908357 --- /dev/null +++ b/ue3/doxygen/classCInstructionSub-members.html @@ -0,0 +1,45 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionSub Member List

This is the complete list of members for CInstructionSub, including all inherited members.

+ + + + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionSub() (defined in CInstructionSub)CInstructionSub [inline]
compile(std::list< std::string > &params)CInstructionSub [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionSub [virtual]
factory()CInstructionSub [inline, virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
m_regidx1CInstructionSub [protected]
m_regidx2CInstructionSub [protected]
m_regidx3CInstructionSub [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionSub.html b/ue3/doxygen/classCInstructionSub.html new file mode 100644 index 0000000..669d6bb --- /dev/null +++ b/ue3/doxygen/classCInstructionSub.html @@ -0,0 +1,223 @@ + + +mycpu: CInstructionSub Class Reference + + + + +
+ +
+
+ +
+

CInstructionSub Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionSub:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + + + + + +

Public Member Functions

CInstructionSubfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

unsigned m_regidx1
unsigned m_regidx2
unsigned m_regidx3
+


Detailed Description

+Implementation of assembler command "sub" Syntax: sub R1, R2, R3 (R1 = R2 - R3)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionSub* CInstructionSub::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionSub::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionSub::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned CInstructionSub::m_regidx1 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
unsigned CInstructionSub::m_regidx2 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
unsigned CInstructionSub::m_regidx3 [protected]
+
+
+ +

+register number +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionSub.png b/ue3/doxygen/classCInstructionSub.png new file mode 100644 index 0000000..a618537 Binary files /dev/null and b/ue3/doxygen/classCInstructionSub.png differ diff --git a/ue3/doxygen/classCInstructionTest-members.html b/ue3/doxygen/classCInstructionTest-members.html new file mode 100644 index 0000000..8da9434 --- /dev/null +++ b/ue3/doxygen/classCInstructionTest-members.html @@ -0,0 +1,43 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionTest Member List

This is the complete list of members for CInstructionTest, including all inherited members.

+ + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionTest() (defined in CInstructionTest)CInstructionTest [inline]
compile(std::list< std::string > &params)CInstructionTest [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionTest [virtual]
factory()CInstructionTest [inline, virtual]
getName()CInstruction [inline, virtual]
m_nameCInstruction [protected]
m_regidx1CInstructionTest [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionTest.html b/ue3/doxygen/classCInstructionTest.html new file mode 100644 index 0000000..fdb87d8 --- /dev/null +++ b/ue3/doxygen/classCInstructionTest.html @@ -0,0 +1,189 @@ + + +mycpu: CInstructionTest Class Reference + + + + +
+ +
+
+ +
+

CInstructionTest Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionTest:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + +

Public Member Functions

CInstructionTestfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

unsigned m_regidx1
+


Detailed Description

+Implementation of assembler command "test" Syntax: test R1 (R1 == 0: zeroflag: true, R1 < 0: signflag: true)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionTest* CInstructionTest::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionTest::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionTest::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned CInstructionTest::m_regidx1 [protected]
+
+
+ +

+register number +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionTest.png b/ue3/doxygen/classCInstructionTest.png new file mode 100644 index 0000000..c91fec4 Binary files /dev/null and b/ue3/doxygen/classCInstructionTest.png differ diff --git a/ue3/doxygen/classCInstructionWrite-members.html b/ue3/doxygen/classCInstructionWrite-members.html new file mode 100644 index 0000000..63a0154 --- /dev/null +++ b/ue3/doxygen/classCInstructionWrite-members.html @@ -0,0 +1,44 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CInstructionWrite Member List

This is the complete list of members for CInstructionWrite, including all inherited members.

+ + + + + + + + + + + + + + + + +
checkRegister(CCPU *cpu, const unsigned regidx)CInstruction [inline, virtual]
CInstruction(std::string name)CInstruction [inline]
CInstructionWrite() (defined in CInstructionWrite)CInstructionWrite [inline]
compile(std::list< std::string > &params)CInstructionWrite [virtual]
dump(std::ostream &stream)CInstruction [inline, virtual]
execute(CCPU *cpu)CInstructionWrite [virtual]
factory()CInstructionWrite [inline, virtual]
getName()CInstruction [inline, virtual]
m_devCInstructionWrite [protected]
m_nameCInstruction [protected]
m_regidx1CInstructionWrite [protected]
operator()(CCPU *cpu)CInstruction [inline, virtual]
operator<<(std::ostream &stream, CInstruction &instr)CInstruction [friend]
operator==(std::string &name)CInstruction [inline, virtual]
parseRegister(const std::string &str)CInstruction [virtual]
~CInstruction()CInstruction [inline, virtual]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionWrite.html b/ue3/doxygen/classCInstructionWrite.html new file mode 100644 index 0000000..074667d --- /dev/null +++ b/ue3/doxygen/classCInstructionWrite.html @@ -0,0 +1,206 @@ + + +mycpu: CInstructionWrite Class Reference + + + + +
+ +
+
+ +
+

CInstructionWrite Class Reference

#include <instructions.h> +

+

+Inheritance diagram for CInstructionWrite:
+
+ +

+ +CInstruction + +
+ +

+List of all members. + + + + + + + + + + + + + + + + +

Public Member Functions

CInstructionWritefactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 parses instruction parameters and prepares the instruction for executing
void execute (CCPU *cpu)
 executes the instruction

Protected Attributes

unsigned m_regidx1
std::string m_dev
+


Detailed Description

+Implementation of assembler command "write" Syntax: write DEV, R1 (write R1 to DEV, which is a name of a display)

Member Function Documentation

+ +
+
+ + + + + + + + +
CInstructionWrite* CInstructionWrite::factory (  )  [inline, virtual]
+
+
+ +

+creates a new instance of this instruction +

+

Methodname:
factory
+
Parameters:
+ + +
- 
+
+
Returns:
new instruction instance
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionWrite::compile (std::list< std::string > &  params  )  [virtual]
+
+
+ +

+parses instruction parameters and prepares the instruction for executing +

+

Methodname:
compile
+
Parameters:
+ + +
params list of parameters of this instruction
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+ +

+
+ + + + + + + + + +
void CInstructionWrite::execute (CCPU cpu  )  [virtual]
+
+
+ +

+executes the instruction +

+

Methodname:
execute
+
Parameters:
+ + +
cpu pointer to cpu
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +

Implements CInstruction.

+ +
+

+


Member Data Documentation

+ +
+
+ + + + +
unsigned CInstructionWrite::m_regidx1 [protected]
+
+
+ +

+register number +

+

+ +

+
+ + + + +
std::string CInstructionWrite::m_dev [protected]
+
+
+ +

+device name +

+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCInstructionWrite.png b/ue3/doxygen/classCInstructionWrite.png new file mode 100644 index 0000000..23bf880 Binary files /dev/null and b/ue3/doxygen/classCInstructionWrite.png differ diff --git a/ue3/doxygen/classCMem.html b/ue3/doxygen/classCMem.html new file mode 100644 index 0000000..6cc1e67 --- /dev/null +++ b/ue3/doxygen/classCMem.html @@ -0,0 +1,35 @@ + + +mycpu: CMem Class Reference + + + + +
+ +
+
+ +
+

CMem Class Reference

#include <cmem.h> +

+ + +
+


Detailed Description

+Memory definition for CCPU
The documentation for this class was generated from the following file: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCProgram-members.html b/ue3/doxygen/classCProgram-members.html new file mode 100644 index 0000000..014f9cf --- /dev/null +++ b/ue3/doxygen/classCProgram-members.html @@ -0,0 +1,33 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CProgram Member List

This is the complete list of members for CProgram, including all inherited members.

+ + + + + +
compile(std::istream &in)CProgram
CProgram()CProgram
findLabel(const std::string &label) const CProgram
getLabels() const CProgram [inline]
~CProgram()CProgram


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCProgram.html b/ue3/doxygen/classCProgram.html new file mode 100644 index 0000000..a756aaa --- /dev/null +++ b/ue3/doxygen/classCProgram.html @@ -0,0 +1,234 @@ + + +mycpu: CProgram Class Reference + + + + +
+ +
+
+ +
+

CProgram Class Reference

#include <cprogram.h> +

+ +

+List of all members. + + + + + + + + + + + + + + + + + +

Public Member Functions

 CProgram ()
 Default ctor.
 ~CProgram ()
 Default dtor.
const std::map
+< std::string,
+ unsigned > & 
getLabels () const
 get reference to labels map
unsigned findLabel (const std::string &label) const
 search for label
void compile (std::istream &in)
 create instructions from parsing stream
+


Detailed Description

+CProgram extends std::vector and adds a method for parsing programfile. This adds instances of CInstruction to CProgram itself.

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
CProgram::CProgram (  ) 
+
+
+ +

+Default ctor. +

+

Methodname:
CProgram
+
Parameters:
+ + +
- 
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
CProgram::~CProgram (  ) 
+
+
+ +

+Default dtor. +

+

Methodname:
~CProgram
+
Parameters:
+ + +
- 
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


Member Function Documentation

+ +
+
+ + + + + + + + +
const std::map<std::string, unsigned>& CProgram::getLabels (  )  const [inline]
+
+
+ +

+get reference to labels map +

+

Methodname:
getLabels
+
Parameters:
+ + +
- 
+
+
Returns:
reference to labels map
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + +
unsigned CProgram::findLabel (const std::string &  label  )  const
+
+
+ +

+search for label +

+

Methodname:
findLabel
+
Parameters:
+ + +
label name of label to search for
+
+
Returns:
index of found label in program
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + +
void CProgram::compile (std::istream &  in  ) 
+
+
+ +

+create instructions from parsing stream +

+

Methodname:
compile
+
Parameters:
+ + +
in inputstream to read from
+
+
Returns:
void
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +
+

+


The documentation for this class was generated from the following files: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCVectorMem-members.html b/ue3/doxygen/classCVectorMem-members.html new file mode 100644 index 0000000..30a783a --- /dev/null +++ b/ue3/doxygen/classCVectorMem-members.html @@ -0,0 +1,29 @@ + + +mycpu: Member List + + + + +
+ +
+
+ +
+

CVectorMem< T, Allocator > Member List

This is the complete list of members for CVectorMem< T, Allocator >, including all inherited members.

+ +
initialize(std::istream &in)CVectorMem< T, Allocator > [inline]


Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/classCVectorMem.html b/ue3/doxygen/classCVectorMem.html new file mode 100644 index 0000000..599c348 --- /dev/null +++ b/ue3/doxygen/classCVectorMem.html @@ -0,0 +1,83 @@ + + +mycpu: CVectorMem< T, Allocator > Class Template Reference + + + + +
+ +
+
+ +
+

CVectorMem< T, Allocator > Class Template Reference

#include <cmem.h> +

+ +

+List of all members. + + + + + +

Public Member Functions

void initialize (std::istream &in)
 initialize the vector with the content of istream. istream is read per line. empty lines will add unitialized elements.
+


Detailed Description

+

template<class T, class Allocator = std::allocator<T>>
+ class CVectorMem< T, Allocator >

+ +Extends std::vector template for use as memory for CCPU.

Member Function Documentation

+ +
+
+
+template<class T, class Allocator = std::allocator<T>>
+ + + + + + + + + +
void CVectorMem< T, Allocator >::initialize (std::istream &  in  )  [inline]
+
+
+ +

+initialize the vector with the content of istream. istream is read per line. empty lines will add unitialized elements. +

+

Methodname:
initialize
+
Parameters:
+ + +
in inputstream to read from
+
+
Returns:
void
+
Global variables used:
none
+
Exceptions:
+ + +
std::runtime_error 
+
+
Conditions:
none
+ +
+

+


The documentation for this class was generated from the following file: +
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/cmem_8h-source.html b/ue3/doxygen/cmem_8h-source.html new file mode 100644 index 0000000..6dfeef4 --- /dev/null +++ b/ue3/doxygen/cmem_8h-source.html @@ -0,0 +1,95 @@ + + +mycpu: mycpu/cmem.h Source File + + + + +
+ +
+

mycpu/cmem.h

00001 
+00008 #ifndef CMEM_H
+00009 #define CMEM_H 1
+00010 
+00011 #include <vector>
+00012 #include <istream>
+00013 #include <sstream>
+00014 #include <stdexcept>
+00015 #include <boost/lexical_cast.hpp>
+00016 #ifdef DEBUG
+00017 # include <iostream>
+00018 # include <iomanip>
+00019 #endif
+00020 #include "cdat.h"
+00021 
+00027 template <class T, class Allocator=std::allocator<T> >
+00028 class CVectorMem
+00029   : public std::vector<T, Allocator>
+00030 {
+00031   public:
+00032     using std::vector<T, Allocator>::size;
+00033     using std::vector<T, Allocator>::at;
+00034 
+00045     void initialize(std::istream& in)
+00046     {
+00047       if (!in.good())
+00048         return;
+00049 
+00050       std::string line;
+00051       unsigned i = 0;
+00052       while (!in.eof() && in.good())
+00053       {
+00054         ++i;
+00055         std::getline(in, line);
+00056 
+00057         /* skip last line if it's empty */
+00058         if (line.empty() && in.eof())
+00059           break;
+00060 
+00061         T value;
+00062         try
+00063         {
+00064           if (!line.empty())
+00065             value = boost::lexical_cast<T>(line);
+00066         }
+00067         catch(boost::bad_lexical_cast& ex)
+00068         {
+00069           std::stringstream sstr;
+00070           sstr << "Unable to convert input (line " << i << "): " << ex.what();
+00071           throw std::runtime_error(sstr.str());
+00072         }
+00073 
+00074         push_back(value);
+00075       }
+00076     }
+00077 
+00078 #if DEBUG
+00079 
+00088     void dump(std::ostream& out)
+00089     {
+00090       out << "[MEMORY DUMP]" << std::endl;
+00091       for(unsigned i = 0; i < size(); ++i)
+00092       {
+00093         out << "[" << std::setw(4) << std::setfill('0') << i << "]  "
+00094             << at(i) << std::endl;
+00095       }
+00096     }
+00097 #endif
+00098 };
+00099 
+00105 typedef CVectorMem<CDat> CMem;
+00106 
+00107 #endif
+00108 
+00109 /* vim: set et sw=2 ts=2: */
+

Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/cprogram_8h-source.html b/ue3/doxygen/cprogram_8h-source.html new file mode 100644 index 0000000..dfd39a8 --- /dev/null +++ b/ue3/doxygen/cprogram_8h-source.html @@ -0,0 +1,60 @@ + + +mycpu: mycpu/cprogram.h Source File + + + + +
+ +
+

mycpu/cprogram.h

00001 
+00008 #ifndef CPROGRAM_H
+00009 #define CPROGRAM_H 1
+00010 
+00011 #include <vector>
+00012 #include <set>
+00013 #include <map>
+00014 #include "cinstruction.h"
+00015 
+00022 class CProgram
+00023   : public std::vector<CInstruction *>
+00024 {
+00025   public:
+00035     CProgram();
+00036 
+00046     ~CProgram();
+00047 
+00057     const std::map<std::string, unsigned>& getLabels() const
+00058     {
+00059       return m_labels;
+00060     }
+00061 
+00071     unsigned findLabel(const std::string& label) const;
+00072 
+00082     void compile(std::istream& in);
+00083 
+00084 #if DEBUG
+00085 
+00094     void dump(std::ostream& out);
+00095 #endif
+00096 
+00097   private:
+00098     /* members */
+00100     std::set<CInstruction *> m_instrset;
+00101     std::map<std::string, unsigned> m_labels;
+00102 };
+00103 
+00104 #endif
+00105 
+00106 /* vim: set et sw=2 ts=2: */
+

Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/displays_8h-source.html b/ue3/doxygen/displays_8h-source.html new file mode 100644 index 0000000..7bc4076 --- /dev/null +++ b/ue3/doxygen/displays_8h-source.html @@ -0,0 +1,60 @@ + + +mycpu: mycpu/displays.h Source File + + + + +
+ +
+

mycpu/displays.h

00001 
+00008 #ifndef DISPLAYS_H
+00009 #define DISPLAYS_H 1
+00010 
+00011 #include <iomanip>
+00012 #include "cdisplay.h"
+00013 
+00020 class CDisplayWDEZ
+00021   : public CDisplay
+00022 {
+00023   public:
+00024     CDisplayWDEZ()
+00025       : CDisplay("wdez")
+00026     {}
+00027 
+00037     void display(const CDat &value)
+00038     {
+00039       std::cout << std::dec << value << std::endl;
+00040     }
+00041 };
+00042 
+00043 /*============================================================================*/
+00044 
+00051 class CDisplayWHEX
+00052   : public CDisplay
+00053 {
+00054   public:
+00055     CDisplayWHEX()
+00056       : CDisplay("whex")
+00057     {}
+00058 
+00068     void display(const CDat &value)
+00069     {
+00070       std::cout << std::hex << value << std::endl;
+00071     }
+00072 };
+00073 
+00074 #endif
+00075 
+00076 /* vim: set et sw=2 ts=2: */
+

Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/doxygen.css b/ue3/doxygen/doxygen.css new file mode 100644 index 0000000..c7db1a8 --- /dev/null +++ b/ue3/doxygen/doxygen.css @@ -0,0 +1,358 @@ +BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV { + font-family: Geneva, Arial, Helvetica, sans-serif; +} +BODY,TD { + font-size: 90%; +} +H1 { + text-align: center; + font-size: 160%; +} +H2 { + font-size: 120%; +} +H3 { + font-size: 100%; +} +CAPTION { font-weight: bold } +DIV.qindex { + width: 100%; + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + padding: 2px; + line-height: 140%; +} +DIV.nav { + width: 100%; + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + padding: 2px; + line-height: 140%; +} +DIV.navtab { + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} +TD.navtab { + font-size: 70%; +} +A.qindex { + text-decoration: none; + font-weight: bold; + color: #1A419D; +} +A.qindex:visited { + text-decoration: none; + font-weight: bold; + color: #1A419D +} +A.qindex:hover { + text-decoration: none; + background-color: #ddddff; +} +A.qindexHL { + text-decoration: none; + font-weight: bold; + background-color: #6666cc; + color: #ffffff; + border: 1px double #9295C2; +} +A.qindexHL:hover { + text-decoration: none; + background-color: #6666cc; + color: #ffffff; +} +A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff } +A.el { text-decoration: none; font-weight: bold } +A.elRef { font-weight: bold } +A.code:link { text-decoration: none; font-weight: normal; color: #0000FF} +A.code:visited { text-decoration: none; font-weight: normal; color: #0000FF} +A.codeRef:link { font-weight: normal; color: #0000FF} +A.codeRef:visited { font-weight: normal; color: #0000FF} +A:hover { text-decoration: none; background-color: #f2f2ff } +DL.el { margin-left: -1cm } +.fragment { + font-family: monospace, fixed; + font-size: 95%; +} +PRE.fragment { + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + margin-top: 4px; + margin-bottom: 4px; + margin-left: 2px; + margin-right: 8px; + padding-left: 6px; + padding-right: 6px; + padding-top: 4px; + padding-bottom: 4px; +} +DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } + +DIV.groupHeader { + margin-left: 16px; + margin-top: 12px; + margin-bottom: 6px; + font-weight: bold; +} +DIV.groupText { margin-left: 16px; font-style: italic; font-size: 90% } +BODY { + background: white; + color: black; + margin-right: 20px; + margin-left: 20px; +} +TD.indexkey { + background-color: #e8eef2; + font-weight: bold; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px; + border: 1px solid #CCCCCC; +} +TD.indexvalue { + background-color: #e8eef2; + font-style: italic; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px; + border: 1px solid #CCCCCC; +} +TR.memlist { + background-color: #f0f0f0; +} +P.formulaDsp { text-align: center; } +IMG.formulaDsp { } +IMG.formulaInl { vertical-align: middle; } +SPAN.keyword { color: #008000 } +SPAN.keywordtype { color: #604020 } +SPAN.keywordflow { color: #e08000 } +SPAN.comment { color: #800000 } +SPAN.preprocessor { color: #806020 } +SPAN.stringliteral { color: #002080 } +SPAN.charliteral { color: #008080 } +.mdescLeft { + padding: 0px 8px 4px 8px; + font-size: 80%; + font-style: italic; + background-color: #FAFAFA; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; +} +.mdescRight { + padding: 0px 8px 4px 8px; + font-size: 80%; + font-style: italic; + background-color: #FAFAFA; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; +} +.memItemLeft { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: solid; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memItemRight { + padding: 1px 8px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: solid; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memTemplItemLeft { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: none; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memTemplItemRight { + padding: 1px 8px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: none; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memTemplParams { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: solid; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + color: #606060; + background-color: #FAFAFA; + font-size: 80%; +} +.search { color: #003399; + font-weight: bold; +} +FORM.search { + margin-bottom: 0px; + margin-top: 0px; +} +INPUT.search { font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} +TD.tiny { font-size: 75%; +} +a { + color: #1A41A8; +} +a:visited { + color: #2A3798; +} +.dirtab { padding: 4px; + border-collapse: collapse; + border: 1px solid #84b0c7; +} +TH.dirtab { background: #e8eef2; + font-weight: bold; +} +HR { height: 1px; + border: none; + border-top: 1px solid black; +} + +/* Style for detailed member documentation */ +.memtemplate { + font-size: 80%; + color: #606060; + font-weight: normal; +} +.memnav { + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} +.memitem { + padding: 4px; + background-color: #eef3f5; + border-width: 1px; + border-style: solid; + border-color: #dedeee; + -moz-border-radius: 8px 8px 8px 8px; +} +.memname { + white-space: nowrap; + font-weight: bold; +} +.memdoc{ + padding-left: 10px; +} +.memproto { + background-color: #d5e1e8; + width: 100%; + border-width: 1px; + border-style: solid; + border-color: #84b0c7; + font-weight: bold; + -moz-border-radius: 8px 8px 8px 8px; +} +.paramkey { + text-align: right; +} +.paramtype { + white-space: nowrap; +} +.paramname { + color: #602020; + font-style: italic; + white-space: nowrap; +} +/* End Styling for detailed member documentation */ + +/* for the tree view */ +.ftvtree { + font-family: sans-serif; + margin:0.5em; +} +.directory { font-size: 9pt; font-weight: bold; } +.directory h3 { margin: 0px; margin-top: 1em; font-size: 11pt; } +.directory > h3 { margin-top: 0; } +.directory p { margin: 0px; white-space: nowrap; } +.directory div { display: none; margin: 0px; } +.directory img { vertical-align: -30%; } diff --git a/ue3/doxygen/doxygen.png b/ue3/doxygen/doxygen.png new file mode 100644 index 0000000..f0a274b Binary files /dev/null and b/ue3/doxygen/doxygen.png differ diff --git a/ue3/doxygen/files.html b/ue3/doxygen/files.html new file mode 100644 index 0000000..7921007 --- /dev/null +++ b/ue3/doxygen/files.html @@ -0,0 +1,30 @@ + + +mycpu: File Index + + + + +
+ +
+

mycpu File List

Here is a list of all documented files with brief descriptions: + + + + + + + + +
mycpu/ccpu.h [code]
mycpu/cdat.h [code]
mycpu/cdisplay.h [code]
mycpu/cinstruction.h [code]
mycpu/cmem.h [code]
mycpu/cprogram.h [code]
mycpu/displays.h [code]
mycpu/instructions.h [code]
+
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/functions.html b/ue3/doxygen/functions.html new file mode 100644 index 0000000..2ec6814 --- /dev/null +++ b/ue3/doxygen/functions.html @@ -0,0 +1,259 @@ + + +mycpu: Class Members + + + + +
+ +
+
+ +
+
+ +
+
+ +
+ +

+Here is a list of all documented class members with links to the class documentation for each member: +

+

- c -

+

- d -

+

- e -

+

- f -

+

- g -

+

- i -

+

- m -

+

- o -

+

- p -

+

- r -

+

- s -

+

- ~ -

+
Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/functions_func.html b/ue3/doxygen/functions_func.html new file mode 100644 index 0000000..bb8ca9a --- /dev/null +++ b/ue3/doxygen/functions_func.html @@ -0,0 +1,219 @@ + + +mycpu: Class Members - Functions + + + + +
+ +
+
+ +
+
+ +
+
+ +
+ +

+  +

+

- c -

+

- d -

+

- e -

+

- f -

+

- g -

+

- i -

+

- o -

+

- p -

+

- r -

+

- s -

+

- ~ -

+
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/functions_rela.html b/ue3/doxygen/functions_rela.html new file mode 100644 index 0000000..d7d0fde --- /dev/null +++ b/ue3/doxygen/functions_rela.html @@ -0,0 +1,44 @@ + + +mycpu: Class Members - Related Functions + + + + +
+ +
+
+ +
+
+ +
+  +

+

+
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/functions_vars.html b/ue3/doxygen/functions_vars.html new file mode 100644 index 0000000..5b7e130 --- /dev/null +++ b/ue3/doxygen/functions_vars.html @@ -0,0 +1,71 @@ + + +mycpu: Class Members - Variables + + + + +
+ +
+
+ +
+
+ +
+  +

+

+
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/hierarchy.html b/ue3/doxygen/hierarchy.html new file mode 100644 index 0000000..2fd63a5 --- /dev/null +++ b/ue3/doxygen/hierarchy.html @@ -0,0 +1,58 @@ + + +mycpu: Hierarchical Index + + + + +
+ +
+
+ +
+

mycpu Class Hierarchy

This inheritance list is sorted roughly, but not completely, alphabetically: +
Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/index.html b/ue3/doxygen/index.html new file mode 100644 index 0000000..502a5e9 --- /dev/null +++ b/ue3/doxygen/index.html @@ -0,0 +1,22 @@ + + +mycpu: Main Page + + + + +
+ +
+

mycpu Documentation

+

+


Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/instructions_8h-source.html b/ue3/doxygen/instructions_8h-source.html new file mode 100644 index 0000000..7054830 --- /dev/null +++ b/ue3/doxygen/instructions_8h-source.html @@ -0,0 +1,347 @@ + + +mycpu: mycpu/instructions.h Source File + + + + +
+ +
+

mycpu/instructions.h

00001 
+00008 #ifndef INSTRUCTIONS_H
+00009 #define INSTRUCTIONS_H 1
+00010 
+00011 #include "cinstruction.h"
+00012 #include "ccpu.h"
+00013 
+00021 class CInstructionInc
+00022  : public CInstruction
+00023 {
+00024   public:
+00025     CInstructionInc()
+00026       : CInstruction("inc")
+00027     {}
+00028 
+00029     CInstructionInc *factory()
+00030     {
+00031       return new CInstructionInc;
+00032     }
+00033 
+00034     void compile(std::list<std::string>& params);
+00035     void execute(CCPU *cpu);
+00036 
+00037   protected:
+00039     unsigned m_regidx1;
+00040 };
+00041 
+00042 /*============================================================================*/
+00043 
+00051 class CInstructionDec
+00052  : public CInstruction
+00053 {
+00054   public:
+00055     CInstructionDec()
+00056       : CInstruction("dec")
+00057     {}
+00058 
+00059     CInstructionDec *factory()
+00060     {
+00061       return new CInstructionDec;
+00062     }
+00063 
+00064     void compile(std::list<std::string>& params);
+00065     void execute(CCPU *cpu);
+00066 
+00067   protected:
+00069     unsigned m_regidx1;
+00070 };
+00071 
+00072 /*============================================================================*/
+00073 
+00081 class CInstructionAdd
+00082  : public CInstruction
+00083 {
+00084   public:
+00085     CInstructionAdd()
+00086       : CInstruction("add")
+00087     {}
+00088 
+00089     CInstructionAdd *factory()
+00090     {
+00091       return new CInstructionAdd;
+00092     }
+00093 
+00094     void compile(std::list<std::string>& params);
+00095     void execute(CCPU *cpu);
+00096 
+00097   protected:
+00099     unsigned m_regidx1;
+00101     unsigned m_regidx2;
+00103     unsigned m_regidx3;
+00104 };
+00105 
+00106 /*============================================================================*/
+00107 
+00115 class CInstructionSub
+00116  : public CInstruction
+00117 {
+00118   public:
+00119     CInstructionSub()
+00120       : CInstruction("sub")
+00121     {}
+00122 
+00123     CInstructionSub *factory()
+00124     {
+00125       return new CInstructionSub;
+00126     }
+00127 
+00128     void compile(std::list<std::string>& params);
+00129     void execute(CCPU *cpu);
+00130 
+00131   protected:
+00133     unsigned m_regidx1;
+00135     unsigned m_regidx2;
+00137     unsigned m_regidx3;
+00138 };
+00139 
+00140 /*============================================================================*/
+00141 
+00149 class CInstructionMul
+00150  : public CInstruction
+00151 {
+00152   public:
+00153     CInstructionMul()
+00154       : CInstruction("mul")
+00155     {}
+00156 
+00157     CInstructionMul *factory()
+00158     {
+00159       return new CInstructionMul;
+00160     }
+00161 
+00162     void compile(std::list<std::string>& params);
+00163     void execute(CCPU *cpu);
+00164 
+00165   protected:
+00167     unsigned m_regidx1;
+00169     unsigned m_regidx2;
+00171     unsigned m_regidx3;
+00172 };
+00173 
+00174 /*============================================================================*/
+00175 
+00183 class CInstructionDiv
+00184  : public CInstruction
+00185 {
+00186   public:
+00187     CInstructionDiv()
+00188       : CInstruction("div")
+00189     {}
+00190 
+00191     CInstructionDiv *factory()
+00192     {
+00193       return new CInstructionDiv;
+00194     }
+00195 
+00196     void compile(std::list<std::string>& params);
+00197     void execute(CCPU *cpu);
+00198 
+00199   protected:
+00201     unsigned m_regidx1;
+00203     unsigned m_regidx2;
+00205     unsigned m_regidx3;
+00206 };
+00207 
+00208 /*============================================================================*/
+00209 
+00217 class CInstructionLoad
+00218  : public CInstruction
+00219 {
+00220   public:
+00221     CInstructionLoad()
+00222       : CInstruction("load")
+00223     {}
+00224 
+00225     CInstructionLoad *factory()
+00226     {
+00227       return new CInstructionLoad;
+00228     }
+00229 
+00230     void compile(std::list<std::string>& params);
+00231     void execute(CCPU *cpu);
+00232 
+00233   protected:
+00235     unsigned m_regidx1;
+00237     unsigned m_regidx2;
+00238 };
+00239 
+00240 /*============================================================================*/
+00241 
+00249 class CInstructionStore
+00250  : public CInstruction
+00251 {
+00252   public:
+00253     CInstructionStore()
+00254       : CInstruction("store")
+00255     {}
+00256 
+00257     CInstructionStore *factory()
+00258     {
+00259       return new CInstructionStore;
+00260     }
+00261 
+00262     void compile(std::list<std::string>& params);
+00263     void execute(CCPU *cpu);
+00264 
+00265   protected:
+00267     unsigned m_regidx1;
+00269     unsigned m_regidx2;
+00270 };
+00271 
+00272 /*============================================================================*/
+00273 
+00281 class CInstructionTest
+00282  : public CInstruction
+00283 {
+00284   public:
+00285     CInstructionTest()
+00286       : CInstruction("test")
+00287     {}
+00288 
+00289     CInstructionTest *factory()
+00290     {
+00291       return new CInstructionTest;
+00292     }
+00293 
+00294     void compile(std::list<std::string>& params);
+00295     void execute(CCPU *cpu);
+00296 
+00297   protected:
+00299     unsigned m_regidx1;
+00300 };
+00301 
+00302 /*============================================================================*/
+00303 
+00310 class CInstructionLabel
+00311  : public CInstruction
+00312 {
+00313   public:
+00314     CInstructionLabel()
+00315       : CInstruction("label")
+00316     {}
+00317 
+00318     CInstructionLabel *factory()
+00319     {
+00320       return new CInstructionLabel;
+00321     }
+00322 
+00323     void compile(std::list<std::string>& params)
+00324     {}
+00325 
+00326     void execute(CCPU *cpu)
+00327     {}
+00328 };
+00329 
+00330 /*============================================================================*/
+00331 
+00339 class CInstructionJumpA
+00340  : public CInstruction
+00341 {
+00342   public:
+00343     CInstructionJumpA()
+00344       : CInstruction("jumpa"), m_addr("")
+00345     {}
+00346 
+00347     CInstructionJumpA *factory()
+00348     {
+00349       return new CInstructionJumpA;
+00350     }
+00351 
+00352     void compile(std::list<std::string>& params);
+00353     void execute(CCPU *cpu);
+00354 
+00355   protected:
+00357     std::string m_addr;
+00358 };
+00359 
+00360 /*============================================================================*/
+00361 
+00369 class CInstructionJumpZ
+00370  : public CInstruction
+00371 {
+00372   public:
+00373     CInstructionJumpZ()
+00374       : CInstruction("jumpz"), m_addr("")
+00375     {}
+00376 
+00377     CInstructionJumpZ *factory()
+00378     {
+00379       return new CInstructionJumpZ;
+00380     }
+00381 
+00382     void compile(std::list<std::string>& params);
+00383     void execute(CCPU *cpu);
+00384 
+00385   protected:
+00387     std::string m_addr;
+00388 };
+00389 
+00390 /*============================================================================*/
+00391 
+00399 class CInstructionJumpS
+00400  : public CInstruction
+00401 {
+00402   public:
+00403     CInstructionJumpS()
+00404       : CInstruction("jumps"), m_addr("")
+00405     {}
+00406 
+00407     CInstructionJumpS *factory()
+00408     {
+00409       return new CInstructionJumpS;
+00410     }
+00411 
+00412     void compile(std::list<std::string>& params);
+00413     void execute(CCPU *cpu);
+00414 
+00415   protected:
+00417     std::string m_addr;
+00418 };
+00419 
+00420 /*============================================================================*/
+00421 
+00429 class CInstructionWrite
+00430  : public CInstruction
+00431 {
+00432   public:
+00433     CInstructionWrite()
+00434       : CInstruction("write"), m_dev("")
+00435     {}
+00436 
+00437     CInstructionWrite *factory()
+00438     {
+00439       return new CInstructionWrite;
+00440     }
+00441 
+00442     void compile(std::list<std::string>& params);
+00443     void execute(CCPU *cpu);
+00444 
+00445   protected:
+00447     unsigned m_regidx1;
+00449     std::string m_dev;
+00450 };
+00451 
+00452 #endif
+00453 
+00454 /* vim: set et sw=2 ts=2: */
+

Generated on Thu May 14 18:19:16 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/namespaces.html b/ue3/doxygen/namespaces.html new file mode 100644 index 0000000..171e4d7 --- /dev/null +++ b/ue3/doxygen/namespaces.html @@ -0,0 +1,23 @@ + + +mycpu: Namespace Index + + + + +
+ +
+

mycpu Namespace List

Here is a list of all documented namespaces with brief descriptions: + +
stdCPU implementation. Used as a container for memory and instructions. Implements an run method to execute the program (= the instructions)
+
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/namespacestd.html b/ue3/doxygen/namespacestd.html new file mode 100644 index 0000000..29c962a --- /dev/null +++ b/ue3/doxygen/namespacestd.html @@ -0,0 +1,32 @@ + + +mycpu: std Namespace Reference + + + + +
+ +
+

std Namespace Reference

CPU implementation. Used as a container for memory and instructions. Implements an run method to execute the program (= the instructions). +More... +

+ + +
+


Detailed Description

+CPU implementation. Used as a container for memory and instructions. Implements an run method to execute the program (= the instructions). +

+

Modulname:
ccpu
+
Author:
Guenther Neuwirth (0626638), Manuel Mausz (0728348)
+
Date:
10.05.2009
+
Generated on Thu May 14 18:19:17 2009 for mycpu by  + +doxygen 1.5.3
+ + diff --git a/ue3/doxygen/tab_b.gif b/ue3/doxygen/tab_b.gif new file mode 100644 index 0000000..0d62348 Binary files /dev/null and b/ue3/doxygen/tab_b.gif differ diff --git a/ue3/doxygen/tab_l.gif b/ue3/doxygen/tab_l.gif new file mode 100644 index 0000000..9b1e633 Binary files /dev/null and b/ue3/doxygen/tab_l.gif differ diff --git a/ue3/doxygen/tab_r.gif b/ue3/doxygen/tab_r.gif new file mode 100644 index 0000000..ce9dd9f Binary files /dev/null and b/ue3/doxygen/tab_r.gif differ diff --git a/ue3/doxygen/tabs.css b/ue3/doxygen/tabs.css new file mode 100644 index 0000000..c37faaf --- /dev/null +++ b/ue3/doxygen/tabs.css @@ -0,0 +1,102 @@ +/* tabs styles, based on http://www.alistapart.com/articles/slidingdoors */ + +DIV.tabs +{ + float : left; + width : 100%; + background : url("tab_b.gif") repeat-x bottom; + margin-bottom : 4px; +} + +DIV.tabs UL +{ + margin : 0px; + padding-left : 10px; + list-style : none; +} + +DIV.tabs LI, DIV.tabs FORM +{ + display : inline; + margin : 0px; + padding : 0px; +} + +DIV.tabs FORM +{ + float : right; +} + +DIV.tabs A +{ + float : left; + background : url("tab_r.gif") no-repeat right top; + border-bottom : 1px solid #84B0C7; + font-size : x-small; + font-weight : bold; + text-decoration : none; +} + +DIV.tabs A:hover +{ + background-position: 100% -150px; +} + +DIV.tabs A:link, DIV.tabs A:visited, +DIV.tabs A:active, DIV.tabs A:hover +{ + color: #1A419D; +} + +DIV.tabs SPAN +{ + float : left; + display : block; + background : url("tab_l.gif") no-repeat left top; + padding : 5px 9px; + white-space : nowrap; +} + +DIV.tabs INPUT +{ + float : right; + display : inline; + font-size : 1em; +} + +DIV.tabs TD +{ + font-size : x-small; + font-weight : bold; + text-decoration : none; +} + + + +/* Commented Backslash Hack hides rule from IE5-Mac \*/ +DIV.tabs SPAN {float : none;} +/* End IE5-Mac hack */ + +DIV.tabs A:hover SPAN +{ + background-position: 0% -150px; +} + +DIV.tabs LI.current A +{ + background-position: 100% -150px; + border-width : 0px; +} + +DIV.tabs LI.current SPAN +{ + background-position: 0% -150px; + padding-bottom : 6px; +} + +DIV.nav +{ + background : none; + border : none; + border-bottom : 1px solid #84B0C7; +} diff --git a/ue3/mycpu/cdisplay.h b/ue3/mycpu/cdisplay.h index 1523f68..82776ee 100644 --- a/ue3/mycpu/cdisplay.h +++ b/ue3/mycpu/cdisplay.h @@ -57,7 +57,7 @@ class CDisplayT } /** - * @method getName + * @method display * @brief prints value to display * @param value value to display * @return - diff --git a/ue3/mycpu/displays.h b/ue3/mycpu/displays.h index 87b9408..d4f3f36 100644 --- a/ue3/mycpu/displays.h +++ b/ue3/mycpu/displays.h @@ -25,6 +25,15 @@ class CDisplayWDEZ : CDisplay("wdez") {} + /** + * @method display + * @brief prints value to display + * @param value value to display + * @return - + * @globalvars none + * @exception none + * @conditions none + */ void display(const CDat &value) { std::cout << std::dec << value << std::endl; @@ -47,6 +56,15 @@ class CDisplayWHEX : CDisplay("whex") {} + /** + * @method display + * @brief prints value to display + * @param value value to display + * @return - + * @globalvars none + * @exception none + * @conditions none + */ void display(const CDat &value) { std::cout << std::hex << value << std::endl; -- cgit v1.2.3