title: Writing this MARIE program
body: <p>For this question, I'm not sure if I've done it correctly (no solutions were provided): 
  Consider the program segment:</p>
  
  <pre><code> X = 3
   If(X &gt; 0) { Y = X }
   Stop
  </code></pre>
  
  <p>Write the mnemonic assembly code for this program segment, using MARIE's instruction set.</p>
  
  <p>I came up with this:</p>
  
  <pre><code>Load Three
  Store X
  If, Load X
  Subt Three
  Skipcond 800
  Jump Endif
  Then, Load X
  Store Y
  Endif, Halt
  X, DEC ?
  Y, DEC ?
  Three, DEC 3
  </code></pre>
  
  <p>Is this solution acceptable? Also, in terms of the number of memory accesses, would that be 8 (I don't think Halt is a memory access)?
  Would appreciate some guidance.</p>