Bug fix

Inserted missing 'break' statements in switch block in RegWrite()