Game in which you build your own CPU
store.steampowered.com
store.steampowered.com
I recommend these games to all my programmer friends. I'm definitely a better programmer for having played them.
Also, if you're not already a programmer and want to learn, I really enjoyed Human Resource Machine. It's also an assembly game but it's much more appropriately paced for new programmers and doesn't require knowledge of things like recursion.
If you're interested in hardware programming also check out Shenzhen I/O. I haven't played it yet but I printed out the manual last night. Gotta beat EXAPUNKS first :)