Logic gates as persistent stateful tasks – a BCD decoder built on a tiny VM.
Implementation of Binary Coded Decimal decoder from Petzold's "Code" book — every logic gate (bits switch, inverters, AND gates) is a task carrying its own executable instructions. Each gate can read input/states of input gates and update own state.
https://github.com/tracyspacy/spacydo/tree/main/examples/bcd-decoder



AAPL Ch.