Example
The following example uses a machine with an
spl
instruction for setting machine interrupt priority levels.
spl
takes one operand, which must be in a register.
Nevertheless, it would be convenient to have a function that produces in-line
code to set priority levels, uses the
spl
instruction, and works with register variables or constants.
This example consists of two parts, the definition of the asm macro, and its use.