Fix dump of bank code, doesn't currently work but it's a good start