Hacker News new | ask | show | jobs
by flohofwoe 4 days ago
The core of the simulation are these two functions:

https://github.com/mist64/perfect6502/blob/09fc542877a843182...

As far as I understood it, this basically re-evaluates the state of a 'dirty list' of transistors though all their connections, and loops until the node list has 'settled' again into a stable state (e.g. state changes from the last loop didn't cause trigger new state changes). Haven't thought about how this could be threaded or simd-ified.