Implement subtract-with-carry and flag setting and clearing instructions