title: Printing signed integer value stored in a variable of type reg
body: <p>How do I print a signed integer value stored in an 8-bit register declared as: </p>
  
  <pre><code>reg [7:0] acc;
  </code></pre>
  
  <p>Using:</p>
  
  <pre><code>$display("acc : %d", acc)
  </code></pre>
  
  <p>It prints the unsigned value.</p>
  
  <p>What's the correct syntax for the <code>$display</code> function?</p>