New video: Let's Code MS DOS 0x3A: C Bitfields for Hardware Registers The C lang...
root42 @root42@chaos.social
New video: Let's Code MS DOS 0x3A: C Bitfields for Hardware Registers
The C language has had one feature for a very long time, which almost nobody uses: bitfields. They seem to be a great idea for modelling hardware I/O registers. Instead of clunky bitwise manipulations, you can simply address individual bits with names. But what are the downsides, and how can you use it for MS DOS hardware programming?
YT: https://youtu.be/mIt1gxe1zxk
PT: https://peertube.v1.root42.de/w/n47ehrMiAUobsMaDh9WDvc
#letscode #msdos #retrocomputing