in the treaty , spain was essentially granted the northern hemisphere , which consisted of north america and the caribbean islands , while the southern half of the world went to portugal , receiving south america , africa , and asia .