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.