/* The #asm #endasm construct to mix safely 
   C and asm code.                          */

int main(void) {
  int a = 4;
  int b;
  /* Saving some registers to start #asm :  */
#asm R0,R7;
  R7 = a;        /* Copy value of `a' in R1 */
asm(
    clr R0
    ldil R0,#1
    add R0,R7
    );
 b = R0;         /* Store R7 in `b'.        */
#endasm          
 /* Restore saved registers automatically.  */ 
}
