3 ms·
> life improvements like, in order to clear some registers all one need to do is write 1 instead of the whole =& ~(REG | 0x8) (or something like that, it’s been
by Mister_Snuggles 2y ago
> life improvements like, in order to clear some registers all one need to do is write 1 instead of the whole =& ~(REG | 0x8) (or something like that, it’s been a while since I write embedded C)
This is a really interesting feature since it addresses a shortcoming of the C language (inability to easily express bit set/clear) by introducing a new hardware feature.
- garaetjjte 2y agoSBI/CBI only allowed changing one bit, new registers allow for multiple bits and also toggling them.