by 1889, American English, variant of yes or yeah, altered for emphasis, or possibly influenced by nope.
Page 9