Make register_bank work, with a bunch of changes.