5.1 Immediate

An immediate operand is an general expression that starts with the dollar ($) symbol. The value of an immediate operand is the value of the expression.

Since the mov instruction requires a destination operand, but an immediate operand cannot be a destination, we cannot use an example that uses only an immediate operand.

However, if you insist, here is one instruction using an immediate operand (everything to the right of the pound (#) symbol is comment):

pushl $0 # push a 32-bit zero on the stack