Rewrote the memory system

Generate switches for nibble 24-27 decoding.