DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Enhanced asm facility

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.


Next topic: Definition
Previous topic: Definition of terms

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003