The effects of the black codes were that the newly freed slaves had a difficult time creating self-sustaining lives and the white slave owners were given an abundance of cheap labor options. The black codes were not well received by the Northern states and were eventually abolished due to the 14th and 15th Amendments, though the black codes would reappear in the Jim Crow Laws, which would not be abolished until 1964 with the Civil Rights Act.
The black codes had many rules, including the law that forced black men to have both a permanent place of residence as well as a job or otherwise they would be called "vagrants." This forced black men to accept low-paying yearly contracts to avoid being relegated to unpaid labor. President Andrew Johnson oversaw these black codes while he was in office.