Hi, and welcome to Health care Magic, vomiting
have many causes
-Obstruction of the Bowel
-Raised intracranial pressures
from the color of your vomit (Blackish) it could be bleeding ulcer,
please go to your nearest Emergency room ASAP.