Forum Discussion
Altera_Forum
Honored Contributor
15 years agoString Instruction (NIOS2-UCLINUX )?
hi all ,
I want to use a string instruction( insl,outsl) to copy a string to my IO device faster in the uClinux . would it work? the following instruction just can access 4-bytes : # define IORD(address,offset) (*(volatile unsigned*)(((address|0x80000000))+4*(offset)))# define IOWR(address,offset,value) (*(volatile unsigned*)(((address|0x80000000))+4*(offset)))=(value) void insl(unsigned port,void * addr,unsigned long count); void outsl(unsigned port ,void * addr,unsigned long count); thanks.2 Replies
- Altera_Forum
Honored Contributor
What is the question you want help on ?
the IORD (or similar) Macro should be defined in the appropriate header in the distriution. Are the appropriate multi-word Macros not (yet) defined ? Writing ASM instructions in GNU C ? There is a lot of documentation around. -Michael - Altera_Forum
Honored Contributor
NIOS II does not have string instructions:
http://www.altera.com/literature/hb/nios2/n2cpu_nii51017.pdf