I want to write an x86 AT&T assembly function that compare a char-array one caracter at a time. If two characters at the same index are unequal it's suposed to return -1, else return 1.
I'm going to call this function in a C code. So the function-call would look like this
int comp(char *s, char *format)
I'm totally new to assembly programming so I could really use som help with this.