THE PERSONAL INDEX / P C RANGARAJAN ↗
Around, and around.
Push, pop, and watch an eight-slot FIFO wrap.
Eight-slot FIFO with a separate count. A full buffer rejects a push; unread values are never overwritten. Read and write indices wrap modulo eight.
write = (write + 1) % capacity; read = (read + 1) % capacity;
Keep exploring.
01 / MEMORY
Follow the pointer.
Step through addresses and values.
02 / DATA STRUCTURESA buffer that comes back around.
Push and pop without shuffling the array.
03 / C FUNDAMENTALSWhere the padding goes.
Reorder fields and compare the layout.
04 / INTERFACESWatch a byte travel.
UART framing and an SPI transfer.