Here's the source: munchSw4.java. The 8-Bit switch register class is here. The single switch class is here.