Loading…
Loading…
Topic
Articles and problems tagged Systems Programming.
On a DOS PC, a pointer to the right address could change the screen, switch on Caps Lock or read the memory size. Explore video memory, the keyboard status byte and the BIOS data area in a simulation, learn safe bit manipulation, and meet volatile pointers in embedded C.
Old 16-bit PCs reached 1 MB of memory by combining a segment and an offset, which gave C three kinds of pointer: near, far and huge. Learn how segment:offset addressing worked, why two far pointers to the same byte could compare unequal, and how normalization fixed it.