Hi guys
Recently I have a need to do the same operation on different register, can I use register as argument? I know I can use micro do set or clear bit, but in my case, defining a micro would be too complicated, and too hard to debug.
Recently I have a need to do the same operation on different register, can I use register as argument? I know I can use micro do set or clear bit, but in my case, defining a micro would be too complicated, and too hard to debug.
Code:
// do some fancy stuff with this register
void foo(???);
foo(REG){
// doing fancy stuff
}