[Avida-cvs] [Avida2-svn] r316 - branches/developers/matt-hcopy-hack-2/source/main
matt@myxo.css.msu.edu
matt at myxo.css.msu.edu
Fri Sep 16 07:10:14 PDT 2005
Author: matt
Date: 2005-09-16 10:10:13 -0400 (Fri, 16 Sep 2005)
New Revision: 316
Modified:
branches/developers/matt-hcopy-hack-2/source/main/instruction.hh
Log:
Copy over modified files.
Modified: branches/developers/matt-hcopy-hack-2/source/main/instruction.hh
===================================================================
--- branches/developers/matt-hcopy-hack-2/source/main/instruction.hh 2005-09-16 13:54:45 UTC (rev 315)
+++ branches/developers/matt-hcopy-hack-2/source/main/instruction.hh 2005-09-16 14:10:13 UTC (rev 316)
@@ -17,15 +17,19 @@
class cInstruction {
private:
UCHAR operand;
-
+ UCHAR meta;
+
public:
// Accessors...
- int GetOp() const { return (int) operand; }
+ int GetOp() const { return (int) operand; }
void SetOp(int in_op) { assert(in_op < 256); operand = in_op; }
-
+
+ int GetMeta() const {return (int) meta; }
+ void SetMeta(int in_mt) {assert (in_mt < 256); meta = in_mt; }
+
// Operators...
void operator=(const cInstruction & inst)
- { if (this != &inst) operand = inst.operand; }
+ { if (this != &inst) operand = inst.operand; meta = inst.meta;}
bool operator==(const cInstruction & inst) const
{ return (operand == inst.operand); }
bool operator!=(const cInstruction & inst) const
More information about the Avida-cvs
mailing list