Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12746 Discussions

Set/Clear a single Bit of a Register

Altera_Forum
Honored Contributor II
1,173 Views

Is there a dedicated (assembler?) command for the nios2 cpu to set/clear a bit of a register, or do i have to use a "read - modify - write" cycle to change a single bit? 

 

thanks
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
477 Views

You are right, "read - modify - write" cycle to change a single bit. Just confirmed with a couple others. It is on a list of enhancements though. But I don't know when it will be implemented. 

Sorry.
0 Kudos
Reply