title: How represent each mips instruction line in c++ struct?
body: <p>I am trying to simulate virtual MIPS architecture using c++. During this process I have to store each line of mips architecture as struct and store it into vector so I can simulate 5 stages of pipeline.
  My problem is, how can I represent each line of instruction, eg:</p>
  
  <pre><code>Loop: ST R1 R2 //store to M[R2] the contents of R1
  ADD R1 R2 R3  // R1 R2 and R3 are register
  SUB R1 1
  BRNZ  R1 Loop //if R1 is not 0 then loop
  </code></pre>
  
  <p>Each line looks different and I am trying to find a generic way to represent this in struct.</p>