A92: Re: Difficulty inserting assembly into C code


[Prev][Next][Index][Thread]

A92: Re: Difficulty inserting assembly into C code




> l'm having trouble getting the assembly code in this program to work.  As
a
> test, l copied the idle_loop() source code, and am trying to have it
> assembled with my program.  When l compile the C program, l get about 3
> errors per line from the Assembler.  l know it has something to do with
the
> stuff in the asm("   ") braces, or all of it.

You may need to put a "%" in front of the registers.  ('%d0' or '%sp')
The GNU Assembler uses the percent to distinguish register names from any
C variable names.







References: