|
|
1.1 ! root 1: ! 2: #include "DEFS.h" ! 3: ! 4: /* ! 5: * strcmp.s 4.1 (Tahoe) June 1983 ! 6: * ! 7: * Compare strings: s1>s2: >0 s1==s2: 0 s1<s2: <0 ! 8: * ! 9: * strcmp(s1, s2) ! 10: * register char *s1, *s2; ! 11: */ ! 12: ! 13: ENTRY(strcmp) ! 14: ! 15: movl 4(fp),r0 ! 16: movl 8(fp),r1 ! 17: cmps2 ! 18: jgtr greater ! 19: jlss less ! 20: equal: clrl r0 ! 21: ret ! 22: less: movl $-1,r0 ! 23: ret ! 24: greater: movl $1,r0 ! 25: ret
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.