The major purpose of slave codes was to regulate:
1)participation of slaves in sports.
2)the languages of the slaves.
3)activities and actions of slaves.
4)the treatment of slaves by their owners.