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 ago --- Quote Start --- originally posted by hippo@Jan 6 2006, 08:37 PM check gcc document for the inline asm's args format, there are input regs, and output regs.
search the linux-2.6.x/include/asm-nios2nommu/io.h for some example.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12010)
--- quote end ---
--- Quote End ---