Hi All,
I want to implement a macro which will toggle a bit in a byte.The user will give input from keyboard.
toggle(number,b it to be toggled)
Number,bit to be toggled will be input from keyboard.
eg:-suppose user want to toggle 2nd bit of a 8 bit number 10010011.
Then have to implement the macro toggle(10010011 , 2)
I want to implement a macro which will toggle a bit in a byte.The user will give input from keyboard.
toggle(number,b it to be toggled)
Number,bit to be toggled will be input from keyboard.
eg:-suppose user want to toggle 2nd bit of a 8 bit number 10010011.
Then have to implement the macro toggle(10010011 , 2)
Comment