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

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005