user73626: If the user wants to push -10 onto the stack.
Would I do "10 OP_NEGATE" ?
Or could I convert it to the hex value by doing 0x80 + 10 = 0X8A ?

user7272: Both will work. OP_NEGATE simply XORs with 0x80, so you can also directly push the result.

73626: <p>If the user wants to push -10 onto the stack.</p>

<p>Would I do "10 OP_NEGATE" ?</p>

<p>Or could I convert it to the hex value by doing 0x80 + 10 = 0X8A ?</p>
 7272: <p>Both will work. OP_NEGATE simply XORs with 0x80, so you can also directly push the result.</p>
