Forum Discussion
Altera_Forum
Honored Contributor
20 years agoAsm code and C imme
Hi, In my project, I define a imme in *.c file: #define SPI_0_BASE 0x00800980 In one of my asm routine, I wanna use this imme, how could I do? asm("movhi r15,%hi(SPI_0_BASE...
Altera_Forum
Honored Contributor
20 years agoAn excellent description of gcc inline assembly can be found here:
http://www.ibiblio.org/gferg/ldp/gcc-inlin...mbly-howto.html (http://www.ibiblio.org/gferg/ldp/gcc-inline-assembly-howto.html) also, check the nios2.h file. --wolf