Register address was 32 instead of 5 bits
Fixed case statements. They needed to cover all possibilities