Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Set/Clear a single Bit of a Register

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.