Imported from readme.md/todo for easier follow-up. Currently CPU emulator uses global state for various things. It's not very reusable as is.